Dashboard
Total Orders
{{ $totalOrders }}
Today Orders
{{ $todayOrders }}
Total Revenue
${{ number_format($totalRevenue, 2) }}
Today Revenue
${{ number_format($todayRevenue, 2) }}
Orders by Status
@php
$statusColors = [
'pending' => 'warning',
'confirmed' => 'info',
'preparing' => 'secondary',
'on_the_way' => 'primary',
'delivered' => 'success',
'cancelled' => 'danger',
];
@endphp
@foreach (['pending', 'confirmed', 'preparing', 'on_the_way', 'delivered', 'cancelled'] as $status)
{{ ucfirst(str_replace('_', ' ', $status)) }}: {{ $ordersByStatus[$status] ?? 0 }}
@endforeach
Monthly Revenue (Last 12 Months)
Top 5 Products
@if ($topProducts->count() > 0)
@else
| # | Product | Sold |
|---|---|---|
| {{ $index + 1 }} | {{ $product->title }} | {{ $product->total_sold }} |
No data available.
@endifTop 5 Customers
@if ($topCustomers->count() > 0)
@else
| # | Customer | Orders | Total Spent |
|---|---|---|---|
| {{ $index + 1 }} | {{ $customer->name }} | {{ $customer->total_orders }} | ${{ number_format($customer->total_spent, 2) }} |
No data available.
@endif