@extends('admin.layout') @section('title', 'Dashboard') @section('content')
Total Users
{{ number_format($stats['total_users'] ?? 0) }}
{{ abs($stats['user_growth'] ?? 0) }}% this month
Total Sales
₹{{ number_format($stats['total_sales'] ?? 0) }}
₹{{ number_format($stats['sales_today'] ?? 0) }} today
Pending Payouts
₹{{ number_format($stats['pending_payouts'] ?? 0) }}
{{ $stats['payout_requests_today'] ?? 0 }} requests today
Total Commissions
₹{{ number_format($stats['total_commissions'] ?? 0) }}
₹{{ number_format($stats['commission_today'] ?? 0) }} today
Active Orders
{{ number_format($stats['active_orders'] ?? 0) }}
{{ $stats['pending_orders'] ?? 0 }} pending
Total PV
{{ number_format($stats['total_pv'] ?? 0) }}
{{ $stats['pv_today'] ?? 0 }} today
New Users Today
{{ number_format($stats['new_users_today'] ?? 0) }}
{{ abs($stats['user_growth_daily'] ?? 0) }}%
Network Growth
{{ number_format($stats['network_growth'] ?? 0) }}%
{{ $stats['dilers'] ?? 0 }} dilers / {{ $stats['dipos'] ?? 0 }} dipos
Sales Overview (Last 7 Days)
User Growth (Last 30 Days)
Pending Approvals
View All
@forelse($pendingOrders ?? [] as $order) @empty @endforelse
Order ID User Amount Status Action
#{{ $order->order_number ?? 'N/A' }}
{{ $order->user->name ?? 'N/A' }}
{{ $order->user->user_code ?? 'N/A' }}
₹{{ number_format($order->total_amount ?? 0) }} {{ ucfirst(str_replace('_', ' ', $order->status ?? 'pending')) }}
No pending orders found
Recent Commissions
View All
@forelse($recentCommissions ?? [] as $commission) @empty @endforelse
User Type Amount Date
{{ $commission->user->name ?? 'N/A' }} {{ ucfirst(str_replace('_', ' ', $commission->commission_type ?? 'Unknown')) }} ₹{{ number_format($commission->amount ?? 0) }} {{ $commission->created_at->format('Y-m-d H:i') ?? 'N/A' }}
No commission records found
Pending Payout Requests
View All
@forelse($pendingPayouts ?? [] as $payout) @empty @endforelse
Request ID User Amount Request Date Status Action
#{{ str_pad($payout->id ?? 0, 6, '0', STR_PAD_LEFT) }}
{{ $payout->user->name ?? 'N/A' }}
{{ $payout->user->user_code ?? 'N/A' }}
₹{{ number_format($payout->amount ?? 0) }} {{ $payout->created_at->format('Y-m-d H:i') ?? 'N/A' }} {{ ucfirst($payout->status ?? 'pending') }}
No pending payout requests found
{{ $stats['distributors'] ?? 0 }}
Distributors
{{ $stats['dilers'] ?? 0 }}
Dilers
{{ $stats['dipos'] ?? 0 }}
Dipos
{{ $stats['active_ranks'] ?? 0 }}
Active Ranks
System Information
Total Products
{{ $stats['total_products'] ?? 0 }}
{{ $stats['active_products'] ?? 0 }} active
Server Time
{{ now()->format('h:i A') }}
{{ now()->format('d M, Y') }}
System Status
Online
All services running
Database
Connected
MySQL v8.0
@endsection @section('scripts') @endsection