{{-- Be like water. --}}

Profile

@if (!$student->deleted_at) @livewire('students.students-profile-edit-modal', ['studentID' => $student->id], key('students-profile-edit-modal-' . uniqid())) @endif

Name: {{ $student->name ?? 'N/A' }}

Gender: {{ $student->gender == 'F' ? 'Female' : 'Male' }}

Date of Birth: {{ $student->date_of_birth ? $student->date_of_birth->format('d-m-Y') : 'N/A' }}
[ {{ $student->date_of_birth ? $student->date_of_birth->diffInYears(now()) . ' Years Old' : 'N/A' }} ]

Present Class: @php $academics = App\Models\BeneficiaryInstitutionClass::withTrashed()->where('beneficiary_id', $student->id)->latest()->first(); @endphp @if ($academics != null) {{ $academics->institutionClass->description ?? 'Na' }} @else {{ $student->present_class ?? 'N/A' }} @endif

Class at Registration: {{ $student->present_class ?? 'N/A' }}

No. of Brothers: {{ $student->no_of_brothers ?? 'N/A' }}

No. of Sisters: {{ $student->no_of_sisters ?? 'N/A' }}

No. of People at Home: {{ $student->no_of_people_at_home ?? 'N/A' }}

No. of sponsored children at home: {{ $student->no_of_sponsored_children ?? 'N/A' }}

Area of Residence: {{ $student->area_of_residence ?? 'N/A' }}

LC Village: {{ $student->lc_village ?? 'N/A' }}

Zone: {{ $student->zone ?? 'N/A' }}

Sub County / Division: {{ $student->village ?? 'N/A' }}

District: {{ $student->district ?? 'N/A' }}

Health Status: {{ $student->health_status ?? 'N/A' }}

Home Situation: {{ $student->home_situation ?? 'N/A' }}

Best Game Activity: {{ $student->best_game_activity ?? 'N/A' }}

Future Ambition: {{ $student->future_ambition ?? 'N/A' }}

Best Food: @if ($student->best_food) {{ implode(', ', json_decode($student->best_food)) }} @else N/A @endif

Nature of Housing: {{ $student->natureOfHousing ? $student->natureOfHousing->name : 'N/A' }}

Family History: {{ $student->family_history ??'N/A' }}

{{--
--}}

Prepared By: {{ $student->preparer->name ?? 'N/A' }}

Prepared: {{ $student->prepared_date ? $student->prepared_date : 'N/A' }}

Approved By: {{ $student->approver->name ?? 'N/A' }}

Approved On: {{ $student->approved_dated ? $student->approved_dated : 'N/A' }}