123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <table class="w-full table-auto divide-y divide-gray-200 dark:divide-white/5">
- <thead class="divide-y divide-gray-200 dark:divide-white/5">
- <tr class="bg-gray-50 dark:bg-white/5">
- <th class="px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6 text-left">
- <span class="text-sm font-semibold text-gray-950 dark:text-white">
- Accounts
- </span>
- </th>
- <th class="px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6 text-right">
- <span class="text-sm font-semibold text-gray-950 dark:text-white">
- Amount
- </span>
- </th>
- </tr>
- </thead>
- @foreach($report->getSummaryCategories() as $accountCategory)
- <tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
- <tr>
- @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
- <x-filament-tables::cell class="{{ $accountCategorySummaryIndex === 0 ? 'text-left' : 'text-right' }}">
- <div class="px-3 py-2 text-sm leading-6 font-normal text-gray-950 dark:text-white">
- {{ $accountCategorySummaryCell }}
- </div>
- </x-filament-tables::cell>
- @endforeach
- </tr>
-
- @if($accountCategory->header[0] === 'Cost of Goods Sold')
- <tr class="bg-gray-50 dark:bg-white/5">
- @foreach($report->getGrossProfit() as $grossProfitIndex => $grossProfitCell)
- <x-filament-tables::cell class="{{ $grossProfitIndex === 0 ? 'text-left' : 'text-right' }}">
- <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
- {{ $grossProfitCell }}
- </div>
- </x-filament-tables::cell>
- @endforeach
- </tr>
- @endif
- </tbody>
- @endforeach
- @if(! empty($report->getOverallTotals()))
- <tfoot>
- <tr class="bg-gray-50 dark:bg-white/5">
- @foreach($report->getSummaryTotals() as $index => $total)
- <x-filament-tables::cell class="{{ $index === 0 ? 'text-left' : 'text-right' }}">
- <div class="px-3 py-2 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
- {{ $total }}
- </div>
- </x-filament-tables::cell>
- @endforeach
- </tr>
- </tfoot>
- @endif
- </table>
|