<!doctype html><html><head><meta charset="utf-8"><style>@page{margin:35px}body{font-family:"DejaVu Sans",sans-serif;color:#152337;font-size:12px}.head{border-bottom:2px solid #155eef;padding-bottom:15px}.title{text-align:center;font-size:23px;color:#155eef}.box{border:1px solid #ccd6e4;padding:15px;margin-top:18px}.row{display:table;width:100%;padding:6px 0;border-bottom:1px solid #eee}.label,.value{display:table-cell}.label{width:35%;color:#667}.value{font-weight:bold}.items{width:100%;border-collapse:collapse;margin-top:15px}.items th{background:#155eef;color:#fff;padding:8px;text-align:left}.items td{padding:8px;border-bottom:1px solid #ddd}.sign{display:table;width:100%;margin-top:70px}.sign div{display:table-cell;width:33%;border-top:1px solid #999;padding-top:8px}</style></head><body><div class="head"><strong style="font-size:17px">{{ $receipt->company->legal_name }}</strong><br>{{ $receipt->company->address }}<br>TRN: {{ $receipt->company->trn }}</div><h1 class="title">RECEIPT VOUCHER</h1><div class="box"><div class="row"><span class="label">Receipt Number</span><span class="value">{{ $receipt->receipt_number }}</span></div><div class="row"><span class="label">Received From</span><span class="value">{{ $receipt->party->legal_name }}</span></div><div class="row"><span class="label">Date</span><span class="value">{{ $receipt->receipt_date->format('d M Y') }}</span></div><div class="row"><span class="label">Amount</span><span class="value">{{ $receipt->currency_code }} {{ number_format((float)$receipt->amount,2) }}</span></div><div class="row"><span class="label">Payment Method</span><span class="value">{{ ucwords(str_replace('_',' ',$receipt->payment_method)) }}</span></div><div class="row"><span class="label">Reference</span><span class="value">{{ $receipt->reference_number }}</span></div><div class="row"><span class="label">Description</span><span class="value">{{ $receipt->description }}</span></div></div>@if($receipt->allocations->isNotEmpty())<table class="items"><thead><tr><th>Invoice</th><th>Allocated Amount</th></tr></thead><tbody>@foreach($receipt->allocations as $a)<tr><td>{{ $a->invoice->invoice_number }}</td><td>{{ number_format((float)$a->amount,2) }}</td></tr>@endforeach</tbody></table>@endif<div class="sign"><div>Received By</div><div style="text-align:center">Checked By</div><div style="text-align:right">Company Stamp</div></div></body></html>
