@php $dob = \Carbon\Carbon::parse($child->dob); $childrenCount = (int) ($recent?->num_children ?? 0); $adultCount = (int) ($recent?->num_adults ?? 0); @endphp
  • Date of birth{!! $dob->format('j') !!}{{ $dob->format('S') }} {{ $dob->format('M, Y') }} ({{ $dob->age }} yrs)
  • Gender{{ ucfirst(strtolower($child->sex)) }}
  • Village{{ $recent?->village ?? $child->child_village ?? '—' }}
  • Hobby{{ $recent?->hobby ?: '—' }}
  • Dream{{ $recent?->dream ?: '—' }}
  • School{{ $recent?->school?->school_name ?? '—' }}
  • Class{{ optional($recent)->class ?? '—' }}
  • Cluster{{ $child->cluster->cluster_name ?? '—' }} @if($child->cluster?->code)({{ $child->cluster->code }})@endif
  • Pastor(s) @forelse($child->cluster?->pastors ?? [] as $p) {{ $p->title }} {{ $p->first_name }} {{ $p->last_name }} @if(Auth::user()->can('pastor_contact.view') && $p->contact) (+{{ $p->contact }}) @endif {{ !$loop->last ? '; ' : '' }} @empty — @endforelse
  • Church @forelse($child->cluster?->pastors ?? [] as $p) {{ $p->church->church_name ?? '—' }}{{ !$loop->last ? '; ' : '' }} @empty — @endforelse
  • Guardian {{ optional($child->guardianModel)->guardian ?? '—' }}: {{ $child->guardian_name ?: '—' }} @if(Auth::user()->can('guardian_contact.view') && $child->guardian_contact) (+{{ $child->guardian_contact }}) @endif
  • Mother{{ $child->mother_name ?: '—' }} ({{ $child->mother_status ?: '—' }})
  • Father{{ $child->father_name ?: '—' }} ({{ $child->father_status ?: '—' }})
  • Family size @if($childrenCount || $adultCount) {{ $childrenCount }} {{ \Illuminate\Support\Str::plural('child', $childrenCount) }}, {{ $adultCount }} {{ \Illuminate\Support\Str::plural('adult', $adultCount) }} @else — @endif
  • House type{{ $recent?->house_type ? ucfirst(str_replace('_', ' ', $recent->house_type)) : '—' }}
  • Received coffee{{ $recent?->received_coffee ? ucfirst($recent->received_coffee) : '—' }}
  • Coffee plants{{ $recent?->coffee_plants_count ?? '—' }}
  • Harvesting yet @if(is_null($recent?->harvesting_coffee)) — @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
  • Social worker remarks{{ $recent?->social_worker_remarks ?: '—' }}