@section('title', 'My Profile')

My Profile

View your complete profile information

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

{{ $profile->mother_full_name ?? $user->name }}

Series Number: {{ $profile->series_number ?? 'N/A' }}

Email: {{ $user->email }}

@if($profile && $profile->phone_number)

Phone: {{ $profile->phone_number }}

@endif
@if($user->profile_picture) @endif
@if($profile)

Personal Information

{{ $profile->mother_full_name ?? 'Not provided' }}

{{ $profile->ic_number ?? 'Not provided' }}

{{ $profile->ethnicity ?? 'Not provided' }}

{{ $profile->nationality ?? 'Not provided' }} @if($profile->nationality === 'Foreigner' && $profile->nationality_other) ({{ $profile->nationality_other }}) @endif

{{ $profile->educational_level ? ucwords($profile->educational_level) : 'Not provided' }}

{{ $profile->occupation ?? 'Not provided' }}

{{ $profile->phone_number ?? 'Not provided' }}

{{ $profile->home_address ?? 'Not provided' }}

@if($profile->family_home_address)

{{ $profile->family_home_address }}

@endif @if($profile->work_address)

{{ $profile->work_address }}

@endif
@if($profile->husband_full_name || $profile->husband_ic_number || $profile->husband_occupation)

Husband Information

@if($profile->husband_full_name)

{{ $profile->husband_full_name }}

@endif @if($profile->husband_ic_number)

{{ $profile->husband_ic_number }}

@endif @if($profile->husband_occupation)

{{ $profile->husband_occupation }}

@endif @if($profile->husband_phone_number)

{{ $profile->husband_phone_number }}

@endif @if($profile->husband_work_address)

{{ $profile->husband_work_address }}

@endif
@endif

Baby Information

Total: {{ $babiesCount }}
@if($babiesCount > 0)
@foreach($babies as $baby) @endforeach
Birth Date Outcome Delivery Type Place Gender Weight Breastfeeding Condition
{{ $baby->month_name }} {{ $baby->year_of_birth }} {{ ucfirst($baby->pregnancy_outcome) }} {{ $baby->type_of_deliver }} {{ $baby->deliver_place }} {{ $baby->gender }} {{ $baby->formatted_weight }} {{ $baby->breastfeeding }} {{ $baby->baby_condition }} @if($baby->baby_condition === 'Unhealthy' && $baby->condition_notes)
{{ $baby->condition_notes }}
@endif
@else

No Baby Records

No baby records have been added yet.

@endif

Clinic Information

@if($profile->clinic)

{{ $profile->clinic->name }}

@if($profile->clinic->address)

{{ $profile->clinic->address }}

@endif @else

Not assigned

@endif
@if($profile->current_nurse)

{{ $profile->current_nurse->name }}

@if($profile->current_nurse->email)

{{ $profile->current_nurse->email }}

@endif @else

Not assigned

@endif
@if($profile->currentAssignment)
@if($profile->currentAssignment->zone)

{{ $profile->currentAssignment->zone->code }} - {{ $profile->currentAssignment->zone->name }}

@else

Not assigned

@endif

{{ \Carbon\Carbon::parse($profile->currentAssignment->assigned_at)->format('F j, Y') }}

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

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

{{ $user->created_at->diffForHumans() }}

Profile information is managed by your clinic. Please contact your nurse if you need to update any information.

@else

Profile Not Found

Please complete your registration first.

Complete Registration
@endif
@if($showUploadModal)

Upload Profile Picture

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

Preview:

Preview
@endif
@endif