Generated {{ $generatedAt }}
Legacy

Revenue Ledger — Paid Invoices, by Class

@php $cols = ['vat' => 'VAT', 'duties' => 'Duties', 'excise' => 'Excise', 'tax' => 'Tax', 'services' => 'Services']; $currencies = [1 => ['label' => 'GBP', 'symbol' => '£'], 2 => ['label' => 'EUR', 'symbol' => '€']]; @endphp @if($years->isEmpty())
No paid invoices have been recorded yet.
@else @foreach($currencies as $cur => $curMeta)

{{ $curMeta['label'] }} ({{ $curMeta['symbol'] }})

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