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

account-transactions.blade.php 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. @foreach($report->getHeaders() as $index => $header)
  5. <th wire:key="header-{{ $index }}" 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 $categoryIndex => $category)
  14. <tbody wire:key="category-{{ $categoryIndex }}" class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
  15. <!-- Category Header -->
  16. <tr class="bg-gray-50 dark:bg-white/5">
  17. <x-filament-tables::cell colspan="{{ count($report->getHeaders()) }}" class="text-left">
  18. <div class="px-3 py-2">
  19. @foreach ($category->header as $headerRow)
  20. <div class="text-sm {{ $loop->first ? 'font-semibold text-gray-950 dark:text-white' : 'text-gray-500 dark:text-white/50' }}">
  21. @foreach ($headerRow as $headerValue)
  22. @if (!empty($headerValue))
  23. {{ $headerValue }}
  24. @endif
  25. @endforeach
  26. </div>
  27. @endforeach
  28. </div>
  29. </x-filament-tables::cell>
  30. </tr>
  31. <!-- Transactions Data -->
  32. @foreach($category->data as $dataIndex => $transaction)
  33. <tr wire:key="category-{{ $categoryIndex }}-data-{{ $dataIndex }}"
  34. @class([
  35. 'bg-gray-50 dark:bg-white/5' => $loop->first || $loop->last || $loop->remaining === 1,
  36. ])
  37. >
  38. @foreach($transaction as $cellIndex => $cell)
  39. <x-filament-tables::cell
  40. wire:key="category-{{ $categoryIndex }}-data-{{ $dataIndex }}-cell-{{ $cellIndex }}"
  41. @class([
  42. $report->getAlignmentClass($cellIndex),
  43. 'whitespace-normal' => $cellIndex === 1,
  44. ])
  45. >
  46. <div
  47. @class([
  48. 'px-3 py-4 text-sm leading-6 text-gray-950 dark:text-white',
  49. 'font-semibold' => $loop->parent->first || $loop->parent->last || $loop->parent->remaining === 1,
  50. ])
  51. >
  52. {{ $cell }}
  53. </div>
  54. </x-filament-tables::cell>
  55. @endforeach
  56. </tr>
  57. @endforeach
  58. <!-- Spacer Row -->
  59. @unless($loop->last)
  60. <tr wire:key="category-{{ $categoryIndex }}-spacer">
  61. <x-filament-tables::cell colspan="{{ count($report->getHeaders()) }}">
  62. <div class="px-3 py-2 leading-6 invisible">Hidden Text</div>
  63. </x-filament-tables::cell>
  64. </tr>
  65. @endunless
  66. </tbody>
  67. @endforeach
  68. </table>