Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

default.blade.php 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. @php
  2. $data = $this->form->getState();
  3. $viewModel = new \App\View\Models\InvoiceViewModel($this->invoice, $data);
  4. $viewSpecial = $viewModel->buildViewData();
  5. extract($viewSpecial);
  6. @endphp
  7. <div class="print-template flex justify-center p-6">
  8. <div class="paper bg-white dark:bg-gray-900 p-8 rounded-lg shadow-[0_0_10px_rgba(0,0,0,0.1)] w-[612px] h-[791px]">
  9. <!-- Header: Logo on the left and Company details on the right -->
  10. <div class="flex mb-4">
  11. <div class="w-2/5">
  12. @if($document_logo)
  13. <div class="text-left">
  14. <img src="{{ \Illuminate\Support\Facades\URL::asset($document_logo) }}" alt="logo" style="width: 120px; height: auto">
  15. </div>
  16. @endif
  17. </div>
  18. <!-- Company Details -->
  19. <div class="w-3/5">
  20. <div class="text-xs text-gray-600 dark:text-gray-200 text-right space-y-1">
  21. <h2 class="text-xl font-bold text-gray-800 dark:text-white">{{ $company_name }}</h2>
  22. @if($company_address && $company_city && $company_state && $company_zip)
  23. <p>{{ $company_address }}</p>
  24. <p>{{ $company_city }}, {{ $company_state }} {{ $company_zip }}</p>
  25. @endif
  26. </div>
  27. </div>
  28. </div>
  29. <!-- Border Line -->
  30. <div class="border-b-2 my-4" style="border-color: {{ $accent_color }}"></div>
  31. <!-- Invoice Details -->
  32. <div class="flex mb-4">
  33. <div class="w-2/5">
  34. <div class="text-left">
  35. <h1 class="text-3xl font-semibold text-gray-800 dark:text-white">{{ $title }}</h1>
  36. @if ($subheading)
  37. <p class="text-sm text-gray-600 dark:text-gray-100">{{ $subheading }}</p>
  38. @endif
  39. </div>
  40. </div>
  41. <div class="w-3/5">
  42. <div class="text-right">
  43. <p>
  44. <span class="text-xs font-semibold text-gray-500 dark:text-gray-100">No: </span>
  45. <span class="text-xs text-gray-700 dark:text-white">{{ $invoice_number }}</span>
  46. </p>
  47. <p>
  48. <span class="text-xs font-semibold text-gray-500 dark:text-gray-100">Date: </span>
  49. <span class="text-xs text-gray-500 dark:text-white">{{ $invoice_date }}</span>
  50. </p>
  51. <p>
  52. <span class="text-xs font-semibold text-gray-500 dark:text-gray-100">Due Date: </span>
  53. <span class="text-xs text-gray-500 dark:text-white">{{ $invoice_due_date }}</span>
  54. </p>
  55. </div>
  56. </div>
  57. </div>
  58. <!-- Billing Details -->
  59. <div class="text-xs text-gray-600 dark:text-gray-200 mb-4">
  60. <h3 class="text-base font-semibold text-gray-600 dark:text-gray-200 mb-2">BILL TO</h3>
  61. <p class="text-sm text-gray-800 dark:text-white font-semibold">John Doe</p>
  62. <p>123 Main Street</p>
  63. <p>New York, NY 10001</p>
  64. </div>
  65. <!-- Line Items Table -->
  66. <div class="mb-4">
  67. <table class="w-full border-collapse text-sm">
  68. <thead>
  69. <tr style="color: {{ $accent_color }}">
  70. <th class="text-left p-2 w-1/2">{{ $item_column }}</th>
  71. <th class="text-center p-2 w-1/6">{{ $unit_column }}</th>
  72. <th class="text-center p-2 w-1/6">{{ $price_column }}</th>
  73. <th class="text-center p-2 w-1/6">{{ $amount_column }}</th>
  74. </tr>
  75. </thead>
  76. <tbody>
  77. <tr class="bg-gray-200/75 dark:bg-gray-800">
  78. <td class="p-2">Item 1</td>
  79. <td class="p-2 text-center">2</td>
  80. <td class="p-2 text-center">$150.00</td>
  81. <td class="p-2 text-center">$300.00</td>
  82. </tr>
  83. <tr>
  84. <td class="p-2">Item 2</td>
  85. <td class="p-2 text-center">3</td>
  86. <td class="p-2 text-center">$200.00</td>
  87. <td class="p-2 text-center">$600.00</td>
  88. </tr>
  89. <tr class="bg-gray-200/75 dark:bg-gray-800">
  90. <td class="p-2">Item 3</td>
  91. <td class="p-2 text-center">1</td>
  92. <td class="p-2 text-center">$200.00</td>
  93. <td class="p-2 text-center">$200.00</td>
  94. </tr>
  95. </tbody>
  96. </table>
  97. </div>
  98. <!-- Total Amount -->
  99. <div class="text-right mb-8">
  100. <p class="text-sm text-gray-600 dark:text-gray-200">Subtotal: $1100.00</p>
  101. <p class="text-sm text-gray-600 dark:text-gray-200">Tax: $110.00</p>
  102. <p class="text-lg font-semibold text-gray-800 dark:text-white">Total: $1210.00</p>
  103. </div>
  104. <!-- Footer Notes -->
  105. <div class="pt-6 text-gray-600 dark:text-gray-300 text-xs">
  106. <p>{{ $footer }}</p>
  107. <div class="mt-2 border-t-2 border-gray-300 py-2">
  108. <h4 class="font-semibold text-gray-700 dark:text-gray-100 mb-2">Terms & Conditions:</h4>
  109. <p>{{ $terms }}</p>
  110. </div>
  111. </div>
  112. </div>
  113. </div>