@extends('layouts.app') @section('title', 'Sentence Computation & Remission') @section('content')
{{-- Page guide: what this screen is for --}}
Computation & Remission of Sentence. Compute and remit sentences across all computation types, sort prisoners by remission eligibility, and route custom computations through approval.

Sentence Computation & Remission

{{ $records->total() }} record(s)
@can('prison.sentence-computation.add') New Record@endcan
@if(session('success'))
{{ session('success') }}
@endif
@forelse($records as $r) @empty @endforelse
PrisonerTypeStartLength (d)Computed releaseEligibleStatusActions
{{ optional($r->prisoner)->name ?? '—' }}
{{ optional($r->prisoner)->prisoner_number }}
{{ $r->computation_type }} {{ optional($r->sentence_start_date)->format('d M Y') }} {{ $r->sentence_length_days }} {{ optional($r->computed_release_date)->format('d M Y') }} @if($r->remission_eligible)Yes@elseNo@endif {{ $r->status }} @if(in_array($r->status ?? '', ['Draft','Scheduled','Open']))
@csrf
@endif
No records yet.
{{ $records->withQueryString()->links() }}
@endsection