@push('styles') @endpush

Profile Management

Manage your personal information, account settings, and baby records

@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif @if($activeTab === 'profile')

Profile Picture

@if($avatar_preview) Avatar Preview @elseif(Auth::user()->expectantMother && Auth::user()->expectantMother->avatar_url) Current Avatar @else
{{ strtoupper(substr(Auth::user()->name ?? 'U', 0, 1)) }}{{ strtoupper(substr(explode(' ', Auth::user()->name ?? 'U')[1] ?? 'U', 0, 1)) }}
@endif
@error('avatar') {{ $message }} @enderror @if($avatar) @endif

Mother Information

@if(!$editingMotherInfo) @else
@endif
@if(!$editingMotherInfo)

{{ $ic_number ?? 'Not provided' }}

{{ $mother_full_name ?? 'Not provided' }}

{{ $ethnicity ?? 'Not provided' }}

{{ $nationality ?? 'Not provided' }}

@if($nationality === 'Foreigner' && $nationality_other)

({{ $nationality_other }})

@endif

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

{{ $occupation ?? 'Not provided' }}

{{ $phone_number ?? 'Not provided' }}

{{ $home_address ?? 'Not provided' }}

{{ $family_home_address ?? 'Not provided' }}

{{ $work_address ?? 'Not provided' }}

{{ $postnatal_address ?? 'Not provided' }}

@else
@error('ic_number') {{ $message }} @enderror
@error('mother_full_name') {{ $message }} @enderror
@error('ethnicity') {{ $message }} @enderror
@error('nationality') {{ $message }} @enderror
@if($nationality === 'Foreigner')
@error('nationality_other') {{ $message }} @enderror
@endif
@error('educational_level') {{ $message }} @enderror
@error('occupation') {{ $message }} @enderror
@error('phone_number') {{ $message }} @enderror
@error('home_address') {{ $message }} @enderror
@error('family_home_address') {{ $message }} @enderror
@error('work_address') {{ $message }} @enderror
@error('postnatal_address') {{ $message }} @enderror
@endif

Husband Information

@if(!$editingHusbandInfo) @else
@endif
@if(!$editingHusbandInfo)

{{ $husband_full_name ?? 'Not provided' }}

{{ $husband_ic_number ?? 'Not provided' }}

{{ $husband_occupation ?? 'Not provided' }}

{{ $husband_phone_number ?? 'Not provided' }}

{{ $husband_work_address ?? 'Not provided' }}

@else
@error('husband_full_name') {{ $message }} @enderror
@error('husband_ic_number') {{ $message }} @enderror
@error('husband_occupation') {{ $message }} @enderror
@error('husband_phone_number') {{ $message }} @enderror
@error('husband_work_address') {{ $message }} @enderror
@endif

General Information

@if(!$editingGeneralInfo) @else
@endif
@if(!$editingGeneralInfo)

{{ $number_of_fetus ?? 'Not provided' }}

{{ $number_of_living_children ?? 'Not provided' }}

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

{{ $menache ?? 'Not provided' }}

{{ $family_planning_method ? 'Yes' : 'No' }}

@if($family_planning_method && $family_planning_method_specify)

({{ $family_planning_method_specify }})

@endif

{{ $mother_smoking_status ?? 'Not provided' }}

{{ $husband_smoking_status ?? 'Not provided' }}

{{ $tibi_screening_cough ? 'Yes' : 'No' }}

@else
@error('number_of_fetus') {{ $message }} @enderror
@error('number_of_living_children') {{ $message }} @enderror
@error('marriage_date') {{ $message }} @enderror
@error('menache') {{ $message }} @enderror
@error('family_planning_method') {{ $message }} @enderror
@if($family_planning_method == 1 || $family_planning_method === '1')
@error('family_planning_method_specify') {{ $message }} @enderror
@if($family_planning_method_specify === 'Other')
@endif @endif
@error('mother_smoking_status') {{ $message }} @enderror
@error('husband_smoking_status') {{ $message }} @enderror
@error('tibi_screening_cough') {{ $message }} @enderror
@endif

Family Health

@if(!$editingFamilyHealth) @else
@endif
@if(!$editingFamilyHealth)

Mother

@php $motherConditions = [ 'diabetes' => 'Diabetes', 'hipertension' => 'Hipertension', 'allergy' => 'Allergy', 'psychiatry' => 'Psychiatry', 'asthma' => 'Asthma', 'heart_disease' => 'Heart Disease', 'tibi' => 'Tibi', 'anemia' => 'Anemia', 'thalasemia' => 'Thalasemia', 'tiroid' => 'Tiroid', 'cancer' => 'Cancer', 'other' => 'Other' ]; $hasMotherConditions = false; foreach($motherConditions as $key => $label) { if($this->{'mother_' . $key}) { $hasMotherConditions = true; break; } } @endphp @if($hasMotherConditions) @foreach($motherConditions as $condition => $label) @if($this->{'mother_' . $condition})
{{ $label }} @if($condition === 'other' && $mother_other_specify) ({{ $mother_other_specify }}) @endif
@endif @endforeach @else

No conditions reported

@endif

Father

@php $fatherConditions = [ 'diabetes' => 'Diabetes', 'hipertension' => 'Hipertension', 'allergy' => 'Allergy', 'psychiatry' => 'Psychiatry', 'asthma' => 'Asthma', 'heart_disease' => 'Heart Disease', 'tibi' => 'Tibi', 'anemia' => 'Anemia', 'thalasemia' => 'Thalasemia', 'tiroid' => 'Tiroid', 'cancer' => 'Cancer', 'other' => 'Other' ]; $hasFatherConditions = false; foreach($fatherConditions as $key => $label) { if($this->{'father_' . $key}) { $hasFatherConditions = true; break; } } @endphp @if($hasFatherConditions) @foreach($fatherConditions as $condition => $label) @if($this->{'father_' . $condition})
{{ $label }} @if($condition === 'other' && $father_other_specify) ({{ $father_other_specify }}) @endif
@endif @endforeach @else

No conditions reported

@endif
@else

Mother

@foreach(['diabetes' => 'Diabetes', 'hipertension' => 'Hipertension', 'allergy' => 'Allergy', 'psychiatry' => 'Psychiatry', 'asthma' => 'Asthma', 'heart_disease' => 'Heart Disease', 'tibi' => 'Tibi', 'anemia' => 'Anemia', 'thalasemia' => 'Thalasemia', 'tiroid' => 'Tiroid', 'cancer' => 'Cancer', 'other' => 'Other'] as $condition => $label) @endforeach @if($mother_other)
@endif

Father

@foreach(['diabetes' => 'Diabetes', 'hipertension' => 'Hipertension', 'allergy' => 'Allergy', 'psychiatry' => 'Psychiatry', 'asthma' => 'Asthma', 'heart_disease' => 'Heart Disease', 'tibi' => 'Tibi', 'anemia' => 'Anemia', 'thalasemia' => 'Thalasemia', 'tiroid' => 'Tiroid', 'cancer' => 'Cancer', 'other' => 'Other'] as $condition => $label) @endforeach @if($father_other)
@endif
@endif
@endif @if($activeTab === 'account')

Change Email

@error('current_password') {{ $message }} @enderror
@error('new_email') {{ $message }} @enderror

Change Password

@error('current_password') {{ $message }} @enderror
@error('new_password') {{ $message }} @enderror

Password must be at least 8 characters long

@error('new_password_confirmation') {{ $message }} @enderror
@endif @if($activeTab === 'babies')

Baby Records

@if(count($babies) > 0)
@foreach($babies as $baby) @endforeach
Year Month Outcome Delivery Place Gender Weight Breastfeeding Condition Actions
{{ $baby['year_of_birth'] }} {{ date('M', mktime(0, 0, 0, $baby['month_of_birth'], 1)) }} {{ ucfirst($baby['pregnancy_outcome']) }} {{ $baby['type_of_deliver'] }} {{ $baby['deliver_place'] }} {{ $baby['gender'] }} {{ $baby['weight'] }} kg {{ $baby['breastfeeding'] }} {{ $baby['baby_condition'] }}
@else

No baby records yet

Start by adding your first baby record to track your child's health and development

@endif
@endif @if($activeTab === 'clinic')

Your Assigned Clinic

{{ auth()->user()->clinic->name }}

Active

{{ auth()->user()->clinic->address }}

@if(auth()->user()->clinic->lat && auth()->user()->clinic->lng)

Coordinates: {{ auth()->user()->clinic->lat }}, {{ auth()->user()->clinic->lng }}

@endif

Your Primary Clinic

@if(auth()->user()->clinic)

Clinic Location

@endif

Need to Change Clinic?

@php $activeRequest = $this->getActiveClinicChangeRequest(); @endphp @if($activeRequest && $activeRequest->status === 'INFO_REQUESTED')
Additional Information Required

The Clinic Admin has requested additional information for your clinic change request.

Request Details:

From: {{ $activeRequest->currentClinic->name }}

To: {{ $activeRequest->requestedClinic->name }}

Submitted: {{ $activeRequest->created_at->format('M d, Y') }}

@if($activeRequest->decision_note)

Information Request:

{{ $activeRequest->decision_note }}

@endif Provide Information
@elseif($activeRequest && $activeRequest->status === 'PENDING')
Request Under Review

Your clinic change request is currently being reviewed by the Clinic Admin.

Request Details:

From: {{ $activeRequest->currentClinic->name }}

To: {{ $activeRequest->requestedClinic->name }}

Submitted: {{ $activeRequest->created_at->format('M d, Y') }}

You cannot submit a new request while this one is being processed.

@elseif(!$showClinicChangeForm)

Important Information:

  • Clinic changes require approval from the Clinic Admin
  • Processing time: 1-3 business days
  • You must provide a valid reason for the change
  • All your medical records will be transferred to the new clinic

Submit a formal request to change your assigned clinic.

The Clinic Admin will review your request and notify you of the decision.

Submit Request
@endif
@php $clinicChangeHistory = $this->getClinicChangeHistory(); @endphp @if($clinicChangeHistory->count() > 0)

Clinic Change Request History

@foreach($clinicChangeHistory as $request)
{{ $request->currentClinic->name }} → {{ $request->requestedClinic->name }}
{{ $request->status_display }} @if($request->urgency === 'URGENT') Urgent @endif

Submitted {{ $request->created_at->format('M j, Y g:i A') }} @if(in_array($request->status, ['APPROVED', 'REJECTED'])) • Processed {{ $request->updated_at->format('M j, Y g:i A') }} @endif

Reason: {{ Str::limit($request->reason, 100) }}

@if($request->isApproved())

Approved {{ $request->updated_at->format('M j, Y g:i A') }}

@if($request->decision_note)

{{ $request->decision_note }}

@endif
@elseif($request->isRejected())

Rejected {{ $request->updated_at->format('M j, Y g:i A') }}

@if($request->decision_note)

{{ $request->decision_note }}

@endif
@elseif($request->isInfoRequested())

Additional information requested

@if($request->decision_note)

{{ $request->decision_note }}

@endif
@endif @if($request->attachments->count() > 0)
{{ $request->attachments->count() }} attachment(s)
@endif
View Details @if($request->isInfoRequested()) Respond @endif
@endforeach
@endif
@endif
@if($showBabyModal) @endif @if($showDeleteConfirm) @endif
@push('styles') @endpush @push('scripts') @endpush