{{-- Header content if needed on every page, but current design has a specific header block in body. Ideally header logic should be separated if it needs to repeat. For now, I'll keep the main header in body as it might just be a one-pager or first-page only requirement, but typically "page numbers" implies multipage. If the user wants the header on every page, it should be in
. I'll stick to adding the Footer for page numbers. --}}
Logo

{{ config('app.company_name') }}

Central Medical Store – Health Department

Dispatched Requisition

Date: {{ date('d-m-Y', strtotime($requisition->created_at)) }}
Requisition No: #{{ $requisition->request_no }}
Health Post: {{ $requisition->healthPost->health_post_name ?? '-' }}

Items

@foreach ($dispatchedItems as $item) {{-- Item Code --}} {{-- Medicine Name --}} {{-- Medicine Details --}} {{-- Unit --}} {{-- Requested Qty --}} {{-- Approved Qty --}} {{-- Dispatch Remark --}} @endforeach
Sr No Item Code Medicine Batch/Qty/Mfg/Exp Unit Requested Qty Approved Qty Dispatch Remark
{{ $loop->iteration }}{{ $item->medicine?->item_code ?? '-' }}{{ $item->medicine?->name ?? '-' }} @if ($item->status == 2) {{-- STATUS_REJECTED --}} Not in Stock @else @foreach ($item->openingStockPull as $value)
{{ $value->openingStock->batch_no }} / {{ $value->qty }} / {{ $value->openingStock->mfg_date ? $value->openingStock->mfg_date->format('d-m-Y') : '-' }} / {{ $value->openingStock->exp_date ? $value->openingStock->exp_date->format('d-m-Y') : '-' }}
@if (!$loop->last)
@endif @endforeach @endif
{{ $item->unit?->unit ?? '-' }} {{ $item->quantity }} {{ $item->approved_qty }}{{ $item->remark ?: '-' }}