Name: {{ $parent->name }}
Is Alive: {{ $parent->is_alive ? 'Yes' : 'No' }}
Relationship: {{ $parent->pivot->relationship ? $parent->pivot->relationship . ' to ' . $student->name : 'N/A' }}
Occupation: {{ $parent->occupation ?? 'N/A' }}
Date of Birth: {{ $parent->date_of_birth ?? 'N/A' }}
Marital Status: {{ $parent->marital_status ?? 'N/A' }}
@if (!$parent->is_alive)Year of Death: {{ $parent->year_of_death ?? 'N/A' }}
Cause of Death: {{ $parent->cause_of_death ?? 'N/A' }}
@endifContact: {{ $parent->contact ?? 'N/A' }}
Health Status: {{ $parent->health_status ?? 'N/A' }}
@php $otherChildren = App\Models\StudentParentRelation::where( 'parent_id', $parent->id, )->get(); @endphp @if (count($otherChildren) > 1)Children: