{{ __('NAS & routers') }} {{ __('Link MikroTik') }} @if ($flash)
{{ $flash }}
@endif {{-- Fleet health. Deliberately the whole width and above the table: the first question on this page is never "which routers exist". --}}
@foreach (['all' => __('All'), 'online' => __('Online'), 'offline' => __('Offline')] as $key => $label) @endforeach
@forelse ($this->routers as $row) @empty @endforelse
{{ __('Router') }} {{ __('Status') }} {{ __('Sessions') }} {{ __('Winbox') }} {{ __('Web') }} {{ __('Last online') }}
{{ $row->name }} @if ($row->hardware) {{ $row->hardware }} @elseif ($row->address) {{ $row->address }} @endif @if ($row->state === 'online') {{ __('Online') }} @elseif ($row->state === 'provisioning') {{ __('Provisioning') }} @else {{ __('Offline') }} @endif {{ $row->sessions }} @if ($row->winbox_port) :{{ $row->winbox_port }} @else — @endif {{-- WebFig is only reachable once the router's own web service is on and the hub is let through its firewall, which is a per-router decision made on the router page rather than assumed here. --}} @if ($row->state === 'online') {{ __('Console') }} @else — @endif @if ($row->last_online) {{ $row->last_online->isToday() ? __('Today') : $row->last_online->format('d M Y') }} {{ $row->last_online->format('H:i') }} @else — @endif
@if ($search !== '' || $filter !== 'all') {{ __('No router matches that.') }} @else {{ __('No routers linked yet. Use Link MikroTik to add the first one.') }} @endif
@if ($this->routers->isNotEmpty())
{{ __('All routers loaded.') }}
@endif
{{-- Diagnosis, in place rather than on another page: it is read once and acted on immediately. --}} @if ($diagnosingId) @endif {{-- Deleting a router takes its tunnel with it and orphans every subscriber on it, so the name has to be typed. --}} @if ($pendingDeleteId) @php $doomed = $this->routers->firstWhere('id', $pendingDeleteId); @endphp @endif