{{-- Standalone print document. Wraps whichever paper layout was asked for in a bare HTML page with the right @page size, then triggers the browser print dialog. The layouts themselves are shared with the Master Control live preview, so what a landlord approves is what comes out of the printer. --}} @php $isThermal = $paper === 'thermal80'; $layout = $isThermal ? 'invoices.print.thermal80' : 'invoices.print.a4'; @endphp {{ $doc->number }}
{{ $isThermal ? '80mm receipt' : 'A4 invoice' }} — {{ $doc->number }} Switch to {{ $isThermal ? 'A4' : '80mm' }}
{{-- Real print: `preview` (the letterhead placeholder flag) is deliberately left unset here, distinct from `$embed` above. --}} @include($layout, ['doc' => $doc])
@unless(($embed ?? false)) @endunless