{{-- Repeating page header — set via Mpdf::SetHTMLHeader() so EVERY page of the invoice carries the company identity, not just page 1. Fields come from the invoice payload (settings table — see PdfController::invoicePayload()). NOTE: mPDF applies the document's stylesheet to header/footer HTML too, so every cell must explicitly kill the body's global `td { border: 1px }` rule. --}} @php $logo = $settings['logo'] ?? null; $logoPath = $logo && file_exists(public_path($logo)) ? public_path($logo) : public_path('backend/template/images/logo/sm-header-logo.svg'); $contactBits = array_filter([ ($invoice['company_phone'] ?? '-') !== '-' ? 'Ph: ' . $invoice['company_phone'] : null, ($invoice['company_email'] ?? '-') !== '-' ? 'Email: ' . $invoice['company_email'] : null, ]); @endphp
{{ $invoice['company_name'] }} @if (($invoice['company_address'] ?? '-') !== '-')
{{ $invoice['company_address'] }} @endif @if (!empty($contactBits))
{{ implode(' | ', $contactBits) }} @endif