Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

print-document.blade.php 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. }
  36. .doc-template-paper {
  37. box-shadow: none !important;
  38. border-radius: 0 !important;
  39. overflow: hidden !important;
  40. max-height: none !important;
  41. }
  42. .doc-template-line-items .summary-section {
  43. display: table-row-group;
  44. page-break-inside: avoid;
  45. }
  46. .doc-template-line-items tr {
  47. page-break-inside: avoid;
  48. page-break-after: auto;
  49. }
  50. .doc-template-footer {
  51. page-break-inside: avoid;
  52. page-break-before: auto;
  53. }
  54. }
  55. </style>
  56. </head>
  57. <body>
  58. @include("filament.infolists.components.document-templates.{$template->value}", [
  59. 'document' => $document,
  60. 'preview' => false,
  61. ])
  62. </body>
  63. </html>