{{-- resources/views/probation/supervision/index.blade.php Supervision module — every case under supervision (Probation Orders, CSO, Aftercare). --}} @extends('layouts.app') @section('title', 'Supervision - ICMIS') @push('styles') @include('probation._styles') @endpush @section('content') @php $types = config('probation.case_types'); @endphp

Supervision

All cases under supervision — Probation Orders, Community Service Orders and Aftercare.
Open a case to record PR 2A supervision notes, interventions, empowerment, breaches and completion.
Breached

{{ $counts['breached'] }}

need action
@forelse($cases as $c) @php $o = $c->supervisionOrders->sortByDesc('created_at')->first(); @endphp @empty@endforelse
SerialNameModuleDate placedDate of expiry OfficerPR 2AStatus
{{ $c->serial_number }} {{ optional($c->prisoner)->name }}
{{ $c->crc_number ?? $c->court_case_number }}
{{ $types[$c->case_type] ?? $c->case_type }}@if($c->aftercare_category)
{{ config('probation.aftercare_categories')[$c->aftercare_category] ?? '' }}@endif
{{ optional(optional($o)->start_date)->format('d M Y') ?? '—' }} {{ optional(optional($o)->extension_to ?? optional($o)->end_date)->format('d M Y') ?? '—' }} {{ optional($c->officer)->name ?? 'Unassigned' }} {{ $c->supervisionOrders->sum(fn ($so) => $so->notes->count()) }} {{ ucwords(str_replace('_',' ',$c->status)) }}
No cases under supervision.
@if($cases->hasPages())@endif
@endsection