@php /* * PAGE SIZING * --------------------------------------------------------------- * @page margin is 0 on all four sides. All visual breathing room * comes from each component's own padding (topband, party-card, * items-table cells, etc.), same as the preview. * * Keep the CSS page size aligned with the controller's * setPaper([0, 0, 1000, 842]) call so Dompdf has one consistent * page geometry. The footer/page counter is added by the controller. * * The footer uses `position: fixed; bottom: 0` so it repeats on * every page and the "Page X of Y" counters resolve — dompdf * anchors that to the bottom of the content box, so a non-zero * margin-bottom was leaving a gap between the footer and the * true page edge instead of reserving room above it as intended. * With margin at 0 the footer now sits flush at the true bottom; * the equivalent reserved space (so the last section doesn't * render underneath it) now lives as padding-bottom on that * section's own wrapper div instead — see BANK DETAILS + NOTES * below. * * Height stays content-based so short invoices don't carry a * full-page's worth of blank space before the footer; see the * note at the bottom of this file if a real invoice overflows. */ // Must match Pdf::setPaper([0, 0, 1000, 842]) in the download controller. $pageWidth = 1000; $pageHeight = 842; @endphp {{-- The external stylesheet link has been removed on purpose. Given the original template's utility-class names (px-14, text-slate-400, etc.) that file is almost certainly a Tailwind build, and Tailwind's base reset strips default