@extends('layouts.app') @section('title', 'Central Supervision Ledger - ' . $label) @push('styles') @endpush @section('content')

Central Supervision Ledger

{{ $label }} · {{ now()->format('d M Y') }}
Back
KENYA PROBATION & AFTERCARE SERVICE — Central Supervision Ledger: {{ strtoupper($label) }}
@if($isAftercare) {{-- AFTERCARE variant --}} @else {{-- PROBATION ORDERS / CSO variant --}} @endif @forelse($cases as $case) @php $p = $case->prisoner; $ord = $case->supervisionOrders->sortByDesc('start_date')->first(); $age = optional(optional($p)->dob) ? \Carbon\Carbon::parse($p->dob)->age : null; $placed = optional($ord)->start_date ? \Carbon\Carbon::parse($ord->start_date) : null; $expires = optional($ord)->end_date ? \Carbon\Carbon::parse($ord->end_date) : null; $period = ($placed && $expires) ? $placed->diffInMonths($expires) . ' mo' : '—'; $idpass = $case->national_id ?: ($case->passport_no ?: '—'); $mode = optional($case->completion)->mode; $remarks = optional($case->completion)->remarks; $sex = $p && $p->gender ? strtoupper(substr($p->gender, 0, 1)) : '—'; @endphp @if($isAftercare) @endif @if($isAftercare) @else @endif @empty @endforelse
Institutions No. Serial No. Name Sex Age Tribe ID / Passport Offence / Sec. CRC No. Officer Period Duration of Order Nature of Completion Remarks
FromTo SatisfactoryUnsatisfactoryAbsconded
Serial No. Name Sex Age Tribe ID / Passport Offence / Sec. CRC No. Court & Judge / Magistrate Duration of Order Extension of Order Transfer Officer Nature of Completion Remarks
PeriodPlacedExpires SatisfactoryUnsatisfactoryAbsconded
{{ $case->institutions_number ?? optional($p)->prisoner_number ?? '—' }}{{ $case->serial_number }} {{ optional($p)->name ?? '—' }} {{ $sex }} {{ $age ?? '—' }} {{ $case->tribe ?? '—' }} {{ $idpass }} {{ trim(($case->offence ?? '') . ($case->offence_section ? ' (' . $case->offence_section . ')' : '')) ?: '—' }} {{ $case->court_case_number ?? '—' }}{{ optional($case->officer)->name ?? '—' }} {{ $placed ? $placed->format('d/m/y') : '—' }} {{ $expires ? $expires->format('d/m/y') : '—' }} {{ $period }}{{ $case->referral_court_name ?? '—' }} {{ $period }} {{ $placed ? $placed->format('d/m/y') : '—' }} {{ $expires ? $expires->format('d/m/y') : '—' }} {{ optional($ord)->extension_to ? \Carbon\Carbon::parse($ord->extension_to)->format('d/m/y') : '—' }} {{ $case->status === 'transferred' ? '✓' : '' }} {{ optional($case->officer)->name ?? '—' }}{{ $mode === 'successful' ? '✓' : '' }} {{ $mode === 'unsuccessful' ? '✓' : '' }} {{ $mode === 'absconded' ? '✓' : '' }} {{ $remarks ?? '' }}
No {{ strtolower($label) }} on the supervision ledger yet.

Tribe, Offence / Section, ID/Passport and CRC are pulled from the case ledger (captured on registration or via the case Outcome). Duration / Placed / Expires come from the supervision order; cases without an order yet show “—”. Nature of completion reflects the recorded completion mode.

@endsection