@section('title', 'Profile - Clinic Admin Dashboard')

My Profile

View and manage your profile information

@if (session()->has('success')) @endif @if (session()->has('error')) @endif
@if($user->profile_picture) Profile Picture @else
@endif

{{ $user->name }}

Clinic Administrator

{{ $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

Clinic Admin

{{ $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

Click the Edit button next to Email or Phone to update

@if($showUploadModal)

Upload Profile Picture

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

Preview:

Preview
@endif
@endif