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

Admin Dashboard

Overview of your platform

Total Users

{{ $stats['totalUsers'] }}

Active Pairings

{{ $stats['activePairings'] }}

Total Orders

{{ $stats['totalOrders'] }}

Pending Payments

{{ $stats['pendingPayments'] }}

Recent Orders

View All
@if($recentOrders->isEmpty())

No orders yet

@else
@foreach($recentOrders as $order)

{{ $order->order_number }}

{{ $order->user->name }}

₦{{ number_format($order->total, 0) }}

{{ ucfirst($order->payment_status) }}
@endforeach
@endif

Recent Payments

View All
@if($recentPayments->isEmpty())

No payments yet

@else
@foreach($recentPayments as $payment)

{{ $payment->user->name }}

{{ $payment->order->order_number }}

₦{{ number_format($payment->amount, 0) }}

{{ ucfirst($payment->status) }}
@endforeach
@endif

Quick Actions

@csrf
Add New Product Broadcast Message
@endsection