@extends('layouts.app') @section('title', 'Prisoner Discipline') @section('content')
{{-- Page guide: what this screen is for --}}
Prisoners Discipline. Handle prisoner discipline: log offences and sanctions, and automatically recompute release dates when remission is lost.

Prisoner Discipline

{{ $records->total() }} record(s)
@can('prison.discipline.add') New Record@endcan
@if(session('success'))
{{ session('success') }}
@endif
@forelse($records as $r) @empty @endforelse
PrisonerIncidentOffenceCategoryDays lostNew releaseStatusActions
{{ optional($r->prisoner)->name ?? '—' }}
{{ optional($r->prisoner)->prisoner_number }}
{{ optional($r->incident_date)->format('d M Y') }} {{ $r->offence }} {{ $r->offence_category }} {{ $r->remission_days_lost ?? 0 }} {{ optional($r->new_release_date)->format('d M Y') ?: '—' }} {{ $r->status }} @if(in_array($r->status ?? '', ['Draft','Scheduled','Open']))
@csrf
@endif
No records yet.
{{ $records->withQueryString()->links() }}
@endsection