@php $logo='data:image/png;base64,'.base64_encode(file_get_contents(public_path('images/morbrick-brand.png'))); @endphp @if($receipt->voided_at)
VOID - PAYMENT REVERSED
{{ $receipt->void_reason }}
@endif
@include('pdf.partials.company-letterhead')

PAYMENT RECEIPT


@if($payment->mpesa_receipt_number) @endif @if($payment->reference) @endif
Receipt number {{ $receipt->receipt_number }}
Invoice {{ $payment->invoice->invoice_number ?? '—' }}
Customer {{ $payment->invoice->customer->name ?? '—' }}
Payment method {{ $payment->paymentMethod->name ?? '—' }}
M-Pesa receipt {{ $payment->mpesa_receipt_number }}
Reference {{ $payment->reference }}
Date paid {{ $payment->paid_at->format('d M Y') }}
Issued at {{ $receipt->issued_at?->format('d M Y H:i') }}

Amount received ({{ $payment->currency }}) KES {{ number_format((float) $payment->amount, 2) }}
@if($receipt->qr_code_data)
{!! QrCode::size(100)->generate($receipt->qr_code_data) !!}

Scan to verify this receipt

@endif