@extends('layouts.app') @section('title', 'Reception & Search - ICMIS') @section('content')
| Prison No. | Name | Court Case No. | Court Decision | Gate Date | |
|---|---|---|---|---|---|
| {{ $ge->prison_number }} | {{ $ge->prisoner->name ?? 'N/A' }} | {{ $ge->case_number }} | {{ $ge->court_decision }} | {{ optional($ge->admission_date_gate)->format('d M Y') }} | |
| No prisoners awaiting documentation in this category. | |||||
| Prison No. | Name | Step | |
|---|---|---|---|
| {{ $adm->prison_number }} | {{ $adm->prisoner->name ?? 'N/A' }} | {{ $adm->current_step ?? $adm->wizardSteps()->first()->step_key }} | Resume |
| Nothing in progress. | |||
| Prisoner Number | Name | From Branch | Transfer Date | Action |
|---|---|---|---|---|
| {{ $transfer->prisoner_number }} {{ $transfer->prisoner->prisoner_number ?? 'N/A' }} | {{ $transfer->prisoner->name ?? 'N/A' }} |
@php
$fromBranch = \App\Models\Branch::find($transfer->transfer_from_branch_id);
@endphp
{{ $fromBranch->branch_name ?? 'Unknown' }}
@if($fromBranch && $fromBranch->city)
{{ $fromBranch->city }} @endif |
{{ \Carbon\Carbon::parse($transfer->transfer_date)->format('Y-m-d') }} | Receive & Admit |
| Name | Release Type | Released | Expected Return | Action |
|---|---|---|---|---|
| {{ $out->prisoner->name ?? 'N/A' }} | {{ ucfirst(str_replace('_', ' ', $out->knocked_out_reason ?? 'Unknown')) }} | {{ \Carbon\Carbon::parse($out->knocked_out_at)->diffForHumans() }} | @if($out->expected_return_date) {{ \Carbon\Carbon::parse($out->expected_return_date)->format('Y-m-d') }} @else Not set @endif |
No prisoners currently out on temporary release.
@endif| # | Reception # | Prisoner No | Name | Source | Status | Location | Detention | Date | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $key+1 }} | #{{ $rec->reception_number ?? 1 }} @if(($rec->reception_number ?? 1) > 1) RE-ARREST @endif | {{ $rec->prisoner->prisoner_number ?? 'N/A' }} | {{ $rec->prisoner->name ?? 'N/A' }} | {{ $rec->source ?? 'N/A' }} | {{ $rec->status ?? 'N/A' }} @if($rec->prisonerCategory) {{ $rec->prisonerCategory->name }} @endif | @if($rec->knocked_out_reason == 'transfer' && $rec->transfer_status == 'in_transit') TRANSFERRED To: @php $toBranch = \App\Models\Branch::find($rec->transfer_to_branch_id); @endphp {{ $toBranch->branch_name ?? 'Unknown' }} IN TRANSIT @elseif($rec->knocked_out_at && is_null($rec->knocked_in_at)) KNOCKED OUT {{ ucfirst(str_replace('_', ' ', $rec->knocked_out_reason ?? 'Unknown')) }} AWAITING RETURN @elseif($rec->knocked_in_at && is_null($rec->knocked_out_at)) IN CUSTODY @elseif(!$rec->admitted_flag) AWAITING DOCUMENTATION @else PENDING @endif | {{ $rec->detention_count ?? 0 }} @if(($rec->detention_count ?? 0) >= 3) ⚠️ @endif | {{ $rec->created_at ? $rec->created_at->format('Y-m-d') : 'N/A' }} |
|
| No reception records found | |||||||||