@include('accounting::admin.accounting._styles')

Balance Sheet

As of {{ \Carbon\Carbon::parse($asOf)->format('d M Y') }}
@php $totalSources = $equity['total'] + $liabs['total']; @endphp
{{-- Assets --}}

Assets

₹ {{ number_format($assets['total'],2) }}
@foreach($assets['rows'] as $row) @endforeach
AccountGroupAmount (₹)
{{ $row['account'] }} {{ $row['group'] }} ₹ {{ number_format($row['value'],2) }}
Total Assets₹ {{ number_format($assets['total'],2) }}
{{-- Liabilities + Equity --}}

Equity / Capital

₹ {{ number_format($equity['total'],2) }}
@foreach($equity['rows'] as $row) @endforeach
{{ $row['account'] }} ₹ {{ number_format($row['value'],2) }}

Liabilities

₹ {{ number_format($liabs['total'],2) }}
@foreach($liabs['rows'] as $row) @endforeach
{{ $row['account'] }}
{{ $row['group'] }}
₹ {{ number_format($row['value'],2) }}
Total Equity + Liabilities₹ {{ number_format($totalSources,2) }}
{{-- Balance check --}}
{{ abs($assets['total'] - $totalSources) < 1 ? '✓ Balance Sheet is balanced.' : '⚠ Balance Sheet is NOT balanced. Difference: ₹'.number_format(abs($assets['total'] - $totalSources),2) }}