@include('templates.pdf_header', [ 'organisation' => $organisation, 'asOfDate' => $asOfDate, 'currency' => $currency, 'title' => 'BALANCE SHEET REPORT' ]) @php $current_profit_or_loss = $data['totals']['current_profit_or_loss'] ?? 0; @endphp @foreach($data['assets'] as $group) @foreach($group['subcategories'] as $sub) @foreach($sub['accounts'] as $acc) @endforeach @endforeach @endforeach
ASSETS Amount ({{ $currency }})
{{ $group['group_name'] ?? 'Other Assets' }} {{ number_format($group['group_total'] ?? 0, 2) }}
{{ $sub['subcategory_name'] }} {{ number_format($sub['subcategory_total'], 2) }}
TOTAL ASSETS {{ number_format($data['totals']['assets'], 2) }}
@foreach(array_merge($data['liabilities'] ?? [], $data['equity'] ?? []) as $group) @foreach($group['subcategories'] as $sub) @foreach($sub['accounts'] as $acc) @endforeach @endforeach @endforeach
LIABILITIES & EQUITY Amount ({{ $currency }})
{{ $group['group_name'] ?? 'Other' }} {{ number_format($group['group_total'] ?? 0, 2) }}
{{ $sub['subcategory_name'] }} {{ number_format($sub['subcategory_total'], 2) }}
Current Year Profit/Loss {{ number_format($current_profit_or_loss, 2) }}
TOTAL LIABILITIES & EQUITY {{ number_format(($data['totals']['liabilities_equity'] ?? 0) + $current_profit_or_loss, 2) }}