@if($activities->isEmpty()) @else
@foreach($activities as $act) @if($act['type'] === 'status') @php $log = $act['item']; @endphp
Status change
@if($log->reason_of_death)

Death recorded: {{ $log->reason_of_death }}

@elseif($log->reason_of_termination)

Termination: {{ $log->reason_of_termination }}

@elseif($log->reason_of_registration_cancel)

Registration cancelled: {{ $log->reason_of_registration_cancel }}

@else

Changed to: {{ $log->status->status_name ?? 'Updated status' }}

@endif
@else @php $upd = $act['item']; @endphp
Field update
@can('child_update.edit') Edit @endcan
@if($upd->update_photo) @endif
  • Location: {{ $upd->still_at_home === 'no' ? "Not at home ({$upd->where_is_child})" : 'Still at home' }}
  • @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: @if($upd->is_schooling === 'yes') {{ optional($upd->school)->school_name ?? '—' }} (Class {{ $upd->class }}) @else Not schooling ({{ $upd->school_reason }}) @endif
  • Church: {{ ucfirst($upd->church_attendance) }} @if($upd->church_attendance === 'no') ({{ $upd->church_reason }}) @endif
  • @if($upd->hobby)
  • Hobby: {{ $upd->hobby }}
  • @endif @if($upd->dream)
  • Dream: {{ $upd->dream }}
  • @endif @if($upd->village)
  • Village: {{ $upd->village }}
  • @endif
  • Family: {{ (int) $upd->num_children }} {{ Str::plural('child', (int) $upd->num_children) }}, {{ (int) $upd->num_adults }} {{ Str::plural('adult', (int) $upd->num_adults) }}
  • @if($upd->received_coffee)
  • Coffee: {{ ucfirst($upd->received_coffee) }}
  • @endif @if($upd->social_worker_remarks)
  • Remarks: {{ $upd->social_worker_remarks }}
  • @endif
@endif @endforeach
@endif