@push('styles') @endpush

Profile Overview

Complete profile information and baby records

@if($profile)
@if($profile->avatar_url) Profile Picture @else
{{ strtoupper(substr($profile->mother_full_name ?? 'U', 0, 1)) }}{{ strtoupper(substr(explode(' ', $profile->mother_full_name ?? 'U')[1] ?? 'U', 0, 1)) }}
@endif

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

Series Number: {{ $profile->series_number }}

Assigned Clinic: {{ $user->clinic->name ?? 'Not assigned' }}

Email: {{ $user->email }}

@if($profile->phone_number)

Phone: {{ $profile->phone_number }}

@endif

Mother Information

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

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

{{ $profile->nationality ?? 'Not provided' }}{{ $profile->nationality === 'Foreigner' && $profile->nationality_other ? ' (' . $profile->nationality_other . ')' : '' }}

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

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

@if($profile->home_address || $profile->family_home_address || $profile->work_address || $profile->postnatal_address)

Addresses

@if($profile->home_address)

{{ $profile->home_address }}

@endif @if($profile->family_home_address)

{{ $profile->family_home_address }}

@endif @if($profile->work_address)

{{ $profile->work_address }}

@endif @if($profile->postnatal_address)

{{ $profile->postnatal_address }}

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

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

General Information

@if($profile->number_of_fetus)

{{ $profile->number_of_fetus }}

@endif @if($profile->number_of_living_children)

{{ $profile->number_of_living_children }}

@endif @if($profile->marriage_date)

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

@endif @if($profile->menache)

{{ $profile->menache }}

@endif @if($profile->family_planning_method)

{{ $profile->family_planning_method }}{{ $profile->family_planning_method === 'Yes' && $profile->family_planning_method_specify ? ' (' . $profile->family_planning_method_specify . ')' : '' }}

@endif @if($profile->mother_smoking_status)

{{ $profile->mother_smoking_status }}

@endif @if($profile->husband_smoking_status)

{{ $profile->husband_smoking_status }}

@endif @if($profile->tibi_screening_cough)

{{ $profile->tibi_screening_cough }}

@endif

Family Health

Mother

@php $motherConditions = []; $conditions = ['diabetes', 'hipertension', 'allergy', 'psychiatry', 'asthma', 'heart_disease', 'tibi', 'anemia', 'thalasemia', 'tiroid', 'cancer']; foreach($conditions as $condition) { if($profile->{'mother_' . $condition}) { $motherConditions[] = ucfirst(str_replace('_', ' ', $condition)); } } if($profile->mother_other && $profile->mother_other_specify) { $motherConditions[] = $profile->mother_other_specify; } @endphp @if(count($motherConditions) > 0)
    @foreach($motherConditions as $condition)
  • {{ $condition }}
  • @endforeach
@else

No conditions reported

@endif

Father

@php $fatherConditions = []; foreach($conditions as $condition) { if($profile->{'father_' . $condition}) { $fatherConditions[] = ucfirst(str_replace('_', ' ', $condition)); } } if($profile->father_other && $profile->father_other_specify) { $fatherConditions[] = $profile->father_other_specify; } @endphp @if(count($fatherConditions) > 0)
    @foreach($fatherConditions as $condition)
  • {{ $condition }}
  • @endforeach
@else

No conditions reported

@endif

Baby Records

Total: {{ $babiesCount }}
@if($babiesCount > 0)
@foreach($babies as $baby) @endforeach
Birth Date Outcome Delivery 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
@else

Profile Not Found

Please complete your registration first.

Complete Registration
@endif