@extends('layout.app') @section('content')

Active Connections — {{ $nas->id }}. {{ $nas->shortname }} ({{ $nas->nasname }})

@if (!$error && !empty($active)) Download Excel @endif Back
@if ($error)
{{ $error }}
@elseif (empty($active))
No active connections found on this Mikrotik.
@else

Total online users: {{ count($active) }}

@foreach ($active as $index => $connection) @endforeach
# Name Service Caller ID Address Uptime Encoding
{{ $index + 1 }} {{ $connection['name'] ?? '' }} {{ $connection['service'] ?? '' }} {{ $connection['caller-id'] ?? '' }} {{ $connection['address'] ?? '' }} {{ $connection['uptime'] ?? '' }} {{ $connection['encoding'] ?? '' }}
@endif
@endsection