@extends('layouts.app') @section('title', 'Profile') @section('content') @include('partials.flash') @php $input = 'w-full px-4 py-2.5 bg-surface-container rounded-lg border-none focus:ring-2 focus:ring-primary/20 text-body-md outline-none'; $label = 'block text-label-md font-label-md text-on-surface-variant mb-1.5'; $err = 'text-label-md font-label-md text-error mt-1'; $genders = ['male' => 'Male', 'female' => 'Female', 'non_binary' => 'Non-binary', 'other' => 'Other', 'undisclosed' => 'Prefer not to say']; $marital = ['single' => 'Single', 'married' => 'Married', 'civil_partnership' => 'Civil partnership', 'divorced' => 'Divorced', 'widowed' => 'Widowed', 'undisclosed' => 'Prefer not to say']; @endphp @if(session('status'))
check_circle {{ session('status') }}
@endif {{-- Identity + profile photo --}}
{{-- Avatar with live-preview upload --}}
@csrf
Profile photo {{ $user->initials() }}

{{ $user->name }}

{{ $user->roleLabel() }}{{ $user->position ? ' · '.$user->position : '' }}

@if($user->avatarUrl())
@csrf @method('DELETE')
@endif
{{-- Assigned house — read-only --}}

Assigned to

lock {{ $user->locationLabel() ?? '—' }}

{{-- Upload hint / validation feedback --}}

info @error('avatar'){{ $message }}@else JPG, PNG or WebP · max 4 MB.@enderror

{{-- Profile details --}}
@csrf @method('PATCH')

Profile details

@error('first_name')

{{ $message }}

@enderror
@error('last_name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('personal_email')

{{ $message }}

@enderror
@if($user->hasRole('trainer'))
@error('default_meeting_link')

{{ $message }}

@enderror

Paste your own reusable meeting link here once. It’s filled in automatically whenever you create an online session, so you don’t have to add it each time. In Teams, set Meeting options → Who can bypass the lobby → Everyone so attendees join straight away.

@endif
@error('date_of_birth')

{{ $message }}

@enderror

Address

{{-- Password + account info --}}
@csrf @method('PUT')

Password

Use a strong password you don't reuse elsewhere.

@error('current_password', 'updatePassword')

{{ $message }}

@enderror
@error('password', 'updatePassword')

{{ $message }}

@enderror

Account

Role{{ $user->roleLabel() }}
Assigned house{{ $user->locationLabel() ?? '—' }}
@if($user->position)
Position{{ $user->position }}
@endif

Your role and assigned house are managed by HR / an administrator.

@endsection