<!doctype html><html><head><meta charset="utf-8"><title>{{ $quotation->quotation_number }}</title><style>body{font-family:DejaVu Sans,sans-serif;color:#172033;font-size:11px;margin:32px}.head{display:flex;justify-content:space-between;border-bottom:2px solid #172033;padding-bottom:15px}.logo{max-height:60px;max-width:180px}table{width:100%;border-collapse:collapse;margin-top:22px}th,td{padding:8px;border-bottom:1px solid #ddd;text-align:left}.right{text-align:right}.totals{margin-left:auto;width:310px;margin-top:16px}.row{display:flex;justify-content:space-between;padding:5px}.grand{font-size:15px;font-weight:bold;border-top:2px solid #172033}.terms{margin-top:25px;white-space:pre-wrap}.sign{margin-top:70px;display:flex;justify-content:space-between}.sign div{width:30%;border-top:1px solid #333;text-align:center;padding-top:6px}</style></head><body><div class="head"><div>@if($quotation->company->logo_path)<img class="logo" src="{{ public_path('storage/'.$quotation->company->logo_path) }}"><br>@endif<strong style="font-size:16px">{{ $quotation->company->legal_name }}</strong><br>{{ $quotation->company->address }}<br>TRN: {{ $quotation->company->trn }}<br>{{ $quotation->company->phone }} · {{ $quotation->company->email }}</div><div class="right"><h1>QUOTATION</h1><strong>{{ $quotation->quotation_number }}</strong><br>Date: {{ $quotation->quotation_date->format('d M Y') }}<br>Valid Until: {{ $quotation->expiry_date?->format('d M Y')??'—' }}</div></div><p><strong>To:</strong> {{ $quotation->party->legal_name }}<br>{{ $quotation->party->billing_address }}<br>TRN: {{ $quotation->party->trn }}</p><table><thead><tr><th>#</th><th>Service</th><th>Route</th><th>Vehicle</th><th class="right">Qty</th><th class="right">Rate</th><th class="right">VAT</th><th class="right">Total</th></tr></thead><tbody>@foreach($quotation->items as $i)<tr><td>{{ $i->line_number }}</td><td>{{ $i->description }}</td><td>{{ $i->route?->name }}</td><td>{{ $i->vehicle_type }}</td><td class="right">{{ $i->quantity }}</td><td class="right">{{ number_format((float)$i->unit_rate,2) }}</td><td class="right">{{ number_format((float)$i->vat_amount,2) }}</td><td class="right">{{ number_format((float)$i->line_total,2) }}</td></tr>@endforeach</tbody></table><div class="totals"><div class="row"><span>Subtotal</span><span>{{ number_format((float)$quotation->subtotal,2) }}</span></div><div class="row"><span>Discount</span><span>{{ number_format((float)$quotation->discount_total,2) }}</span></div><div class="row"><span>VAT</span><span>{{ number_format((float)$quotation->vat_total,2) }}</span></div><div class="row grand"><span>Total</span><span>{{ $quotation->currency_code }} {{ number_format((float)$quotation->grand_total,2) }}</span></div></div><div class="terms"><strong>Payment Terms:</strong> {{ $quotation->payment_terms }}<br><br><strong>Terms & Conditions</strong><br>{{ $quotation->terms }}</div><div class="sign"><div>Prepared By</div><div>Authorised Signature</div><div>Company Stamp</div></div></body></html>
