@php
$pcTiles = [
['Total Cases', $probation['total'], 'grad-blue', 'fa-folder-open', ''],
['Under Supervision', $probation['supervised'], 'grad-teal', 'fa-eye', 'status=under_supervision'],
['Awaiting Court', $probation['awaiting'], 'grad-amber', 'fa-gavel', 'status=awaiting_court'],
['In Breach', $probation['breached'], 'grad-red', 'fa-triangle-exclamation', 'status=breached'],
['Completed', $probation['completed'], 'grad-green', 'fa-circle-check', 'status=completed'],
['High Risk', $probation['high_risk'], 'grad-purple', 'fa-fire', ''],
];
@endphp
@foreach($pcTiles as [$label, $val, $grad, $icon, $qs])
@endforeach
@php
$pcLabels = [
'social_inquiry' => 'Social Inquiry', 'probation_order' => 'Probation Order',
'community_service' => 'Community Service', 'aftercare_borstal' => 'Aftercare',
'power_of_mercy' => 'Power of Mercy', 'special_category' => 'Special Category',
'adr' => 'ADR', 'probation_hostel' => 'Hostel', 'halfway_house' => 'Halfway House',
];
$pcMax = max(1, count($probationByType) ? max($probationByType) : 1);
@endphp
@forelse($probationRecent as $c)
@php $rk = [
'social_inquiry'=>'social-inquiries','probation_order'=>'probation-orders',
'community_service'=>'cso','aftercare_borstal'=>'aftercare','power_of_mercy'=>'power-of-mercy',
'special_category'=>'special-categories','adr'=>'adr','probation_hostel'=>'hostels','halfway_house'=>'halfway-houses',
][$c->case_type] ?? 'social-inquiries'; @endphp
{{ $c->serial_number ?? '#'.$c->id }}
{{ $c->prisoner->name ?? '—' }}
{{ ucwords(str_replace('_',' ',$c->status)) }}
@empty
- No recent cases.
@endforelse