You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

print-document.blade.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Invoice #{{ $document->number }}</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="color-scheme" content="light">
  8. <!-- Include Tailwind -->
  9. <script src="https://cdn.tailwindcss.com?plugins=typography"></script>
  10. <script>
  11. tailwind.config = {
  12. darkMode: 'class'
  13. }
  14. </script>
  15. {!! $document->getFontHtml() !!}
  16. <style>
  17. :root {
  18. color-scheme: light;
  19. }
  20. body {
  21. background-color: white;
  22. color: black;
  23. }
  24. .inv-paper {
  25. font-family: '{{ $document->font->getLabel() }}', sans-serif;
  26. }
  27. @media print {
  28. body {
  29. print-color-adjust: exact !important;
  30. -webkit-print-color-adjust: exact !important;
  31. margin: 0;
  32. padding: 0;
  33. }
  34. @page {
  35. size: auto;
  36. margin: 0;
  37. }
  38. .inv-container {
  39. padding: 0 !important;
  40. margin: 0 !important;
  41. }
  42. .inv-paper {
  43. box-shadow: none !important;
  44. border-radius: 0 !important;
  45. overflow: hidden !important;
  46. max-height: none !important;
  47. }
  48. .modern-template-line-items .summary-section {
  49. display: table-row-group;
  50. page-break-inside: avoid;
  51. }
  52. .modern-template-line-items tr {
  53. page-break-inside: avoid;
  54. page-break-after: auto;
  55. }
  56. .modern-template-footer {
  57. page-break-inside: avoid;
  58. page-break-before: auto;
  59. }
  60. }
  61. </style>
  62. </head>
  63. <body class="bg-white">
  64. @include("filament.infolists.components.document-templates.{$template->value}", [
  65. 'document' => $document,
  66. 'preview' => false,
  67. ])
  68. </body>
  69. </html>