@include('templates.pdf_header', [ 'organisation' => $organisation, 'asOfDate' => $date, 'title' => 'CHART OF ACCOUNTS' ])
@foreach($categories as $category) @if($category->account_sub_categories->flatMap->chart_of_accounts->isNotEmpty())
{{ $category->name }}
@foreach($category->account_sub_categories as $subcategory) @if($subcategory->chart_of_accounts->isNotEmpty())
{{ $subcategory->name }}
@foreach($subcategory->chart_of_accounts as $account) @endforeach
@endif @endforeach
@endif @endforeach