@forelse($accounts as $account)
{{-- Account Header --}}
@empty
{{ $account['account_code'] }} - {{ $account['account_name'] }}
{{-- Opening Balance --}}| # | Date | Reference | Description | Debit | Credit | Balance |
|---|---|---|---|---|---|---|
| Opening Balance | {{ number_format($account['opening_balance'], 2) }} | |||||
| {{ $i + 1 }} | {{ \Carbon\Carbon::parse($tran['date'])->format('Y-m-d') }} | {{ $tran['journal_no'] }} | {{ $tran['description'] }} | {{ number_format($tran['debit'] ?? 0, 2) }} | {{ number_format($tran['credit'] ?? 0, 2) }} | {{ number_format($runningBalance, 2) }} |
| Closing Balance | {{ number_format($account['closing_balance'], 2) }} | |||||
No transactions found for the selected criteria.
@endforelse
@include('partials.accounting.period-banner')
@forelse($accounts as $account)
@empty
>>>>>>> origin/main
{{ $account['account_code'] }} — {{ $account['account_name'] }}
Account ledger| # | Date | Reference | Description | Debit (−) | Credit (+) | Balance |
|---|---|---|---|---|---|---|
| Opening balance | {{ AccountingAmounts::formatSigned($account['opening_balance']) }} | |||||
| {{ $i + 1 }} | {{ $tran['date'] ? \Carbon\Carbon::parse($tran['date'])->format('Y-m-d') : '—' }} | {{ $tran['journal_no'] }} | {{ $tran['description'] ?: ($tran['memo'] ?? '') }} | {{ AccountingAmounts::formatDebit($tran['debit']) }} | {{ AccountingAmounts::formatCredit($tran['credit']) }} | {{ AccountingAmounts::formatSigned($tran['balance']) }} |
| Closing balance | {{ AccountingAmounts::formatSigned($account['closing_balance']) }} | |||||
No transactions found for the selected criteria.
@endforelse