@php $fieldGroups = [ [ 'title' => 'Personal Information', 'description' => 'Core details used across your account.', 'fields' => [ ['id' => 'name', 'label' => 'Full Name', 'type' => 'text', 'value' => old('name', $user->name), 'required' => true, 'autocomplete' => 'name'], ['id' => 'email', 'label' => 'Email Address', 'type' => 'email', 'value' => old('email', $user->email), 'required' => true, 'autocomplete' => 'username'], ['id' => 'sex', 'label' => 'Gender', 'type' => 'select', 'value' => old('sex', $user->sex), 'options' => [ ['value' => '', 'label' => 'Select'], ['value' => 'male', 'label' => 'Male'], ['value' => 'female', 'label' => 'Female'], ['value' => 'other', 'label' => 'Other'], ]], ], ], [ 'title' => 'Contact Information', 'description' => 'How we can reach you when needed.', 'fields' => [ ['id' => 'phone', 'label' => 'Contact Number', 'type' => 'text', 'value' => old('phone', $user->phone)], ], ], ]; $hasProfileErrors = $errors->hasAny([ 'name', 'email', 'sex', 'phone', 'profile_photo', 'remove_profile_photo', ]); @endphp
@csrf
@csrf @method('patch')
Current Profile Photo

Profile photo

Use a clean headshot or recognizable profile image.

@if($user->profile_photo) @endif

JPG or PNG, up to 2 MB.

@foreach ($fieldGroups as $group)

{{ $group['title'] }}

{{ $group['description'] }}

@foreach ($group['fields'] as $field)
@if (($field['type'] ?? 'text') === 'select') @else @endif @if ($field['id'] === 'email' && $user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! $user->hasVerifiedEmail())

{{ __('Your email address is unverified.') }}

@endif
@endforeach
@endforeach
@if (session('status') === 'profile-updated')

{{ __('Profile updated successfully.') }}

@endif