@extends('layouts.admin') @section('title', 'Dashboard') @section('header', 'Dashboard Overview') @section('content')

Total Revenue

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

Total Users

{{ $stats['total_users'] }}

Total Projects

{{ $stats['total_projects'] }}

Total Bids

{{ $stats['total_bids'] }}

Monthly Revenue

@if(!empty($stats['monthly_revenue_data'])) @foreach($stats['monthly_revenue_data'] as $month => $revenue)
{{ $month }} ${{ number_format($revenue, 2) }}
@endforeach @else
No revenue data available for this year
@endif

Recent Activities

@if(!empty($stats['recent_activities'])) @foreach($stats['recent_activities'] as $activity)

{{ $activity['description'] }}

{{ $activity['time'] }}

@endforeach @else
No recent activities
@endif

Vendor KYC Status

Verified {{ $stats['kyc_stats']['verified'] ?? 0 }}
Waiting {{ $stats['kyc_stats']['waiting'] ?? 0 }}
In Progress {{ $stats['kyc_stats']['progress'] ?? 0 }}
Pending {{ $stats['kyc_stats']['pending'] ?? 0 }}
Rejected {{ $stats['kyc_stats']['rejected'] ?? 0 }}

Project Status

@if(!empty($stats['project_stats'])) @foreach($stats['project_stats'] as $status => $count)
{{ ucfirst($status) }} {{ $count }}
@endforeach @else
No project data available
@endif

Credit Usage

Total Credits Used {{ $stats['total_credits_used'] }}
Active Credits {{ $stats['active_credits'] }}
Transactions Today {{ $stats['transactions_today'] }}
@endsection