@extends('layouts.monitor') @section('title', 'Network Dashboard') @section('refresh', '60') @section('content')

Network Operations

Device health dashboard

Auto-refreshes every 60 seconds.

@php $cards = [ ['Total', $counts->total ?? 0, 'text-white'], ['Online', $counts->online ?? 0, 'text-emerald-400'], ['Offline', $counts->offline ?? 0, 'text-rose-400'], ['Warning', $counts->warning ?? 0, 'text-amber-400'], ['Unknown', $counts->unknown ?? 0, 'text-slate-400'], ]; @endphp @foreach($cards as [$label, $value, $color])
{{ $label }}
{{ $value }}
@endforeach

Device status

Manage devices
@forelse($devices as $device) @php $statusClasses = match($device->status) { 'online' => 'bg-emerald-950 text-emerald-300 border-emerald-800', 'offline' => 'bg-rose-950 text-rose-300 border-rose-800', 'warning' => 'bg-amber-950 text-amber-300 border-amber-800', default => 'bg-slate-800 text-slate-300 border-slate-700', }; @endphp @empty @endforelse
Device Location Status Response Last check
{{ $device->name }}
{{ $device->host }}{{ $device->port ? ':'.$device->port : '' }}
{{ $device->location ?: '—' }} {{ strtoupper($device->status) }} {{ $device->last_response_ms ? $device->last_response_ms.' ms' : '—' }} {{ $device->last_checked_at?->diffForHumans() ?: 'Never' }}
No devices added yet.
{{ $devices->links() }}

Recent incidents

@forelse($incidents as $incident)
{{ $incident->device->name }}
{{ $incident->started_at->format('d M, h:i A') }}
@if($incident->resolved_at) RESOLVED @else ACTIVE @endif

{{ $incident->last_error }}

@empty
No incidents.
@endforelse
@endsection