@extends('layouts.app') @section('title', 'Prisoner Details') @section('content')
{{ $prisoner->prisoner_number }}
Gender: {{ $prisoner->gender }}
Date of Birth: {{ $prisoner->dob }}
Case Number: {{ $prisoner->case_number }}
Current Location: @if($currentLocation) {{ $currentLocation->branch_name ?? 'N/A' }} @else Not in custody @endif
Latest Reception: @if($latestReception) #{{ $latestReception->reception_number }} - {{ $latestReception->created_at->format('Y-m-d') }} @else None @endif
Total Receptions: {{ $receptions->count() }}
No next of kin recorded.
@endforelse| # | Date | Branch | Source | Status | Action |
|---|---|---|---|---|---|
| #{{ $rec->reception_number }} | {{ $rec->created_at->format('Y-m-d H:i') }} | {{ $rec->branch->branch_name ?? 'N/A' }} | {{ $rec->source }} | {{ ucfirst($rec->status) }} | View |
| No reception records found | |||||
| Assessment Date | Overall Risk | Security Risk | Violence Risk | Escape Risk | Assessor | Status | Action |
|---|---|---|---|---|---|---|---|
| {{ $assessment->assessment_date->format('Y-m-d') }} | {{ $assessment->overall_risk_category }} | {{ $assessment->security_risk_level }} | {{ $assessment->violence_risk_level }} | {{ $assessment->escape_risk_level }} | {{ $assessment->assessor->name ?? 'N/A' }} | @if($assessment->status == 'Approved') Approved @else Draft @endif | View |
| No risk assessments found | |||||||
| Admission Date | Branch | Cell Block | Custody Level | Status | Children | Belongings |
|---|---|---|---|---|---|---|
| {{ $adm->admission_date ? \Carbon\Carbon::parse($adm->admission_date)->format('d-m-Y') : 'N/A' }} | {{ $adm->branch->branch_name ?? 'N/A' }} | {{ $adm->cell_block ?? 'N/A' }} | {{ $adm->custody_level ?? 'N/A' }} | @if($adm->release_date) Released {{ \Carbon\Carbon::parse($adm->release_date)->format('d-m-Y') }} @else In Custody @endif | {{ $adm->children->count() }} | {{ $adm->belongings->count() }} |
| No admissions found | ||||||
| Date | Security Level | Block / Cell | Review Status | Next Review | Action |
|---|---|---|---|---|---|
| {{ $c->classification_date?->format('d-m-Y') ?? 'N/A' }} | {{ $c->security_level ?? 'N/A' }} | {{ $c->assigned_block ?? 'N/A' }}{{ $c->assigned_cell ? ' / '.$c->assigned_cell : '' }} | {{ $c->review_status ?? 'N/A' }} | {{ $c->next_review_date?->format('d-m-Y') ?? 'N/A' }} | View |
| No classification records found | |||||
| Program | Recorded | Status | Action |
|---|---|---|---|
| {{ $r->program_name ?? $r->program_type ?? $r->program ?? 'N/A' }} | {{ $r->created_at?->format('d-m-Y') ?? 'N/A' }} | @php $ps = $r->progress_status ?? null; @endphp {{ $ps ?? 'N/A' }} | View |
| No rehabilitation records found | |||
| Production Date | Court | Case No. | Status | Outcome | Next Court | Action |
|---|---|---|---|---|---|---|
| {{ $cp->production_date?->format('d-m-Y') ?? 'N/A' }} | {{ $cp->court_name ?? 'N/A' }}{{ $cp->court_location ? ' ('.$cp->court_location.')' : '' }} | {{ $cp->case_number ?? 'N/A' }} | {{ $cp->production_status ?? 'N/A' }} | @if($cp->outcome_type) {{ $cp->outcome_type }} @else — @endif | {{ $cp->next_court_date?->format('d-m-Y') ?? '—' }} | View |
| No court production records found | ||||||
| Date | From | To | Status | Action |
|---|---|---|---|---|
| {{ $t->transfer_date ? \Carbon\Carbon::parse($t->transfer_date)->format('d-m-Y') : ($t->created_at?->format('d-m-Y') ?? 'N/A') }} | {{ $t->from_branch ?? optional($t->fromBranch)->branch_name ?? 'N/A' }} | {{ $t->to_branch ?? optional($t->toBranch)->branch_name ?? 'N/A' }} | {{ $t->status ?? $t->transfer_status ?? 'N/A' }} | View |
| No transfer records found | ||||
| Date | Type | Status | Officer | Gate Money | Supervised | Action |
|---|---|---|---|---|---|---|
| {{ $d->discharge_date?->format('d-m-Y') ?? 'N/A' }} | {{ ucwords(str_replace('_', ' ', $d->discharge_type ?? 'N/A')) }} | {{ ucfirst($d->status ?? 'N/A') }} | {{ $d->discharge_officer ?? 'N/A' }} | {{ $d->gate_money_amount !== null ? 'KSh '.number_format($d->gate_money_amount, 2) : 'N/A' }} | @if($d->is_supervised)Yes@elseNo@endif | View |
| No discharge records found | ||||||