Dispense Receipt
@if(!empty($isPreview))
PREVIEW • {{ $log->received_at?->format('Y-m-d H:i') }}
@else
Log #{{ $log->log_id }} • {{ $log->received_at?->format('Y-m-d H:i') }}
@endif
Pharmacy Recipient
Name: {{ $pharmacyName }}
ID: {{ $log->pharmacy_id }}
Name: {{ $recipientName }}
Recipient ID: {{ $log->recipient_id }}
@if($recipientNationalIdMasked)
National ID: {{ $recipientNationalIdMasked }}
@endif @if($recipientCity)
City: {{ $recipientCity }}
@endif
@php($items = $items ?? null) @if(is_array($items) && count($items)) @foreach($items as $item) @endforeach @endif
Month Drug Quantity Coverage Ratio
{{ $log->month_year }} {{ $item['drug_name'] ?? ('Drug #' . ($item['drug_id'] ?? '')) }} {{ $item['quantity'] ?? '' }} {{ number_format(((float) ($item['coverage_ratio'] ?? 1)) * 100, 0) }}%
Recorded ID Photo
@if($recordedBy)
Recorded by: {{ $recordedBy }}
@endif @if($log->notes)
Notes: {{ $log->notes }}
@endif
@if($idImageDataUri) ID photo @else
No ID photo attached.
@endif
This receipt was generated by the system.