{{-- Stop trying to control. --}}
{{-- manage Documents --}}
@include('layouts.partials.student_profile_nav')
@livewire('students.student-summary-profile-card', ['studentId' => $student->id], key('student-summary-profile-card-' . uniqid()))
{{ $student->name }} > parents > {{ $parent->name }}
@livewire('students.student-parents-edit-modal', ['parentID' => $parent->id], key('student-parent-edit-modal-' . uniqid()))

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: @if ($parent->is_alive) {{ $parent->marital_status ?? 'N/A' }} @else {{ 'N/A' }} @endif

@if (!$parent->is_alive)

Year of Death: {{ $parent->year_of_death ?? 'N/A' }}

Cause of Death: {{ $parent->cause_of_death ?? 'N/A' }}

@endif

Contact: {{ $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:

@endif
@livewire('students.student-parent-edit-relationship-form', ['stdParentRel' => $parent->pivot], key('student-parent-edit-relationship-form-' . uniqid()))