@extends('layouts.app') @section('title', 'Prisoners') @section('content') {{-- Page guide: what this screen is for --}}
Prisoner Register. The master prisoner register. View, search and manage prisoner records, and open each prisoner's full profile, current location and history.
{{-- Branch Info Banner --}}
Current Branch: {{ \App\Helpers\BranchHelper::getCurrentBranchName() }} @if(\App\Helpers\BranchHelper::isSuperAdmin()) Super Admin - Viewing All Branches @endif

Prisoner List

{{-- Search Form --}}
{{-- Prisoner Table --}}
@forelse($prisoners as $key => $p) @empty @endforelse
# Prisoner Number Name Gender DOB Case Number Photo
{{ $key + 1 }} {{ $p->prisoner_number }} {{ $p->name }} {{ $p->gender }} {{ $p->dob }} {{ $p->case_number }} @if($p->photo) @php // Convert stored path to public URL via symbolic link $imageUrl = asset('storage/' . $p->photo); // This will generate: http://localhost:81/prisons/public/storage/prisoner_photos/filename.png @endphp Photo @else N/A @endif
No prisoners found.
{{-- Pagination --}}
{{ $prisoners->links() }}
{{-- Image Modal --}} @endsection @push('scripts') @endpush