@extends('layouts.app') @section('title', 'Reception Details') @section('content')
{{-- Header --}}

Reception Details

View complete reception information
Back to List @can('prison.reception.edit') Edit @endcan
{{-- Alert for multiple detentions --}} @if($reception->detention_count >= 3) @endif
{{-- Main Information --}}
Reception Information

#{{ $reception->reception_number ?? '1' }} @if(($reception->reception_number ?? 1) > 1) Re-arrest @endif

{{ $reception->reception_date ? date('F d, Y', strtotime($reception->reception_date)) : 'N/A' }}

{{ $reception->source ?? 'N/A' }}

{{ ucfirst($reception->status) }}

{{ $reception->detention_count ?? 0 }} @if(($reception->detention_count ?? 0) >= 3) ⚠️ Frequent @endif

{{ $reception->officer ?? 'N/A' }}

@if($reception->notes)

{{ $reception->notes }}

@endif
{{-- Warrant Information --}}
Warrant Information

{{ $reception->warrant_number ?? 'N/A' }}

{{ $reception->warrant_date ? date('F d, Y', strtotime($reception->warrant_date)) : 'N/A' }}

{{ $reception->warrant_info ?? 'No warrant information provided' }}

@if($reception->warrant_document)

View Document

@endif
{{-- CAM10 - Accompanying Child Information --}} @if($reception->has_accompanying_child)
CAM10 - Accompanying Child

{{ $reception->child_name ?? 'N/A' }}

{{ $reception->child_dob ? date('F d, Y', strtotime($reception->child_dob)) : 'N/A' }}

{{ ucfirst($reception->child_gender ?? 'N/A') }}

@if($reception->child_notes)

{{ $reception->child_notes }}

@endif
@endif {{-- Knock In/Out History --}}
Movement History

{{ $reception->knocked_in_at ? date('F d, Y H:i', strtotime($reception->knocked_in_at)) : 'Not knocked in' }}

{{ $reception->knocked_out_at ? date('F d, Y H:i', strtotime($reception->knocked_out_at)) : 'Not knocked out' }}

{{ $reception->knocked_out_reason ?? 'N/A' }}

{{ $reception->knock_count ?? 0 }}

{{-- Sidebar - Prisoner Information --}}
Prisoner Information
@if($reception->prisoner && $reception->prisoner->photo) Prisoner Photo @else
@endif
{{ $reception->prisoner->name ?? 'N/A' }}

Prisoner Number: {{ $reception->prisoner_number ?? 'N/A' }}

Case Number: {{ $reception->case_number ?? 'N/A' }}

Gender: {{ $reception->prisoner->gender ?? 'N/A' }}

Date of Birth: {{ $reception->prisoner->dob ?? 'N/A' }}


@can('prison.prisoners.edit') Edit Prisoner @endcan
{{-- Reception History for this Prisoner --}} @if(isset($allReceptions) && $allReceptions->count() > 1) @endif
{{-- Action Buttons --}}
Actions
{{-- Verify Button --}} @if($reception->status == 'Pending Verification') @can('prison.reception.action')
@csrf
@endcan @endif {{-- Temporary Release Button --}} @if(!$reception->knocked_out_at) @endif {{-- Return from Release Button --}} @if($reception->knocked_out_at && !$reception->knocked_in_at)
@csrf
@endif {{-- Transfer Button --}} {{-- Escape Button --}} @if(!$reception->knocked_out_at) @endif {{-- New Arrest Button --}} New Arrest {{-- Delete Button --}}
@csrf @method('DELETE')
{{-- Temporary Release Modal --}} {{-- Transfer Modal --}} {{-- Escape Modal --}} @endsection