@extends('admin.layouts.app') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content')
Filter Period:
Total Revenue

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

Calculated from paid orders

Total Orders

{{ $stats['total_orders'] }}

All processed transactions

Paid / Pending

{{ $stats['paid_orders'] }} / {{ $stats['pending_orders'] }}

Paid vs pending confirmation

Total Customers

{{ $stats['total_customers'] }}

Registered clients

Catalog Products

{{ $stats['total_products'] }}

Out of Stock

{{ $stats['low_stock_products'] }}

Cancelled Orders

{{ $stats['cancelled_orders'] }}

Payment Options

ABA & COD

Revenue Trend

Order Status Breakdown

Pending
Processing
Delivering
Completed

Top Products Sold

Payment Methods (ABA vs COD)

Quick Business Actions

Recent Orders

View All
@if($recentOrders->count() > 0) @foreach($recentOrders as $order)
{{ $order->created_at->format('M d, Y H:i') }}

{{ $order->order_number }}

By {{ $order->customer_name }}

${{ number_format($order->total, 2) }} @php $paymentBadge = match($order->payment_status) { 'paid' => 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400', 'pending' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400', default => 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400' }; @endphp {{ ucfirst($order->payment_status) }}
@endforeach @else
No orders registered yet for this period.
@endif

Recent Registrations

View All
@if($recentCustomers->count() > 0) @foreach($recentCustomers as $customer)
{{ substr($customer->name, 0, 1) }}

{{ $customer->name }}

{{ $customer->email }}

Registered {{ $customer->created_at->format('M d, Y') }}
@endforeach @else
No customer accounts found for this period.
@endif
@endsection