@extends('layouts.app') @section('title','Routers — BlueBando v3') @section('content')
| Name | Host | Status | CPU | RAM | Uptime | VPN | Updated | |
|---|---|---|---|---|---|---|---|---|
|
{{ $r->name }} {{ $r->last_model ?? $r->model ?? $r->board_name ?? '—' }} |
{{-- Host --}}
{{ $r->host }} | {{-- Status + latency --}}
{{ strtoupper($status) }}
@if($r->last_latency_ms !== null)
{{ $r->last_latency_ms }} ms
@endif
|
{{-- CPU --}}
{{ $cpuText ?? '—' }} | {{-- RAM --}}{{ $memPercent !== null ? $memPercent.'% used' : '—' }} | {{-- Uptime --}}{{ $uptimeText ?? '—' }} | {{-- VPN --}}
@php
$vpn = \App\Models\VpnClient::where('router_id', $r->id)->latest()->first();
@endphp
@if($vpn && $vpn->status === 'active')
ON
{{ $r->vpn_ip ?? '—' }}
@else
Create
@endif
|
{{-- Updated --}}
@if($updatedTs) {{ $updatedTs->diffForHumans() }} @else — @endif | {{-- Actions --}}Open Edit |
| No routers yet. | ||||||||