@extends('admin.layouts.master') @section('title', 'LynX Admin - Dashboard') @section('page-title', 'Dashboard') @section('content')
{{ number_format($stats['total_users']) }}
Total Users
👥
12% this month
{{ number_format($stats['total_drivers']) }}
Total Drivers
🚗
@if($stats['pending_drivers'] > 0)
{{ $stats['pending_drivers'] }} pending verification
@endif
{{ $stats['active_rides'] }}
Active Rides
🛵
{{ $stats['completed_rides_today'] }}
Completed Today
${{ number_format($stats['total_revenue'], 0) }}
Total Revenue
💰
{{ $stats['active_sos'] }}
Active SOS Alerts
🆘
@if($stats['active_sos'] > 0) View Alerts → @endif
{{ $stats['active_deviations'] }}
Route Deviations
⚠️
{{ $stats['pending_drivers'] }}
Pending Verification
📋

Recent Rides

Live
@forelse($recentRides as $ride) @empty @endforelse
IDUserTypeStatusFareTime
#{{ substr($ride->id, 0, 8) }} {{ $ride->user?->full_name ?? 'N/A' }} {{ $ride->ride_type }} @php $sClass = match($ride->status) { 'completed' => 'status-active', 'requested', 'accepted', 'started' => 'status-info', 'cancelled' => 'status-danger', default => 'status-pending' }; @endphp {{ ucfirst($ride->status) }} ${{ number_format($ride->fare, 2) }} {{ $ride->created_at->diffForHumans() }}
No rides yet

🚨 Active Alerts

@forelse($activeAlerts as $alert)
{{ ucfirst($alert->type) }} Alert ACTIVE
{{ $alert->created_at->diffForHumans() }}
User: {{ $alert->user?->full_name ?? 'Unknown' }} @if($alert->ride) • Ride: #{{ substr($alert->ride_id, 0, 8) }} @endif
@csrf
📍 View Location
@empty

No active alerts. All clear!

@endforelse
Open God's Eye Dashboard →
@endsection