@php $settings = \App\Models\AppSetting::all()->pluck('value', 'key'); $job = $variant->job; $contact = $job?->contact; $items = $variant->items; $subtotal = $variant->totalRetail(); $gst = round($subtotal * 0.10, 2); $grandTotal = round($subtotal + $gst, 2); $acceptUrl = route('variation.payment', $variant->accept_token); $rejectUrl = route('variation.reject', $variant->reject_token); $invoiceNum = 'VAR-' . str_pad($variant->id, 4, '0', STR_PAD_LEFT); @endphp
{{-- Header: Logo + Title --}} {{-- Company info + Invoice details --}} {{-- Divider --}} {{-- Bill To --}} {{-- Items Table --}} {{-- Divider --}} {{-- Action message --}} {{-- Accept / Reject Buttons --}} {{-- Footer note --}}