@extends('adminlte::page') @section('title', 'Dashboard - MobileSentrix Admin') @section('content_header')

Dashboard

@stop @section('content')

{{ $stats['total_orders'] }}

Total Orders

More info

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

Total Revenue

More info

{{ $stats['pending_orders'] }}

Pending Orders

More info

{{ $stats['low_stock_items'] }}

Low Stock Items

More info

Sales Overview (Last 7 Days)

Order Status Distribution

Recent Orders

@forelse($recent_orders as $order) @empty @endforelse
Order ID Customer Amount Status
{{ $order->order_number }} {{ $order->customer_name }} ${{ number_format($order->total, 2) }} @php $badgeClass = match($order->status) { 'completed' => 'badge-success', 'pending' => 'badge-warning', 'processing' => 'badge-info', 'cancelled' => 'badge-danger', 'refunded' => 'badge-secondary', default => 'badge-light', }; @endphp {{ ucfirst($order->status) }}
No recent orders

Popular Products

@forelse($popular_products as $product) @empty @endforelse
Product Category Sales
{{ $product->name }} {{ $product->category->name }} {{ $product->reviews_count }}
No products found
@stop @section('css') @stop @section('js') @stop