@extends('layouts.app') @section('content')

Balance Sheet

Reset

TRUSTWAY LANKA (Pvt) Ltd

Balance Sheet

Branch: {{ $branchName }} | As at {{ \Carbon\Carbon::parse($dateTo)->format('d/m/Y') }}

Note: Assets show debit balances, Liability & Equity show credit balances as positive amounts
@if(count($groupedData) > 0)
@foreach($groupedData as $type => $accounts) @foreach($accounts as $mainAccountName => $data) @foreach($data['sub_accounts'] as $sub) @endforeach @endforeach @endforeach
A/C Code Account Description Amount Total
{{ $type }}
Category Totals
Total Assets

Rs {{ number_format($categoryTotals['Assets'], 2) }}

Total Liability

Rs {{ number_format($categoryTotals['Liability'], 2) }}

Total Equity

Rs {{ number_format($categoryTotals['Equity'], 2) }}

Net Profit/(Loss)

Rs {{ number_format($netProfit, 2) }}

Balance Sheet Equation
Assets = Liability + Equity
Rs {{ number_format($categoryTotals['Assets'], 2) }} = Rs {{ number_format($categoryTotals['Liability'], 2) }} + Rs {{ number_format($categoryTotals['Equity'], 2) }}
@if(abs($balanceSheetEquation) < 0.01)
Balance Sheet is Balanced ✓
@else
Balance Sheet Difference: Rs {{ number_format($balanceSheetEquation, 2) }}
@endif
Profit & Loss Summary
Total Income

Rs {{ number_format($totalIncome, 2) }}

Total Expenses

Rs {{ number_format($totalExpenses, 2) }}

Net Profit/(Loss)

Rs {{ number_format($netProfit, 2) }}

@else
No balance sheet data found for the selected criteria

Try adjusting your filters or check if there are any transactions in the selected period.

@endif
@endsection @push('scripts') @endpush