@extends('layouts.admin') @section('title', 'Dashboard') @section('content')

Store Overview & Analytics

Monitor revenue, order volume, category performance, and active inventory in real-time.

Add New Product
Total Revenue
₹{{ number_format($totalRevenue, 2) }}
Total Orders
{{ $totalOrders }}
Pending Orders
{{ $pendingOrders }}
Active Products
{{ $totalProducts }}

Sales & Revenue Growth Trend

Monthly revenue performance (₹) and order volume over the last 6 months.

Monthly Analytics

Order Status Breakdown

Fulfillment distribution & order counts.

{{ array_sum($statusCounts) }}
Total Orders

Category Sales & Revenue Distribution

Earnings breakdown across product categories (Moisturisers, Cleansers, Serums, Sunscreens, Oils).

View Categories →

Recent Customer Orders

View All Orders →
@if($recentOrders->isEmpty())
No orders recorded yet.
@else
@foreach($recentOrders as $order) @endforeach
Order # Customer Items Total Status Action
{{ $order->order_number }}
{{ $order->created_at->format('M d, H:i') }}
{{ $order->customer_name }}
{{ $order->customer_phone }}
{{ $order->items->sum('quantity') }} items ₹{{ number_format($order->total_amount, 2) }} {{ ucfirst($order->order_status) }} View
@endif

Low Stock Warning

@if($lowStockProducts->isEmpty())

All products have healthy inventory levels!

@else
@foreach($lowStockProducts as $prod)
{{ $prod->name }}
Category: {{ $prod->category->name ?? 'Unassigned' }}
{{ $prod->stock }} left
@endforeach
@endif
@endsection