| Month | Sales | Revenue | Avg per Sale | vs Prev Month |
|---|---|---|---|---|
| {{ \Carbon\Carbon::createFromFormat('Y-m', $month->month)->format('F Y') }} | {{ $month->sales_count }} | KSh {{ number_format($month->revenue, 2) }} | KSh {{ number_format($avgSale, 2) }} | @if($change !== null) {{ $change > 0 ? '↑' : ($change < 0 ? '↓' : '→') }} {{ abs($change) }}% @else — @endif |
| No monthly data available. | ||||
| Total | {{ $totalSales }} | KSh {{ number_format($totalRev, 2) }} | KSh {{ number_format($avgMonthly, 2) }} | |