@section('title', 'Profile - Nurse Dashboard')

My Profile

Manage your profile information and duty timetable

Nurse Profile

Account Info

@if (session()->has('success')) @endif @if (session()->has('error')) @endif

Profile Information

@if($user->profile_picture) Profile Picture @else
@endif

{{ $user->name }}

Registered Nurse

{{ $user->staff_id ?? 'N/A' }}

@if(!$editingEmail)

{{ $user->email }}

@else
@error('email') {{ $message }} @enderror
@endif

@if($user->clinic) {{ $user->clinic->name }} @if($user->clinic->address)
📍 {{ $user->clinic->address }} @endif @if($user->clinic->phone)
📞 {{ $user->clinic->phone }} @endif @else Not assigned to any clinic @endif

@if(!$editingPhone)

{{ $user->phone ?? 'Not provided' }}

@else
@error('phone') {{ $message }} @enderror
@endif

Registered Nurse

{{ $user->is_active ? 'Active' : 'Inactive' }}

@if($user->must_change_password) Must Change Password @else Password Updated @endif @if($user->password_changed_at)
Last changed: {{ \Carbon\Carbon::parse($user->password_changed_at)->format('M j, Y') }} @endif

{{ $user->created_at->format('F j, Y') }}
{{ $user->created_at->diffForHumans() }}

@if($user->profile_picture) @endif

You can update your email and phone number directly

My Duty Timetable

Week of {{ $weekStartDate ? $weekStartDate->format('M j, Y') : now()->startOfWeek()->format('M j, Y') }}

History
@if($currentWeekDuties && $currentWeekDuties->count() > 0)
Upcoming Duties
{{ $upcomingCount }}
@foreach($currentWeekDuties as $duty) @endforeach
Day Date Zone Status
{{ \Carbon\Carbon::parse($duty->duty_date)->format('D') }} {{ \Carbon\Carbon::parse($duty->duty_date)->format('M j') }}
{{ $duty->zone->zone_code ?? 'N/A' }}
{{ $duty->zone->zone_name ?? 'N/A' }}
@if(\Carbon\Carbon::parse($duty->duty_date)->isToday()) Today @else Soon @endif
{{ $currentWeekDuties->links() }}
@else

No Upcoming Duties

You don't have any upcoming duties. Check duty history for past duties.

@endif
@if($showUploadModal)

Upload Profile Picture

@error('profilePicture') {{ $message }} @enderror>
@if($profilePicture)

Preview:

Preview
@endif
@endif