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

Security Command Center

Live operational overview for {{ now()->format('l, d F Y') }}

@if(session('status'))
{{ session('status') }}
@endif @php $cards=[ ['Total Users',$metrics['total_users'],'bi-people-fill','primary'],['Active Users',$metrics['active_users'],'bi-person-check-fill','success'],['Premium Users',$metrics['premium_users'],'bi-gem','warning'], ['Total Devices',$metrics['total_devices'],'bi-phone-fill','info'],['Online Devices',$metrics['online_devices'],'bi-wifi','success'],['Lost Devices',$metrics['lost_devices'],'bi-exclamation-octagon-fill','danger'], ["Today's Alerts",$metrics['theft_today'],'bi-shield-exclamation','danger'],['Critical Incidents',$metrics['critical_alerts'],'bi-radioactive','danger'],['Notifications',$metrics['notifications'],'bi-bell-fill','primary'], ['Revenue Today','₹'.number_format($metrics['revenue_today'],2),'bi-currency-rupee','success'],['Monthly Revenue','₹'.number_format($metrics['revenue_month'],2),'bi-graph-up-arrow','success'],['Wallet Balance','₹'.number_format($metrics['wallet_balance'],2),'bi-wallet2','warning']]; @endphp
@foreach($cards as [$label,$value,$icon,$color])
{{ $label }}
{{ $value }}
@endforeach

Platform Growth

New users and devices over six months
Monthly

Device Status

Current fleet availability

OnlineOfflineLost

Latest Registered Users

View all
@forelse($latestUsers as $user)@empty@endforelse
UserStatusPlanRegistered
{{ $user->full_name ?: 'New User' }}
{{ $user->email }}
{{ ucfirst($user->status) }}{!! $user->is_premium ? 'Premium' : 'Free' !!}{{ optional($user->created_at ? \Carbon\Carbon::parse($user->created_at) : null)->diffForHumans() }}
No registered users yet.

Latest Theft Alerts

@forelse($latestAlerts as $alert)
{{ $alert->event_title }}{{ ucfirst($alert->risk_level) }}
{{ $alert->device_name }} · {{ \Carbon\Carbon::parse($alert->created_at)->diffForHumans() }}
@empty
No theft incidents reported.
@endforelse

System Health

@foreach(['Database'=>$system['database'],'Queue'=>ucfirst($system['queue']),'Cache'=>ucfirst($system['cache']),'Environment'=>ucfirst($system['environment'])] as $name=>$value)
{{ $name }}{{ $value }}
@endforeach
@endsection @push('scripts') @endpush