{{-- ---------------- ASSETS ---------------- --}}
@if(isset($report['assets']))
@foreach($report['assets']['items'] as $node)
@include('accounts.bs_row', ['node' => $node, 'level' => 1])
@endforeach
| Total Assets |
{{ number_format($report['assets']['current_total'], 2) }} |
@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
| Total Liabilities |
{{ number_format($report['liabilities']['current_total'], 2) }} |
@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 --}}
| Current Year Profit/Loss |
{{ number_format($current_profit_or_loss, 2) }} |
@php
$equityTotal = $report['equity']['current_total'] + $current_profit_or_loss;
$totalLiabilitiesAndEquity += $equityTotal;
@endphp
| Total Equity |
{{ number_format($equityTotal, 2) }} |
@endif
{{-- TOTAL LIABILITIES AND EQUITY --}}
| Total Liabilities and Equity |
{{ number_format($totalLiabilitiesAndEquity, 2) }} |