Gatepass Details Gatepass Details @push('styles') @endpush
Gatepass Information
Gatepass No:
{{ $gatepass->gatepass_no }}
Date:
{{ $gatepass->created_at->format('d M Y, h:i A') }}
Requestion No:
{{ $gatepass->indentRequisition->request_no }}
Status: {{ ucfirst($gatepass->status_name) }}
Health Center:
{{ $gatepass->healthPost?->health_post_name ?? '-' }}
Requested By:
{{ $gatepass->indentRequisition?->user?->name ?? '-' }}
Approved By:
{{ $gatepass->statusBy?->name ?? '-' }}

Packed By:
{{ $gatepass->packedBy?->name ?? '-' }}
Dispatched By:
{{ $gatepass->dispatchedBy?->name ?? '-' }}
Received By:
{{ $gatepass->received_by ?? '-' }} @if ($gatepass->receiver_designation) ({{ $gatepass->receiver_designation }}) @endif
Receiver Mobile:
{{ $gatepass->receiver_mobile ?? '-' }}
{{-- Example: show items if you have a relation --}} @if (isset($gatepass->items) && $gatepass->items->count())
Items
@foreach ($gatepass->items as $i => $item) @endforeach
# Medicine Requested Qty Approved Qty Unit
{{ $i + 1 }} {{ $item->medicine->name ?? '-' }} {{ number_format($item->quantity) }} {{ $item->approved_qty !== null ? number_format($item->approved_qty) : '-' }} {{ $item->unit?->unit ?? '-' }}
@endif
@push('scripts') @endpush