{{ __('Routers') }}
@php
// A platform owner is looking at every seller's hardware at once. They can
// see it and reach it for support, but linking and configuring a router
// belongs to whoever sells the Wi-Fi through it.
$isPlatformOwner = auth()->user()?->hasRole('Super Admin') ?? false;
@endphp
@unless ($isPlatformOwner)
{{ __('Link MikroTik') }}
@endunless
{{-- Preferred path: the router configures itself from a pasted one-liner --}}
{{ __('Link a MikroTik') }}
{{-- Manual entry stays for routers already reachable on a public IP --}}
{{-- Rewrites every subscriber onto this router. Needed after a
reset in place, or when a replacement was linked before the
old box was recognised as dead. --}}
@endforeach
{{ $routers->links() }}
{{-- Deleting a router takes its subscribers' service with it, so it is held
behind a code emailed to the account owner rather than a browser confirm. --}}
@if ($pendingDeleteId)
{{ __('Confirm router deletion') }}
{{ __('We emailed a 6-digit code to the account owner. Enter it to permanently delete this router.') }}