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

Admin Dashboard

Welcome back! Here's what's happening with your store today.

Total Orders

{{ $totalOrders }}

Total Products

{{ $totalProducts }}

Total Users

{{ $totalUsers }}

Total Revenue

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

Recent Orders

View All
@forelse($recentOrders as $order) @empty @endforelse
Order # Customer Date Status Amount
{{ $order->order_number }} {{ $order->user->name ?? 'N/A' }} {{ $order->created_at->format('M d') }} {{ ucfirst($order->status) }} ${{ number_format($order->total, 2) }}
No recent orders found

Top Selling Products

View All
@forelse($topProducts as $product) @empty @endforelse
Product Quantity Price Status
{{ $product->name }}
{{ $product->total_sold ?? 0 }} ${{ number_format($product->price, 2) }} {{ $product->is_active ? 'Active' : 'Inactive' }}
No top selling products found
@endsection