@php use App\Models\Accounting\Bill; use App\Filament\Company\Resources\Accounting\TransactionResource; use App\Filament\Company\Resources\Purchases\BillResource\Pages\ViewBill; use App\Filament\Company\Resources\Sales\InvoiceResource\Pages\ViewInvoice; $iconPosition = \Filament\Support\Enums\IconPosition::After; @endphp @foreach($report->getCategories() as $categoryIndex => $category)
@foreach ($category->header as $headerRow)
@foreach ($headerRow as $headerValue) @if (!empty($headerValue)) {{ $headerValue }} @endif @endforeach
@endforeach
@foreach($category->data as $dataIndex => $transaction) $loop->first || $loop->last || $loop->remaining === 1, ]) > @foreach($transaction as $cellIndex => $cell) getAlignmentClass($cellIndex), 'whitespace-normal' => $cellIndex === 1, ]) >
$loop->parent->first || $loop->parent->last || $loop->parent->remaining === 1, ]) > @if(is_array($cell) && isset($cell['description'])) @if(isset($cell['id']) && isset($cell['url'])) {{ $cell['description'] }} @else {{ $cell['description'] }} @endif @else {{ $cell }} @endif
@endforeach @endforeach @unless($loop->last) @endunless @endforeach