<!doctype html>
<html><head><meta charset="utf-8"><title>Receipt {{ $payment->receipt_number }}</title><style>body{font-family:Arial,sans-serif;max-width:760px;margin:40px auto;color:#1f2937}.head{display:flex;justify-content:space-between;border-bottom:2px solid #2563eb;padding-bottom:16px}.card{margin-top:24px;border:1px solid #d1d5db;padding:24px;border-radius:8px}.amount{font-size:28px;font-weight:bold;color:#166534}dt{color:#6b7280}dd{margin:0 0 14px}@media print{button{display:none}body{margin:0}}</style></head><body>
<div class="head"><div><h1>Payment Receipt</h1><div>{{ $payment->receipt_number }}</div></div><div><button onclick="window.print()">Print</button></div></div>
<div class="card"><p class="amount">{{ $document->currency }} {{ number_format($payment->amount, 2) }}</p><dl><dt>Invoice</dt><dd>{{ $document->document_number }}</dd><dt>Payment date</dt><dd>{{ $payment->paid_at?->format('Y-m-d H:i') }}</dd><dt>Method</dt><dd>{{ $payment->method ?: 'Not specified' }}</dd><dt>Payment reference</dt><dd>{{ $payment->reference }}</dd><dt>Recorded by</dt><dd>{{ $payment->recorder?->name ?: 'System' }}</dd><dt>Receipt issued</dt><dd>{{ $payment->receipt_issued_at?->format('Y-m-d H:i') }}</dd></dl><p>Received towards invoice {{ $document->document_number }}.</p></div>
</body></html>
