@php $hs = \App\Helpers\HospitalSettings::all(); @endphp
{{ $hs['hospital_name'] ?? 'Clara Rosa Hospital' }}
{{ $hs['hospital_address'] ?? '' }}
Tel: {{ $hs['hospital_phone'] ?? '' }}
@if($hs['hospital_email'] ?? '')
{{ $hs['hospital_email'] }}
@endif
Interim Receipt
@if($receipt->payment->reference_number ?? $receipt->payment->mpesa_code ?? null) @endif
Receipt No.{{ $receipt->receipt_number }}
Date{{ $receipt->created_at->format('d/m/Y H:i') }}
Patient{{ $receipt->patient->full_name ?? '' }}
MRN{{ $receipt->patient->mrn ?? '' }}
Invoice{{ $receipt->invoice?->invoice_number ?? '' }}
Method{{ str_replace('_',' ',$receipt->payment_method) }}
Reference{{ $receipt->payment->reference_number ?? $receipt->payment->mpesa_code ?? '' }}
{{-- ── SHA member block (thermal) ─────────────────────────────────── Rendered as plain dashed-bordered rows so it prints cleanly on 80mm POS paper without grey backgrounds (thermal printers will render shaded blocks as black ink waste). Only shows when this receipt's payment is an SHA payment. --}} @if(!empty($receipt->payment?->sha_number))
SHA Member
@if(!empty($receipt->payment->sha_auth_reference)) @endif
SHA No.{{ $receipt->payment->sha_number }}
Member{{ $receipt->payment->sha_member_name }}
Relation{{ $receipt->payment->sha_relationship }}
Auth Ref{{ $receipt->payment->sha_auth_reference }}
@endif
@if($receipt->invoice && $receipt->invoice?->items->count()) @php $receiptItemIds = ($receipt->items ?? collect())->pluck('id')->toArray(); $isItemized = count($receiptItemIds) > 0; @endphp @if($isItemized)@endif @foreach($receipt->invoice?->items as $item) @php $covered = in_array($item->id, $receiptItemIds); @endphp @if($isItemized)@endif @endforeach
Item Amt (KES)
{{ $item->description }} {{ number_format($item->total) }}{{ $covered ? 'PAID' : '' }}
@endif
Amount Received
KES {{ number_format($receipt->amount, 2) }}
@if($receipt->invoice)
Total BillKES {{ number_format($receipt->invoice?->total_amount ?? 0) }}
Total PaidKES {{ number_format($receipt->invoice?->amount_paid ?? 0) }}
BalanceKES {{ number_format($receipt->invoice?->balance ?? 0) }}
@endif