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.

classic.blade.php 6.8KB

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