@extends('layouts.admin') @section('title', 'Analytics') @push('styles') @endpush @section('content') {{-- This Month Stats --}}

New Users This Month

{{ number_format($newUsersThisMonth ?? 0) }}
vs {{ number_format($newUsersLastMonth ?? 0) }} last month

Revenue This Month

₦{{ number_format($revenueThisMonth ?? 0, 2) }}
vs ₦{{ number_format($revenueLastMonth ?? 0, 2) }} last month

Transactions This Month

{{ number_format($transactionsThisMonth ?? 0) }}
vs {{ number_format($transactionsLastMonth ?? 0) }} last month
{{-- Charts --}}

User Growth

Users growth chart placeholder

Revenue Trend

Revenue trend chart placeholder

Transactions by Type

Transactions by type chart placeholder
{{-- Bottom Row: Top Users + Module Breakdown --}}

Top Users by Volume

@forelse(($topUsers ?? []) as $index => $topUser) @empty @endforelse
Rank User Volume Transactions
{{ $index + 1 }} {{ $topUser->name ?? 'N/A' }} ₦{{ number_format($topUser->total_volume ?? 0, 2) }} {{ number_format($topUser->total_transactions ?? 0) }}
No data yet.

Module Revenue Breakdown

₦{{ number_format($escrowRevenue ?? 0, 2) }}
Escrow
₦{{ number_format($inventoryRevenue ?? 0, 2) }}
Inventory
₦{{ number_format($marketplaceRevenue ?? 0, 2) }}
Marketplace
@endsection