Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

default.blade.php 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. @php
  2. $data = $this->form->getRawState();
  3. $viewModel = new \App\View\Models\InvoiceViewModel($this->record, $data);
  4. $viewSpecial = $viewModel->buildViewData();
  5. extract($viewSpecial,\EXTR_SKIP);
  6. @endphp
  7. {!! $font_html !!}
  8. <style>
  9. .inv-paper {
  10. font-family: '{{ $font_family }}', sans-serif;
  11. }
  12. </style>
  13. <x-company.invoice.container class="default-template-container" preview>
  14. <x-company.invoice.header class="default-template-header border-b-2 p-6 pb-4">
  15. <div class="w-2/3">
  16. @if($logo && $show_logo)
  17. <x-company.invoice.logo :src="$logo"/>
  18. @endif
  19. </div>
  20. <div class="w-1/3 text-right">
  21. <div class="text-xs">
  22. <h2 class="font-semibold">{{ $company_name }}</h2>
  23. @if($company_address && $company_city && $company_state && $company_zip)
  24. <p>{{ $company_address }}</p>
  25. <p>{{ $company_city }}, {{ $company_state }} {{ $company_zip }}</p>
  26. <p>{{ $company_country }}</p>
  27. @endif
  28. </div>
  29. </div>
  30. </x-company.invoice.header>
  31. <x-company.invoice.metadata class="default-template-metadata space-y-6">
  32. <div>
  33. <h1 class="text-3xl font-light uppercase">{{ $header }}</h1>
  34. @if ($subheader)
  35. <h2 class="text-sm text-gray-600 dark:text-gray-400">{{ $subheader }}</h2>
  36. @endif
  37. </div>
  38. <div class="flex justify-between items-end">
  39. <!-- Billing Details -->
  40. <div class="text-xs">
  41. <h3 class="text-gray-600 dark:text-gray-400 font-medium tracking-tight mb-1">BILL TO</h3>
  42. <p class="text-base font-bold">John Doe</p>
  43. <p>123 Main Street</p>
  44. <p>New York, New York 10001</p>
  45. <p>United States</p>
  46. </div>
  47. <div class="text-xs">
  48. <table class="min-w-full">
  49. <tbody>
  50. <tr>
  51. <td class="font-semibold text-right pr-2">Invoice Number:</td>
  52. <td class="text-left pl-2">{{ $invoice_number }}</td>
  53. </tr>
  54. <tr>
  55. <td class="font-semibold text-right pr-2">Invoice Date:</td>
  56. <td class="text-left pl-2">{{ $invoice_date }}</td>
  57. </tr>
  58. <tr>
  59. <td class="font-semibold text-right pr-2">Payment Due:</td>
  60. <td class="text-left pl-2">{{ $invoice_due_date }}</td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. </div>
  65. </div>
  66. </x-company.invoice.metadata>
  67. <!-- Line Items Table -->
  68. <x-company.invoice.line-items class="default-template-line-items">
  69. <table class="w-full text-left table-fixed">
  70. <thead class="text-sm leading-8" style="background: {{ $accent_color }}">
  71. <tr class="text-white">
  72. <th class="text-left pl-6">{{ $item_name }}</th>
  73. <th class="text-center">{{ $unit_name }}</th>
  74. <th class="text-right">{{ $price_name }}</th>
  75. <th class="text-right pr-6">{{ $amount_name }}</th>
  76. </tr>
  77. </thead>
  78. <tbody class="text-xs border-b-2 border-gray-300 leading-8">
  79. <tr>
  80. <td class="text-left pl-6 font-semibold">Item 1</td>
  81. <td class="text-center">2</td>
  82. <td class="text-right">$150.00</td>
  83. <td class="text-right pr-6">$300.00</td>
  84. </tr>
  85. <tr>
  86. <td class="text-left pl-6 font-semibold">Item 2</td>
  87. <td class="text-center">3</td>
  88. <td class="text-right">$200.00</td>
  89. <td class="text-right pr-6">$600.00</td>
  90. </tr>
  91. <tr>
  92. <td class="text-left pl-6 font-semibold">Item 3</td>
  93. <td class="text-center">1</td>
  94. <td class="text-right">$180.00</td>
  95. <td class="text-right pr-6">$180.00</td>
  96. </tr>
  97. </tbody>
  98. <tfoot class="text-xs leading-loose">
  99. <tr>
  100. <td class="pl-6" colspan="2"></td>
  101. <td class="text-right font-semibold">Subtotal:</td>
  102. <td class="text-right pr-6">$1080.00</td>
  103. </tr>
  104. <tr class="text-success-800 dark:text-success-600">
  105. <td class="pl-6" colspan="2"></td>
  106. <td class="text-right">Discount (5%):</td>
  107. <td class="text-right pr-6">($54.00)</td>
  108. </tr>
  109. <tr>
  110. <td class="pl-6" colspan="2"></td>
  111. <td class="text-right">Sales Tax (10%):</td>
  112. <td class="text-right pr-6">$102.60</td>
  113. </tr>
  114. <tr>
  115. <td class="pl-6" colspan="2"></td>
  116. <td class="text-right font-semibold border-t">Total:</td>
  117. <td class="text-right border-t pr-6">$1128.60</td>
  118. </tr>
  119. <tr>
  120. <td class="pl-6" colspan="2"></td>
  121. <td class="text-right font-semibold border-t-4 border-double">Amount Due (USD):</td>
  122. <td class="text-right border-t-4 border-double pr-6">$1128.60</td>
  123. </tr>
  124. </tfoot>
  125. </table>
  126. </x-company.invoice.line-items>
  127. <!-- Footer Notes -->
  128. <x-company.invoice.footer class="default-template-footer">
  129. <p class="px-6">{{ $footer }}</p>
  130. <span class="border-t-2 my-2 border-gray-300 block w-full"></span>
  131. <h4 class="font-semibold px-6 mb-2">Terms & Conditions</h4>
  132. <p class="px-6 break-words line-clamp-4">{{ $terms }}</p>
  133. </x-company.invoice.footer>
  134. </x-company.invoice.container>