<!doctype html><html><head><meta charset="utf-8"><title>{{ $expense->expense_number }}</title><style>body{font-family:DejaVu Sans,sans-serif;color:#172033;font-size:12px;margin:34px}h1{font-size:22px}.head{display:flex;justify-content:space-between;border-bottom:2px solid #172033;padding-bottom:16px}.box{border:1px solid #ddd;padding:14px;margin-top:16px}.row{display:flex;justify-content:space-between;padding:6px 0}.total{font-size:18px;font-weight:bold;border-top:2px solid #172033;margin-top:8px;padding-top:10px}.sign{display:flex;justify-content:space-between;margin-top:70px}.sign div{width:22%;border-top:1px solid #333;padding-top:7px;text-align:center}</style></head><body><div class="head"><div><h2>{{ $expense->company?->legal_name ?? auth()->user()->company?->legal_name }}</h2><div>TRN: {{ $expense->company?->trn ?? auth()->user()->company?->trn }}</div></div><div><h1>EXPENSE VOUCHER</h1><div>{{ $expense->expense_number }}</div></div></div><div class="box"><div class="row"><span>Date</span><strong>{{ $expense->expense_date->format('d M Y') }}</strong></div><div class="row"><span>Payee</span><strong>{{ $expense->party?->legal_name ?? 'Direct expense' }}</strong></div><div class="row"><span>Category</span><strong>{{ $expense->category }}</strong></div><div class="row"><span>Description</span><strong>{{ $expense->description }}</strong></div></div><div class="box"><div class="row"><span>Amount before VAT</span><span>AED {{ number_format((float)$expense->amount_before_vat,2) }}</span></div><div class="row"><span>Recoverable VAT</span><span>AED {{ number_format((float)$expense->recoverable_vat,2) }}</span></div><div class="row"><span>Non-recoverable VAT</span><span>AED {{ number_format((float)$expense->nonrecoverable_vat,2) }}</span></div><div class="row total"><span>Total</span><span>AED {{ number_format((float)$expense->total_amount,2) }}</span></div></div><div class="sign"><div>Prepared By</div><div>Checked By</div><div>Approved By</div><div>Received By</div></div></body></html>
