@extends('layouts.app') @section('title','Routers — BlueBando v3') @section('content')
| Name | Host | Status | CPU | RAM | Uptime | Updated | VPN | |
|---|---|---|---|---|---|---|---|---|
| {{ $r->name }} {{ $r->model ?? '—' }} |
{{ $r->host }} | {{ $r->status }} | {{ $r->cpu_load !== null ? $r->cpu_load.'%' : '—' }} | @php $mem = $r->total_memory ? round(($r->total_memory - $r->free_memory)/$r->total_memory*100) : null; @endphp {{ $mem !== null ? $mem.'% used' : '—' }} | @if($r->uptime_seconds) {{ gmdate('j\d H\h i\m s\s', $r->uptime_seconds) }} @else — @endif |
@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
|
{{ $r->updated_at->diffForHumans() }} | Open Edit |
| No routers yet. | ||||||||