Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

print-document.blade.php 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. <!-- Include Tailwind -->
  8. <script src="https://cdn.tailwindcss.com"></script>
  9. {!! $document->getFontHtml() !!}
  10. <style>
  11. body {
  12. background-color: white;
  13. color: black;
  14. }
  15. .doc-template-paper {
  16. font-family: '{{ $document->font->getLabel() }}', sans-serif;
  17. }
  18. @media print {
  19. body {
  20. print-color-adjust: exact !important;
  21. -webkit-print-color-adjust: exact !important;
  22. margin: 0;
  23. padding: 0;
  24. }
  25. @page {
  26. size: auto;
  27. margin: 7.5mm 0;
  28. }
  29. @page:first {
  30. margin-top: 0;
  31. }
  32. .doc-template-container {
  33. padding: 0 !important;
  34. margin: 0 !important;
  35. > div {
  36. overflow: hidden !important;
  37. max-height: none !important;
  38. max-width: none !important;
  39. box-shadow: none !important;
  40. border-radius: 0 !important;
  41. }
  42. }
  43. .doc-template-paper {
  44. overflow: hidden !important;
  45. max-height: none !important;
  46. max-width: none !important;
  47. height: auto !important;
  48. width: auto !important;
  49. }
  50. .doc-template-line-items .summary-section {
  51. display: table-row-group;
  52. page-break-inside: avoid;
  53. }
  54. .doc-template-line-items tr {
  55. page-break-inside: avoid;
  56. page-break-after: auto;
  57. }
  58. .doc-template-footer {
  59. page-break-inside: avoid;
  60. page-break-before: auto;
  61. }
  62. }
  63. </style>
  64. </head>
  65. <body>
  66. @include("filament.company.components.document-templates.{$template->value}", [
  67. 'document' => $document,
  68. 'preview' => false,
  69. ])
  70. </body>
  71. </html>