{{-- PDF Header --}} @include('templates.pdf_header', [ 'organisation' => $organisation, 'asOfDate' => $asOfDate, 'currency' => $currency, 'currency_code' => $currency, 'title' => 'BALANCE SHEET REPORT' ]) {{-- ---------------- ASSETS ---------------- --}} @if(isset($report['assets'])) @foreach($report['assets']['items'] as $node) @include('accounts.bs_row', ['node' => $node, 'level' => 1]) @endforeach @endif {{-- ---------------- LIABILITIES AND EQUITY ---------------- --}} @php $totalLiabilitiesAndEquity = 0; @endphp {{-- LIABILITIES --}} @if(isset($report['liabilities'])) @foreach($report['liabilities']['items'] as $node) @include('accounts.bs_row', ['node' => $node, 'level' => 1]) @endforeach @php $totalLiabilitiesAndEquity += $report['liabilities']['current_total']; @endphp @endif {{-- EQUITY --}} @if(isset($report['equity'])) @foreach($report['equity']['items'] as $node) @include('accounts.bs_row', ['node' => $node, 'level' => 1]) @endforeach {{-- Current Year Profit/Loss --}} @php $equityTotal = $report['equity']['current_total'] + $current_profit_or_loss; $totalLiabilitiesAndEquity += $equityTotal; @endphp @endif {{-- TOTAL LIABILITIES AND EQUITY --}}
ASSETS Amount
Total Assets {{ number_format($report['assets']['current_total'], 2) }}
LIABILITIES AND EQUITY Amount
LIABILITIES
Total Liabilities {{ number_format($report['liabilities']['current_total'], 2) }}
EQUITY
Current Year Profit/Loss {{ number_format($current_profit_or_loss, 2) }}
Total Equity {{ number_format($equityTotal, 2) }}
Total Liabilities and Equity {{ number_format($totalLiabilitiesAndEquity, 2) }}
{{-- Footer --}}