You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

income-statement-summary.blade.php 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <table class="w-full table-auto divide-y divide-gray-200 dark:divide-white/5">
  2. <thead class="divide-y divide-gray-200 dark:divide-white/5">
  3. <tr class="bg-gray-50 dark:bg-white/5">
  4. <th class="px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6 text-left">
  5. <span class="text-sm font-semibold text-gray-950 dark:text-white">
  6. Accounts
  7. </span>
  8. </th>
  9. <th class="px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6 text-right">
  10. <span class="text-sm font-semibold text-gray-950 dark:text-white">
  11. Amount
  12. </span>
  13. </th>
  14. </tr>
  15. </thead>
  16. @foreach($report->getSummaryCategories() as $accountCategory)
  17. <tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
  18. <tr>
  19. @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
  20. <x-filament-tables::cell class="{{ $accountCategorySummaryIndex === 0 ? 'text-left' : 'text-right' }}">
  21. <div class="px-3 py-2 text-sm leading-6 font-normal text-gray-950 dark:text-white">
  22. {{ $accountCategorySummaryCell }}
  23. </div>
  24. </x-filament-tables::cell>
  25. @endforeach
  26. </tr>
  27. @if($accountCategory->header[0] === 'Cost of Goods Sold')
  28. <tr class="bg-gray-50 dark:bg-white/5">
  29. @foreach($report->getGrossProfit() as $grossProfitIndex => $grossProfitCell)
  30. <x-filament-tables::cell class="{{ $grossProfitIndex === 0 ? 'text-left' : 'text-right' }}">
  31. <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
  32. {{ $grossProfitCell }}
  33. </div>
  34. </x-filament-tables::cell>
  35. @endforeach
  36. </tr>
  37. @endif
  38. </tbody>
  39. @endforeach
  40. @if(! empty($report->getOverallTotals()))
  41. <tfoot>
  42. <tr class="bg-gray-50 dark:bg-white/5">
  43. @foreach($report->getSummaryTotals() as $index => $total)
  44. <x-filament-tables::cell class="{{ $index === 0 ? 'text-left' : 'text-right' }}">
  45. <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
  46. {{ $total }}
  47. </div>
  48. </x-filament-tables::cell>
  49. @endforeach
  50. </tr>
  51. </tfoot>
  52. @endif
  53. </table>