{{ __('VPN Setup') }}
@if($selectedRouter) @endif
@if(!$selectedRouter)
{{ __('Select a connected router to manage VPN settings.') }}
@else
{{-- L2TP --}} @if($activeTab==='l2tp')
{{ __('L2TP Server Settings') }}
@endif {{-- PPTP --}} @if($activeTab==='pptp')
{{ __('PPTP Server Settings') }}
{{ __('PPTP is considered obsolete and insecure. Use L2TP/IPsec or SSTP if possible.') }}
@endif {{-- SSTP --}} @if($activeTab==='sstp')
{{ __('SSTP Server Settings') }}
{{ __('SSTP requires a valid certificate to be configured on the router. Ensure a certificate is installed and selected in Winbox/WebFig for clients to connect successfully.') }}
@endif
@if($activeTab !== 'sessions')
{{ __('VPN Setup Guide') }}

{{ __('To provision a VPN for a user:') }}

  1. {!! __('Go to :link and switch to the :tab tab.', ['link' => '' . __('PPPoE Setup') . '', 'tab' => '' . __('PPP Secrets') . '']) !!}
  2. {{ __('Create a new secret with Username and Password.') }}
  3. {!! __('Set the :service to :any (or specifically :l2tp, :pptp, :sstp).', ['service' => '' . __('Service') . '', 'any' => 'any', 'l2tp' => 'l2tp', 'pptp' => 'pptp', 'sstp' => 'sstp']) !!}
  4. {{ __("The user can now connect using the router's public IP address using their credentials.") }}
@endif
{{-- SESSIONS --}} @if($activeTab==='sessions')
{!! __('Active VPN/PPP Sessions on :router', ['router' => '' . e($selectedRouter) . '']) !!}
@forelse($activeSessions as $s) @empty @endforelse
{{ __('User') }}{{ __('Service') }}{{ __('Remote IP') }}{{ __('Uptime') }}{{ __('Client IP') }}
{{ $s['name'] ?? '-' }} @php $srv = $s['service'] ?? ''; @endphp {{ $srv }} {{ $s['address'] ?? '-' }} {{ $s['uptime'] ?? '-' }} {{ $s['caller-id'] ?? '-' }}
{{ __('No active sessions.') }}
@endif @endif