{{-- If you look to others for fulfillment, you will never truly be fulfilled. --}}
Name: {{ $parent->name }}
Date of Birth: {{ $parent->date_of_birth ?? 'N/A' }}
{{--
Contact: {{ $parent->contact ?? 'N/A' }}
--}}
Is Alive: {{ $parent->is_alive ? 'Yes' : 'No' }}
Relationship to Beneficiary: {{ App\Models\StudentParentRelation::where('parent_id', $parent->id)->where('student_id', $student->id)->first()->relationship ?? 'N/A' }}
Occupation: {{ $parent->occupation ?? 'N/A' }}
Marital Status: @switch($parent->marital_status) @case(1) Single @break @case(2) Married @break @case(5) Divorced @break @case(4) Separated @break @case(3) Widowed @break @default Married @endswitch
@if (!$parent->is_alive)
Year of Death: {{ $parent->year_of_death ?? 'N/A' }}
Cause of Death: {{ $parent->cause_of_death ?? 'N/A' }}
@endif
Health Status: {{ $parent->health_status ?? 'N/A' }}
@php $otherChildren = App\Models\StudentParentRelation::where('parent_id', $parent->id)->get(); @endphp @if ($otherChildren->count() > 1)
Other beneficiaries:
@endif