Dashboard

Dashboard

Welcome back, here's what's happening with your store today.

{{ now()->format('M Y') }}
Add Product

Total Revenue

৳{{ number_format($totalRevenue, 2) }}

Est. Profit

৳{{ number_format($totalProfit, 2) }}

Total Orders

{{ number_format($totalOrders) }}

New Customers (30d)

{{ number_format($newCustomers) }}

Total Products

{{ number_format($totalProducts) }}

Revenue Performance ({{ now()->year }})

@php $maxVal = count($chartData) > 0 ? max($chartData) : 0; if($maxVal == 0) $maxVal = 1; @endphp @foreach($chartData as $val)
৳{{ number_format($val) }}
@endforeach
JanFebMarAprMayJunJulAugSepOctNovDec

Popular Categories

@php $colors = ['bg-blue-500', 'bg-purple-500', 'bg-emerald-500', 'bg-orange-500']; @endphp @foreach($popularCategories as $index => $cat)
{{ $cat->name }}
{{ $cat->products_count }} Products
@endforeach

Quick Action

Manage your product variations, images, and prices efficiently in the catalog section.

Recent Orders

View all orders
@foreach($recentOrders as $order) @php $colorMap = [ 'pending' => 'bg-orange-100 text-orange-600', 'processing' => 'bg-blue-100 text-blue-600', 'shipped' => 'bg-indigo-100 text-indigo-600', 'success' => 'bg-emerald-100 text-emerald-600', 'completed' => 'bg-emerald-100 text-emerald-600', 'cancelled' => 'bg-red-100 text-red-600', ]; $statusColor = $colorMap[strtolower($order->status)] ?? 'bg-gray-100 text-gray-600'; @endphp @endforeach
Order ID Customer Date Status Amount
#{{ $order->order_number }}
@php $orderInitials = collect(preg_split('/\s+/', trim($order->name)))->filter()->map(fn ($p) => strtoupper(mb_substr($p, 0, 1)))->take(2)->implode(''); $avatarPalette = ['bg-blue-500', 'bg-indigo-500', 'bg-violet-500', 'bg-teal-500', 'bg-emerald-500', 'bg-cyan-500', 'bg-sky-500']; $avatarBg = $avatarPalette[abs(crc32($order->name)) % count($avatarPalette)]; @endphp {{ $order->name }}
{{ $order->created_at->diffForHumans() }} {{ $order->status }} ৳{{ number_format($order->total_amount, 2) }}