@extends('layouts.app') @section('title', 'Gate Entry - ICMIS') @section('content')
Gate Entry. Prisoners captured at the gate who are still awaiting Reception Documentation are listed here. Once documentation is completed and the prisoner is officially admitted, they drop off this list — find them from Reception Search or the Prisoners register instead.

Gate Entry

Prisoner capture / admission at the gate — awaiting documentation
New Gate Entry
{{-- STATS --}}
Today

{{ $stats['today'] }}

This Week

{{ $stats['this_week'] }}

Awaiting Documentation

{{ $stats['awaiting_documentation'] }}

Total Gate Entries

{{ $stats['total'] }}

@if (session('success'))
{{ session('success') }}
@endif {{-- FILTERS --}}
{{-- TABLE --}}
@forelse ($gateEntries as $key => $ge) @empty @endforelse
# Prison No. Name Category Court Decision Case No. Gate Date Status Actions
{{ $gateEntries->firstItem() + $key }} {{ $ge->prison_number }} @if($ge->prisoner) {{ $ge->prisoner->name }} @else N/A @endif {{ $ge->prisonerCategory->name ?? '-' }} {{ $ge->court_decision }} {{ $ge->case_number }} {{ optional($ge->admission_date_gate)->format('d M Y') }} Awaiting Documentation
@csrf
View
No prisoners awaiting documentation.
{{ $gateEntries->links() }}
@endsection