@extends('layout.main') @section('main')
Wireguard Peers Information

Here you can see the info about the wireguard peers configured on this router.

@csrf
@if (!empty($peers))
@foreach ($peers as $peer) @endforeach
ID Interface Allowed Address Client DNS Client Endpoint Current Endpoint Endpoint TX RX Running Public Key Private Key Action
{{ $peer->{'.id'} }} {{ $peer->interface }} {{ $peer->{'allowed-address'} }} {{ $peer->{'client-dns'} ?? 'N/A' }} {{ $peer->{'client-endpoint'} ?: 'N/A' }} {{ $peer->{'current-endpoint-address'} ?: 'N/A' }}:{{ $peer->{'current-endpoint-port'} != '0' ? $peer->{'current-endpoint-port'} : 'N/A' }} {{ $peer->{'endpoint-address'} ?: 'N/A' }}:{{ $peer->{'endpoint-port'} != '0' ? $peer->{'endpoint-port'} : 'N/A' }} {{ $peer->tx }} {{ $peer->rx }} {{ $peer->disabled == 'false' ? 'Yes' : 'No' }} {{ $peer->{'public-key'} }} {{ $peer->{'private-key'} }}
@csrf @method('DELETE')
@else
No peers found.
@endif @endsection