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

Admin Dashboard

Overview sistem dan monitoring data gempa

{{ now()->format('l, d F Y') }}
{{ number_format($stats['total_users'] ?? 0) }}
Total Users
+12% from last month
{{ number_format($stats['total_devices'] ?? 0) }}
Total Devices
+5 new this week
{{ number_format($stats['total_gempa'] ?? 0) }}
Total Earthquakes
{{ number_format($stats['earthquakes_today'] ?? 0) }} today
{{ number_format($stats['active_sensors'] ?? 0) }}
Active Sensors
{{ number_format($stats['online_percentage'] ?? 0) }}% online

Earthquake Trend (12 Months)

Earthquakes

Device Status Distribution

Online Offline Pending

Recent Alerts

View All →
High magnitude detected
2 minutes ago
New device registered
15 minutes ago
Device offline: Sensor Bali
1 hour ago

Recent Activity

View All →
New user registered: John Doe 5 minutes ago
Earthquake detected: Magnitude 4.2 in Bali 10 minutes ago
Device added: Sensor Jakarta 25 minutes ago
Data export completed 1 hour ago

Recent Earthquakes

View All →
@forelse(($stats['recent_gempa'] ?? []) as $gempa) @empty @endforelse
Time Location Magnitude Depth Status
{{ $gempa->waktu_kejadian->format('d/m/Y H:i') }} {{ $gempa->lokasi }} {{ number_format($gempa->magnitude, 1) }} {{ $gempa->kedalaman ?? '-' }} km {{ $gempa->status }}
No earthquake data

Recent Devices

View All →
@forelse(($stats['recent_devices'] ?? []) as $device) @empty @endforelse
Device ID Type Status Last Heartbeat
{{ $device->name }} {{ $device->device_id }} {{ ucfirst($device->type) }} {{ ucfirst($device->status) }} {{ $device->last_heartbeat ? $device->last_heartbeat->diffForHumans() : 'Never' }}
No devices

System Health

All Systems Operational
Database Connected
Cache Operational
Queue Worker Running
Storage 45% Used
@endsection