Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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