@extends('layouts.app') @section('title', 'User Dashboard') @section('content')
{{ $stats['total_devices'] }}
My Devices
{{ $stats['active_devices'] }}
Active Devices
{{ number_format($stats['total_readings']) }}
Total Readings
--
Latest Magnitude

Recent Earthquakes

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

My Devices

Add Device
@forelse(auth()->user()->devices as $device)

{{ $device->name }}

{{ $device->device_id }}

Last: {{ $device->last_heartbeat?->diffForHumans() ?? 'Never' }}
Type: {{ ucfirst($device->type) }}
View Details
@empty

No devices yet

Add your first device to start monitoring

Add Device
@endforelse
@endsection