@foreach($report->getHeaders() as $index => $header) @endforeach @foreach($report->getCategories() as $categoryIndex => $category) @foreach($category->header as $headerIndex => $header)
{{ $header }}
@endforeach @foreach($category->data as $dataIndex => $account) @foreach($account as $cellIndex => $cell)
@if(is_array($cell) && isset($cell['name'])) @if(isset($cell['id'])) {{ $cell['name'] }} @else {{ $cell['name'] }} @endif @else {{ $cell }} @endif
@endforeach @endforeach @foreach($category->summary as $summaryIndex => $cell)
{{ $cell }}
@endforeach @endforeach @foreach($report->getOverallTotals() as $index => $total)
{{ $total }}
@endforeach
{{ $header }}