@php
$groupAccount = $group['account'];
$groupEntries = $group['entries'] ?? collect();
$groupTotals = $group['totals'] ?? [];
$accountTitle = $groupAccount->code ? '[' . $groupAccount->code . '] ' . $groupAccount->name : $groupAccount->name;
@endphp
| {{ \Carbon\Carbon::parse($dateFrom)->subDay()->format('d M Y') }} |
|
Opening Balance |
|
|
|
{{ $fmt($groupTotals['opening_debit'] ?? 0) }} |
{{ $fmt($groupTotals['opening_credit'] ?? 0) }} |
{{ ($groupTotals['opening_debit'] ?? 0) > 0 ? $fmt($groupTotals['opening_debit']) . ' Dr' : (($groupTotals['opening_credit'] ?? 0) > 0 ? $fmt($groupTotals['opening_credit']) . ' Cr' : '—') }}
|
@foreach($groupEntries as $entry)
@include('reports.general-ledger._entry-row', ['entry' => $entry, 'fmt' => $fmt])
@endforeach
| Total {{ $groupAccount->name }} |
{{ $fmt($groupTotals['period_debit'] ?? 0) }} |
{{ $fmt($groupTotals['period_credit'] ?? 0) }} |
{{ ($groupTotals['closing_debit'] ?? 0) > 0 ? $fmt($groupTotals['closing_debit']) . ' Dr' : (($groupTotals['closing_credit'] ?? 0) > 0 ? $fmt($groupTotals['closing_credit']) . ' Cr' : '—') }}
|
|