@foreach($years as $y)
@foreach($y->months as $m)
@php $row = $m->ledger[$cur] ?? null; @endphp
@if($row)
| {{ $y->year }} |
{{ $getThis->global()->monthName($m->month) }} |
@foreach($cols as $key => $label)
{{ number_format($row[$key], 2, '.', ',') }} |
@endforeach
{{ number_format($row['total'], 2, '.', ',') }} |
@endif
@endforeach
@php $yt = $y->totals[$cur]; @endphp
| {{ $y->year }} |
Year total |
@foreach($cols as $key => $label)
{{ number_format($yt[$key], 2, '.', ',') }} |
@endforeach
{{ number_format($yt['total'], 2, '.', ',') }} |
@endforeach
@php $g = $grandTotals[$cur]; @endphp
| Grand |
Total |
@foreach($cols as $key => $label)
{{ number_format($g[$key], 2, '.', ',') }} |
@endforeach
{{ number_format($g['total'], 2, '.', ',') }} |