@extends('layouts.app') @section('title', 'Dashboard') @section('content')
Total Routers
{{ $stats['routers_total'] }}
Online
{{ $stats['routers_online'] }}
Offline
{{ $stats['routers_offline'] }}
Open Alerts
{{ $stats['alerts_open'] }}
Backups Today
{{ $stats['backups_today'] }}

Recent Router Activity

@forelse($routers as $router)
{{ $router->name }}
{{ $router->location }} • {{ $router->model }}
{{ strtoupper($router->status) }}
@empty
No routers yet.
@endforelse

Latest Alerts

@forelse($recentAlerts as $alert)
{{ $alert->title }}
{{ $alert->message }}
{{ $alert->triggered_at?->diffForHumans() }}
@empty
No active alerts.
@endforelse

Traffic Samples

@foreach($traffic as $metric) @endforeach
Recorded RX (bps) TX (bps) CPU Memory
{{ $metric->recorded_at }} {{ number_format($metric->rx_bps) }} {{ number_format($metric->tx_bps) }} {{ $metric->cpu_usage }}% {{ $metric->memory_usage }}%
@endsection