Business Analytics

Deep dive into your store's performance metrics

@php $cards = [ ['label' => 'Total Revenue', 'value' => 'LKR ' . number_format($metrics['totalSales'], 2), 'icon' => 'bi-currency-dollar', 'bg' => '#e3f2fd', 'color' => '#1976d2'], ['label' => 'Total Orders', 'value' => $metrics['totalOrders'], 'icon' => 'bi-cart-check', 'bg' => '#e8f5e9', 'color' => '#388e3c'], ['label' => 'Avg Order Value', 'value' => 'LKR ' . number_format($metrics['avgOrderValue'], 2), 'icon' => 'bi-basket', 'bg' => '#f3e5f5', 'color' => '#7b1fa2'], ['label' => 'Est. Profit', 'value' => 'LKR ' . number_format($metrics['totalProfit'], 2), 'icon' => 'bi-graph-up-arrow', 'bg' => '#fff3e0', 'color' => '#f57c00'], ]; @endphp @foreach($cards as $card)
{{ $card['label'] }}
{{ $card['value'] }}
@endforeach
Revenue Trend
{{ $filter }} View
Profit & Margin
Top Performing Products
View Full Report
@forelse($topProducts as $item) @empty @endforelse
Product Details Category Units Sold Revenue Generated Growth Trend
{{ $item->productData->product_name ?? 'Product #'.$item->product_id }}
SKU: {{ $item->productData->sku ?? 'N/A' }}
Electronics {{ $item->total_sold }} LKR {{ number_format($item->revenue, 2) }} 12%
No sales data recorded for this period
@script @endscript