@extends('layouts.app') @section('title', $title . ' - ICMIS') @push('styles') @endpush @section('content') @php $kind = $kind ?? 'orders'; $isCso = $kind === 'cso'; @endphp

{{ $title }}

Back
{{ strtoupper($title) }}
Colour code (PACS guidelines): Referral Placement Completion
@if($isCso) @endif @if($isCso) @endif @forelse($rows as $r) @if($isCso) @endif @empty @endforelse
Colour Code Serial Number Origin Name Sex Age Tribe Id/Passport Offence/Sec CRC No Court and Judge/Magistrate Duration of Order Extension of Order Transfer OfficerCommunity ServiceNature of Completion Remarks
Period Date Placed Date of ExpiryHours Ordered Hours Worked Quantification (KES)Satisfactory Unsatisfactory Absconded
{{ $r->color_label }} {{ $r->case->serial_number }} {{ $r->origin }} {{ $r->name ?? '—' }} {{ $r->sex ?? '—' }} {{ $r->age ?? '—' }} {{ $r->tribe ?? '—' }} {{ $r->id_passport ?? '—' }} {{ $r->offence ?? '—' }} {{ $r->crc_number ?? '—' }} {{ $r->court ?? '—' }} {{ ($r->placed && $r->expires) ? \Carbon\Carbon::parse($r->placed)->diffForHumans(\Carbon\Carbon::parse($r->expires), ['parts' => 2, 'syntax' => \Carbon\CarbonInterface::DIFF_ABSOLUTE]) : '—' }} {{ $r->placed ? \Carbon\Carbon::parse($r->placed)->format('d M Y') : '—' }} {{ $r->expires ? \Carbon\Carbon::parse($r->expires)->format('d M Y') : '—' }} {{ $r->extension ? \Carbon\Carbon::parse($r->extension)->format('d M Y') : '—' }} {{ $r->transfer ?? '—' }} {{ $r->officer ?? '—' }}{{ $r->hours_required ?? '—' }} {{ $r->hours_worked }} {{ number_format($r->quantification, 2) }}{{ in_array($r->mode, ['successful','satisfactorily']) ? '✓' : '' }} {{ in_array($r->mode, ['unsuccessful','unsatisfactorily']) ? '✓' : '' }} {{ $r->mode === 'absconded' ? '✓' : '' }} {{ $r->remarks ?? '—' }}
No cases in this ledger yet.
@endsection