@props(['stores'])
Ranked by highest revenue this week
|
Store Name
|
Tax Exclusive | Total Tax | Total Inclusive | Transactions | Daily Avg | Avg. Basket | % of Total |
|---|---|---|---|---|---|---|---|
|
@php
$rankClasses = match($index) {
0 => 'bg-gradient-to-br from-amber-400 to-orange-500 text-white shadow-md shadow-amber-500/30',
1 => 'bg-gradient-to-br from-zinc-300 to-zinc-400 text-white shadow-md shadow-zinc-400/30',
2 => 'bg-gradient-to-br from-orange-600 to-amber-700 text-white shadow-md shadow-orange-600/30',
default => 'bg-white/70 text-zinc-700 ring-1 ring-zinc-200/60 backdrop-blur-sm',
};
@endphp
{{ $index + 1 }}
{{ $store['store_name'] }}
|
K{{ number_format($store['total_before_tax'], 2) }}
|
K{{ number_format($store['total_tax'], 2) }}
|
K{{ number_format($store['total_after_tax'], 2) }}
|
{{ number_format($store['total_transactions'], 0) }}
|
K{{ number_format($store['average_total_sale'], 2) }} |
K{{ number_format($store['avg_basket_value'], 2) }}
|
|
|
No store data available Store performance will appear here once transactions are synced |
|||||||