@extends('layouts.app') @section('title', 'Online Clients - ISP ERP System') @section('page-title', 'Online Clients Management') @section('content')
@if(auth()->user()->role === 'mac_reseller') Monitor your assigned MikroTik servers and their online clients @else Monitor all active clients connected to MikroTik servers @endif
| Username | @if(auth()->user()->role === 'mac_reseller' || auth()->user()->role === 'admin')Client Name | Contact | Package | @endifServer | IP Address | Uptime | Service | Bytes In/Out | Packets In/Out | Caller ID | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $client['username'] }} | @if(auth()->user()->role === 'mac_reseller' || auth()->user()->role === 'admin')
{{ $client['client_name'] ?? 'N/A' }}
|
{{ $client['client_phone'] ?? 'N/A' }}
{{ $client['client_email'] ?? 'N/A' }} |
{{ $client['package_name'] ?? 'N/A' }}
৳{{ $client['package_price'] ?? '0' }} |
@endif
{{ $client['server_name'] }}
{{ $client['server_ip'] }} |
{{ $client['address'] }} | {{ $client['uptime'] }} | {{ strtoupper($client['service']) }} |
{{ \App\Helpers\FormatHelper::formatBytes(isset($client['bytes_in']) ? (is_numeric($client['bytes_in']) ? $client['bytes_in'] : (int)$client['bytes_in']) : 0) }}
{{ \App\Helpers\FormatHelper::formatBytes(isset($client['bytes_out']) ? (is_numeric($client['bytes_out']) ? $client['bytes_out'] : (int)$client['bytes_out']) : 0) }}
|
{{ number_format(isset($client['packets_in']) ? (is_numeric($client['packets_in']) ? (int)$client['packets_in'] : 0) : 0) }}
{{ number_format(isset($client['packets_out']) ? (is_numeric($client['packets_out']) ? (int)$client['packets_out'] : 0) : 0) }}
|
{{ $client['caller_id'] }}
|
|
No clients are currently connected to any MikroTik servers.