{{-- Page Header --}}

Dashboard

Overview of your GPS tracking system

{{-- Statistics Cards --}}
{{-- Total Devices --}}
Total Devices
{{ $stats['total_devices'] ?? 0 }}
{{-- Online Devices --}}
Online
{{ $stats['online_devices'] ?? 0 }}
{{-- Offline Devices --}}
Offline
{{ $stats['offline_devices'] ?? 0 }}
{{-- Recent Alerts --}}
Recent Alerts
{{ $stats['recent_alerts'] ?? 0 }}
{{-- Device Status Widget --}}

Device Status

@forelse($devicesStatus as $device)
{{ $device['name'] }}
@if($device['last_update']) Last seen: {{ \Carbon\Carbon::parse($device['last_update'])->diffForHumans() }} @else Never seen @endif
{{ ucfirst($device['status']) }}
@empty

No devices

Get started by adding your first device.

@endforelse
{{-- Recent Events --}}

Recent Events

@forelse($recentEvents as $event)
{{ $event['type'] }}
{{ $event['device_name'] }} • {{ \Carbon\Carbon::parse($event['event_time'])->diffForHumans() }}
@if(!$event['acknowledged']) @else Acknowledged @endif
@empty

No recent events

Events and alerts will appear here.

@endforelse
{{-- Live Map Widget --}} @if(count($mapDevices) > 0)

Live Tracking

@push('scripts') @endpush @endif