@extends('layouts.admin') @section('title','Dashboard') @section('page-title','Admin Dashboard') @section('content') {{-- Stats Row --}}
@foreach([ ['Total Users', $stats['total_users'], 'group', 'blue'], ['Active Orders', $stats['active_orders'], 'receipt_long', 'orange'], ['Pending Orders', $stats['pending_orders'], 'hourglass_empty','red'], ['Open Chats', $stats['open_chats'], 'chat_bubble', 'green'], ] as [$label, $val, $icon, $clr])
{{ $icon }} Today

{{ number_format($val) }}

{{ $label }}

@endforeach
{{-- Volume Cards --}}

Today's Volume

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

trending_up {{ now()->format('M d, Y') }}

Total Volume (All Time)

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

Completed orders

{{-- Pending Orders --}}

Pending Orders

View All →
@forelse($pendingOrders->take(5) as $order) @empty @endforelse
Order ID User Asset Payout Action
{{ $order->order_id }}

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

{{ $order->user->email }}

{{ $order->asset_type }} ₦{{ number_format($order->calculated_payout, 0) }} Review
No pending orders 🎉
{{-- Quick Actions --}}

Quick Actions

@endsection