{{ \Carbon\Carbon::parse($child->dob)->age }} yrs
{{ $child->status }}
{{ $child->child_fname }} {{ $child->child_lname }}
{{-- mb-1 instead of default mb-3 --}} {!! $dob->format('j') !!}{{ $dob->format('S') }} {{ $dob->format('M, Y') }}
{{ $recent?->hobby ?: 'No child hobby record' }}
{{ $recent?->dream ?: 'No child dream record' }}
{{ ucfirst($child->sex) }}
{{ $recent?->village ?? $child->child_village ?? 'No village record' }}
{{ $recent?->school?->school_name ?? 'No school record' }}
{{ optional($recent)->class ?? 'No class record' }}
{{ $child->cluster->pastors ->map(fn($p)=> "{$p->title} {$p->first_name} {$p->last_name}" . (Auth::user()->can('pastor_contact.view')?" (+{$p->contact})":'') . " - {$p->position}" )->join(', ') }}
{{ $p->church->church_name ?? 'No church' }}
@endforeach{{ optional($child->guardianModel)->guardian ?? '—' }}:{{ $child->guardian_name }} @if(Auth::user()->can('guardian_contact.view')) (+{{ $child->guardian_contact }}) @endif
{{ $child->mother_name }} ({{ $child->mother_status }})
{{ $child->father_name }} ({{ $child->father_status }})
@if($childrenCount||$adultCount) {{ $childrenCount }} {{ \Illuminate\Support\Str::plural('child',$childrenCount) }} {{ $adultCount }} {{ \Illuminate\Support\Str::plural('adult',$adultCount) }} @else No record @endif
{{ $recent?->house_type ? ucfirst(str_replace('_',' ',$recent->house_type)) : 'No record' }}
{{ $recent?->received_coffee ? ucfirst($recent->received_coffee) : 'No record' }}
{{ $recent?->coffee_plants_count ?? 'No record' }}
@if(is_null($recent?->harvesting_coffee)) No record @elseif($recent->harvesting_coffee==='yes') Yes @else No ({{ ucfirst(str_replace('_',' ',$recent->harvest_no_reason)) }} @if($recent->harvest_no_reason==='other')– {{ $recent->harvest_other_reason }}@endif) @endif
{{ $recent?->social_worker_remarks ?: 'No record' }}
{{ $child->sponsor ? $child->sponsor->sponsor_fname.' '.$child->sponsor->sponsor_lname : '—' }}
Sponsor No: {{ optional($child->sponsor)->sponsor_number ?: '—' }}No sponsorship data available.
@endifNo progress updates yet.
@elseDeath: {{ $log->reason_of_death }}
@elseif($log->reason_of_termination)Terminated: {{ $log->reason_of_termination }}
@elseif($log->reason_of_registration_cancel)Cancelled: {{ $log->reason_of_registration_cancel }}
@elseStatus changed to: {{ $log->status->status_name }}
@endif-
{{-- Location --}}
- Location: {{ $upd->still_at_home==='no' ? "Not at home ({$upd->where_is_child})" : 'Still at home' }} {{-- Guardian --}} @if($upd->id_guardian || $upd->guardian_name)
- Guardian: {{ optional($upd->guardian)->guardian ?? '—' }}: {{ $upd->guardian_name }} @can('guardian_contact.view') @if($upd->guardian_contact) (+{{ $upd->guardian_contact }}) @endif @endcan @endif {{-- School --}}
- School: @if($upd->is_schooling==='yes') {{ optional($upd->school)->school_name ?? '—' }} (Class {{ $upd->class }}) @else Not schooling ({{ $upd->school_reason }}) @endif {{-- Church --}}
- Church Attendance: {{ ucfirst($upd->church_attendance) }} @if($upd->church_attendance==='no') ({{ $upd->church_reason }}) @endif {{-- Appearance --}}
- Appearance: {{ ucfirst($upd->appearance) }} {{-- Hobby & Dream --}} @if($upd->hobby)
- Hobby: {{ $upd->hobby }} @endif @if($upd->dream)
- Dream: {{ $upd->dream }} @endif {{-- Village --}} @if($upd->village)
- Village: {{ $upd->village }} @endif {{-- Family size --}}
- Family size: {{ $upd->num_children }} {{ Str::plural('child',$upd->num_children) }}, {{ $upd->num_adults }} {{ Str::plural('adult',$upd->num_adults) }} {{-- House type --}} @if($upd->house_type)
- House type: {{ ucfirst(str_replace('_',' ',$upd->house_type)) }} @endif {{-- Facilities --}} @foreach(['kitchen','utensils_rack','bathroom','latrine'] as $fac) @if($upd->{"has_{$fac}"})
- {{ ucwords(str_replace('_',' ',$fac)) }}: Yes @endif @endforeach {{-- Recent death --}} @if($upd->recent_death==='yes')
- Recent death: {{ $upd->death_reason }} @endif {{-- Coffee --}} @if($upd->received_coffee)
- Received coffee: {{ ucfirst($upd->received_coffee) }} @endif @if($upd->coffee_plants_count)
- Coffee plants: {{ $upd->coffee_plants_count }} @endif {{-- Harvesting --}} @if($upd->harvesting_coffee==='yes')
- Harvesting: Yes @elseif($upd->harvesting_coffee==='no')
- Harvesting: No ({{ ucfirst(str_replace('_',' ',$upd->harvest_no_reason)) }} @if($upd->harvest_no_reason==='other') – {{ $upd->harvest_other_reason }} @endif) @endif {{-- Remarks --}} @if($upd->social_worker_remarks)
- Remarks: {{ $upd->social_worker_remarks }} @endif
No photos to display.
@else