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.

balance-sheet-summary.blade.php 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 class="bg-gray-50 dark:bg-white/5">
  19. @foreach($accountCategory->header as $accountCategoryHeaderIndex => $accountCategoryHeaderCell)
  20. <x-filament-tables::cell class="{{ $accountCategoryHeaderIndex === 0 ? 'text-left' : 'text-right' }}">
  21. <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
  22. {{ $accountCategoryHeaderCell }}
  23. </div>
  24. </x-filament-tables::cell>
  25. @endforeach
  26. </tr>
  27. @foreach($accountCategory->types as $accountType)
  28. <tr>
  29. @foreach($accountType->summary as $accountTypeSummaryIndex => $accountTypeSummaryCell)
  30. <x-filament-tables::cell
  31. class="{{ $accountTypeSummaryIndex === 0 ? 'text-left' : 'text-right' }} ps-8">
  32. <div class="px-3 py-2 text-sm leading-6 font-normal text-gray-950 dark:text-white">
  33. {{ $accountTypeSummaryCell }}
  34. </div>
  35. </x-filament-tables::cell>
  36. @endforeach
  37. </tr>
  38. @endforeach
  39. <tr>
  40. @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
  41. <x-filament-tables::cell class="{{ $accountCategorySummaryIndex === 0 ? 'text-left' : 'text-right' }}">
  42. <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
  43. {{ $accountCategorySummaryCell }}
  44. </div>
  45. </x-filament-tables::cell>
  46. @endforeach
  47. </tr>
  48. <tr>
  49. <x-filament-tables::cell colspan="2">
  50. <div class="px-3 py-2 leading-6 invisible">Hidden Text</div>
  51. </x-filament-tables::cell>
  52. </tr>
  53. </tbody>
  54. @endforeach
  55. </table>