| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 | <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 leading-6 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 leading-6 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 class="bg-gray-50 dark:bg-white/5">
            @foreach($accountCategory->header as $accountCategoryHeaderIndex => $accountCategoryHeaderCell)
                <th class="px-3 py-3.5 sm:first-of-type:ps-6 sm:last-of-type:pe-6 {{ $accountCategoryHeaderIndex === 0 ? 'text-left' : 'text-right' }}">
                    <span class="text-sm font-semibold leading-6 text-gray-950 dark:text-white">
                        {{ $accountCategoryHeaderCell }}
                    </span>
                </th>
            @endforeach
        </tr>
        @foreach($accountCategory->types as $accountType)
            <tr>
                @foreach($accountType->summary as $accountTypeSummaryIndex => $accountTypeSummaryCell)
                    <x-filament-tables::cell
                        class="{{ $accountTypeSummaryIndex === 0 ? 'text-left' : 'text-right' }} ps-8">
                        <div class="px-3 py-4 text-sm leading-6 text-gray-950 dark:text-white">
                            {{ $accountTypeSummaryCell }}
                        </div>
                    </x-filament-tables::cell>
                @endforeach
            </tr>
        @endforeach
        <tr>
            @foreach($accountCategory->summary as $accountCategorySummaryIndex => $accountCategorySummaryCell)
                <x-filament-tables::cell class="{{ $accountCategorySummaryIndex === 0 ? 'text-left' : 'text-right' }}">
                    <div class="px-3 py-4 text-sm leading-6 font-semibold text-gray-950 dark:text-white">
                        {{ $accountCategorySummaryCell }}
                    </div>
                </x-filament-tables::cell>
            @endforeach
        </tr>
        <tr>
            <td colspan="2">
                <div class="min-h-12"></div>
            </td>
        </tr>
        </tbody>
    @endforeach
</table>
 |