{{-- CSO dashboard: economic value of community service work, quantification (KSh vs hours), progress tracker (hours completed vs hours placed), skills / employment linkage / tools. --}} @extends('layouts.app') @section('title', 'CSO Dashboard - ICMIS') @push('styles') @include('probation._styles') @endpush @section('content') @php $maxAgency = max(1, $cso['byAgency']->max('value') ?? 1); $maxMonth = max(1, $cso['byMonth']->max() ?? 1); $overall = $cso['totalOrdered'] > 0 ? min(100, round(100 * $cso['totalWorked'] / $cso['totalOrdered'])) : 0; @endphp
No work recorded yet.
@endforelseNo daily work records yet (CSO Quantification tab → Work record).
@endforelse| Ref. No. | Name | Agency | Hours completed / placed | Value (KSh) | Skills transferred | Employment linkage |
|---|---|---|---|---|---|---|
| {{ $r->case->serial_number }} | {{ optional($r->case->prisoner)->name }} | {{ $r->agency ?? '—' }} | @if($r->pct !== null)
{{ rtrim(rtrim(number_format($r->worked, 1), '0'), '.') }} / {{ rtrim(rtrim(number_format($r->ordered, 1), '0'), '.') }}
@else — @endif |
{{ number_format($r->value, 2) }} | {{ $r->skills ?: '—' }} | {{ $r->linkage ?: '—' }} |
| No CSO cases in this scope. | ||||||