@extends('layouts.app') @section('title', 'Prisoners') @section('content') {{-- Page guide: what this screen is for --}}
| # | 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
|
|
| No prisoners found. | |||||||