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

Total Products

{{ $stats['total_products'] }}

{{ $stats['active_products'] }} active

Total Orders

{{ $stats['total_orders'] }}

{{ $stats['today_orders'] }} today

Total Revenue

{{ $currency_symbol }}{{ number_format($stats['total_revenue'], 2) }}

{{ $currency_symbol }}{{ number_format($stats['today_revenue'], 2) }} today

Low Stock Items

{{ $stats['low_stock_items'] }}

Needs attention

Recent Orders

@forelse($recentOrders as $order) @empty @endforelse
Order # Customer Total Status
{{ $order->order_number }} {{ $order->user->name ?? 'Guest' }} {{ $currency_symbol }}{{ number_format($order->total, 2) }} {{ ucfirst($order->status) }}
No recent orders

Low Stock Alert

@forelse($lowStockProducts as $variant)

{{ $variant->product->name }}

{{ $variant->name }}

{{ $variant->stock_quantity }}

in stock

@empty

No low stock items

@endforelse
@endsection