{{ __('Sales Report') }} — {{ $year }}

{{ current_tenant()?->name }} · {{ __('Generated at') }} {{ now()->format('d/m/Y H:i') }}

{{ __('Monthly sales trend') }} ({{ $year }} vs {{ $year - 1 }})

@foreach ($trend as $r)@endforeach@foreach ($trend as $r)@endforeach@foreach ($trend as $r)@endforeach
{{ __('Month') }}{{ $r['label'] }}
{{ $year }}{{ number_format($r['current'], 0, ',', ' ') }}
{{ $year - 1 }}{{ number_format($r['previous'], 0, ',', ' ') }}

{{ __('Top products by profit margin') }}

@foreach ($topProducts as $p) @endforeach
{{ __('Product') }}{{ __('Qty') }}{{ __('Revenue') }}{{ __('Profit') }}
{{ $p->name }}{{ $p->qty }}{{ number_format($p->revenue, 0, ',', ' ') }}{{ number_format($p->profit, 0, ',', ' ') }}

{{ __('Employee sales ranking') }}

@foreach ($ranking as $i => $row) @endforeach
#{{ __('Employee') }}{{ __('Sales') }}{{ __('Revenue') }}
{{ $i + 1 }}{{ $row->name }}{{ $row->sales_count }}{{ number_format($row->revenue, 0, ',', ' ') }}