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.

detailed-report.blade.php 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <table class="w-full table-auto divide-y divide-gray-200 text-start 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. @foreach($report->getHeaders() as $index => $header)
  5. <th class="px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6 {{ $report->getAlignmentClass($index) }}">
  6. <span class="text-sm font-semibold text-gray-950 dark:text-white">
  7. {{ $header }}
  8. </span>
  9. </th>
  10. @endforeach
  11. </tr>
  12. </thead>
  13. @foreach($report->getCategories() as $category)
  14. <tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
  15. <tr class="bg-gray-50 dark:bg-white/5">
  16. @foreach($category->header as $index => $header)
  17. <x-filament-tables::cell class="{{ $report->getAlignmentClass($index) }}">
  18. <div class="px-3 py-2 text-sm font-semibold text-gray-950 dark:text-white">
  19. {{ $header }}
  20. </div>
  21. </x-filament-tables::cell>
  22. @endforeach
  23. </tr>
  24. @foreach($category->data as $account)
  25. <tr>
  26. @foreach($account as $index => $cell)
  27. <x-filament-tables::cell class="{{ $report->getAlignmentClass($index) }}">
  28. <div class="px-3 py-4 text-sm leading-6 text-gray-950 dark:text-white">
  29. {{ $cell }}
  30. </div>
  31. </x-filament-tables::cell>
  32. @endforeach
  33. </tr>
  34. @endforeach
  35. <tr>
  36. @foreach($category->summary as $index => $cell)
  37. <x-filament-tables::cell class="{{ $report->getAlignmentClass($index) }}">
  38. <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
  39. {{ $cell }}
  40. </div>
  41. </x-filament-tables::cell>
  42. @endforeach
  43. </tr>
  44. <tr>
  45. <x-filament-tables::cell colspan="{{ count($report->getHeaders()) }}">
  46. <div class="px-3 py-2 leading-6 invisible">Hidden Text</div>
  47. </x-filament-tables::cell>
  48. </tr>
  49. </tbody>
  50. @endforeach
  51. <tfoot>
  52. <tr class="bg-gray-50 dark:bg-white/5">
  53. @foreach($report->getOverallTotals() as $index => $total)
  54. <x-filament-tables::cell class="{{ $report->getAlignmentClass($index) }}">
  55. <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
  56. {{ $total }}
  57. </div>
  58. </x-filament-tables::cell>
  59. @endforeach
  60. </tr>
  61. </tfoot>
  62. </table>