@php use App\Support\DocumentBrand; /** @var \App\Support\InvoiceDocument $invoice */ $settings = $businessSettings ?? \App\Models\Setting::businessSettings(); ['brand' => $brand, 'brandDark' => $brandDark] = DocumentBrand::colors($settings); $cancelled = $invoice->state === 'cancelled'; $settled = !$cancelled && $invoice->due <= 0.01; @endphp {{-- Email HTML, not web HTML: tables for layout and styles inlined on each element, because Outlook and Gmail strip