@extends('layout.app') @section('title', 'Kelola PPPoE Users - Sistem Manajemen ISP') @section('breadcrumb', 'PPPoE Users') @section('content')
Kelola PPPoE Users

Total PPPoE Users

people

Active Users

check_circle

Inactive Users

cancel

Active Sessions

wifi
@if(request()->anyFilled(['search', 'status', 'paket_internet_id'])) @endif
@forelse($pelanggan as $index => $customer) @php $mikrotikUser = $mikrotikPppoeUsersMap[$customer->username_pppoe] ?? null; $defaultLocal = $config->pppoe_local_address ?? '-'; $localAddress = $mikrotikUser['local-address'] ?? $defaultLocal; $remoteAddress = $mikrotikUser['remote-address'] ?? $customer->ip_address ?? '-'; @endphp @empty @endforelse
No Customer PPPoE Username Paket Internet Status Profile Local Address Remote Address Terakhir Login
{{ $pelanggan->firstItem() + $index }}
{{ $customer->nama }}

{{ $customer->email }}

{{ $customer->username_pppoe }} @if($customer->paket) {{ $customer->paket->nama_paket }} @else - @endif @if($customer->status_layanan == 'Aktif') Aktif @elseif($customer->status_layanan == 'Suspend') Suspend @else Nonaktif @endif @if($customer->profile_pppoe) {{ $customer->profile_pppoe }} @else - @endif {{ $localAddress }} {{ $remoteAddress }} @if($customer->last_login_at) {{ $customer->last_login_at->format('d/m/Y') }}

{{ $customer->last_login_at->format('H:i') }}

@else Belum pernah @endif
language
Belum ada PPPoE users

Belum ada pelanggan yang memiliki akun PPPoE

@if($pelanggan->hasPages()) @endif
@if(!$config)
warning Konfigurasi Mikrotik belum ada. Klik di sini untuk mengatur konfigurasi.
@elseif($mikrotikError)
error Error mengambil data dari MikroTik: {{ $mikrotikError }}
@else
@forelse($mikrotikPppoeUsers ?? [] as $user) @empty @endforelse
Username Profile Service Local Address Remote Address Status Comment
{{ $user['name'] ?? '-' }}
{{ $user['profile'] ?? '-' }} {{ $user['service'] ?? '-' }} {{ $user['local-address'] ?? '-' }} {{ $user['remote-address'] ?? '-' }} @php $isDisabled = isset($user['disabled']) && $user['disabled'] === 'yes'; @endphp {{ !$isDisabled ? 'Active' : 'Disabled' }} {{ $user['comment'] ?? '-' }} @php $pelanggan = \App\Models\Pelanggan::where('username_pppoe', $user['name'] ?? '')->first(); @endphp @if($pelanggan) visibility Detail @else @endif
router
Belum ada PPPoE users di MikroTik
@endif
@endsection @section('scripts') @endsection