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)
@foreach ($topProducts as $index => $product) @endforeach
# Product Sold
{{ $index + 1 }} {{ $product->title }} {{ $product->total_sold }}
@else

No data available.

@endif

Top 5 Customers

@if ($topCustomers->count() > 0)
@foreach ($topCustomers as $index => $customer) @endforeach
# Customer Orders Total Spent
{{ $index + 1 }} {{ $customer->name }} {{ $customer->total_orders }} ${{ number_format($customer->total_spent, 2) }}
@else

No data available.

@endif