@php use App\Models\Currency; $sym = Currency::symbolFor($currency); $md = fn ($minor) => $sym . number_format(((int) $minor) / 100, 2); $agB = $aging['buckets'] ?? []; @endphp

{{ $brand }} — {{ __('Revenue report') }}

{{ __('Generated') }} {{ $generatedAt }} · {{ __('Currency') }} {{ $currency }}
{{ __('Collected (30d)') }}
{{ $md($collected30) }}
{{ __('Collected (all)') }}
{{ $md($collectedAll) }}
{{ __('Outstanding') }}
{{ $md($outstanding) }}
{{ __('Tax collected') }}
{{ $md($taxCollected) }}
@foreach ($collectedByMonth as $mo) @endforeach
{{ __('Month') }}{{ __('Collected') }}
{{ $mo['label'] }}{{ $md($mo['minor']) }}
@foreach (['0-30','31-60','61-90','90+'] as $b) @endforeach
{{ __('Receivables aging') }} — {{ $aging['count'] ?? 0 }} {{ __('invoices') }}
{{ $b }} {{ __('days') }}{{ $md($agB[$b] ?? 0) }}
{{ __('Invoices') }}: {{ $invoicesPaid }} {{ __('paid') }}, {{ $invoicesOpen }} {{ __('open') }}.