| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 | <!DOCTYPE html>
<html>
<head>
    <title>Invoice #{{ $document->number }}</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Include Tailwind -->
    <script src="https://cdn.tailwindcss.com"></script>
    {!! $document->getFontHtml() !!}
    <style>
        body {
            background-color: white;
            color: black;
        }
        .doc-template-paper {
            font-family: '{{ $document->font->getLabel() }}', sans-serif;
        }
        @media print {
            body {
                print-color-adjust: exact !important;
                -webkit-print-color-adjust: exact !important;
                margin: 0;
                padding: 0;
            }
            @page {
                size: auto;
                margin: 7.5mm 0;
            }
            @page:first {
                margin-top: 0;
            }
            .doc-template-container {
                padding: 0 !important;
                margin: 0 !important;
            }
            .doc-template-paper {
                box-shadow: none !important;
                border-radius: 0 !important;
                overflow: hidden !important;
                max-height: none !important;
            }
            .doc-template-line-items .summary-section {
                display: table-row-group;
                page-break-inside: avoid;
            }
            .doc-template-line-items tr {
                page-break-inside: avoid;
                page-break-after: auto;
            }
            .doc-template-footer {
                page-break-inside: avoid;
                page-break-before: auto;
            }
        }
    </style>
</head>
<body>
    @include("filament.infolists.components.document-templates.{$template->value}", [
        'document' => $document,
        'preview' => false,
    ])
</body>
</html>
 |