@extends('layouts.app') @section('title', 'Prisoner Death') @section('content')
{{-- Page guide: what this screen is for --}}
Death of a Prisoner. Record the death of a prisoner: capture death details and reports, the certifying officer and postmortem flag, and process the release/discharge of the body.

Prisoner Death

{{ $records->total() }} record(s)
@can('prison.deaths.add') New Record@endcan
@if(session('success'))
{{ session('success') }}
@endif
@forelse($records as $r) @empty @endforelse
PrisonerDate of deathCauseCertified byPostmortemActions
{{ optional($r->prisoner)->name ?? '—' }}
{{ optional($r->prisoner)->prisoner_number }}
{{ optional($r->date_of_death)->format('d M Y') }} {{ $r->cause_of_death ?? '—' }} {{ $r->certified_by ?? '—' }} @if($r->postmortem_required)Yes@elseNo@endif @if(in_array($r->status ?? '', ['Requested','Recorded','Active','Removed','At Facility']))
@csrf
@endif
No records yet.
{{ $records->withQueryString()->links() }}
@endsection