@extends('layouts.app') @section('title', 'Probation Case Data - ICMIS') @section('content')

Case Data

{{ ($scope ?? 'supervision') === 'all' ? 'All cases, every work-stream' : 'Master data — all cases under supervision' }}
Analytics Export CSV
Central Supervision Ledger — Probation Orders Community Service Aftercare Probation Hostels Referrals / Social Enquiry
@forelse($cases as $c) @php $o = $c->supervisionOrders->sortByDesc('created_at')->first(); @endphp @empty@endforelse
SerialNameSexAgeID / DocumentModule Offence / SectionCRC No.CourtDate PlacedDate of ExpiryOfficerStatus
{{ $c->serial_number }} {{ optional($c->prisoner)->name }} {{ ucfirst((string) optional($c->prisoner)->gender) ?: '—' }} {{ $c->age_years ?? '—' }} {{ $c->document_label ?? '—' }} {{ \App\Models\ProbationCase::labelForType($c->case_type) }} {{ $c->offence ?? '—' }}{{ $c->offence_section ? ' / ' . $c->offence_section : '' }} {{ $c->crc_number ?? $c->court_case_number ?? '—' }} {{ $c->referral_court_name ?? '—' }} {{ optional(optional($o)->start_date)->format('d M Y') ?? '—' }} {{ optional(optional($o)->end_date)->format('d M Y') ?? '—' }} {{ optional($c->officer)->name ?? '—' }} {{ ucwords(str_replace('_',' ',$c->status)) }}
No cases match these filters.
{{ $cases->links() }}
@endsection