@extends('layouts.master') @section('title', 'Kelola User Hotspot') @section('page-title', 'Kelola User Hotspot') @section('css') @endsection @section('content')

Kelola User Hotspot MikroTik

Buat atau perbarui user hotspot langsung dari aplikasi.
Dashboard Sinkronisasi MikroTik
@php $global = $syncDashboard['global'] ?? []; $selected = $syncDashboard['selected'] ?? []; $perRouter = $syncDashboard['per_router'] ?? collect(); @endphp
Total Hotspot User (Global)
{{ number_format((int) ($global['total'] ?? 0), 0, ',', '.') }}
Sudah Dipasangkan (Global)
{{ number_format((int) ($global['paired'] ?? 0), 0, ',', '.') }}
Belum: {{ number_format((int) ($global['unpaired'] ?? 0), 0, ',', '.') }}
Sinkron Sukses (Global)
{{ number_format((int) ($global['sync_success'] ?? 0), 0, ',', '.') }}
Sinkron Gagal (Global)
{{ number_format((int) ($global['sync_failed'] ?? 0), 0, ',', '.') }}
Router Terpilih
{{ optional($servers->firstWhere('id', $selectedServerId))->name ?? '-' }}
Total Router Terpilih
{{ number_format((int) ($selected['total'] ?? 0), 0, ',', '.') }}
Paired Router Terpilih
{{ number_format((int) ($selected['paired'] ?? 0), 0, ',', '.') }}
Belum: {{ number_format((int) ($selected['unpaired'] ?? 0), 0, ',', '.') }}
Sinkron (OK/Gagal)
{{ number_format((int) ($selected['sync_success'] ?? 0), 0, ',', '.') }} / {{ number_format((int) ($selected['sync_failed'] ?? 0), 0, ',', '.') }}
Lihat Ringkasan Per Router
@foreach($perRouter as $r) @endforeach
Router Total Paired Belum Sync OK Sync Gagal
{{ $r['name'] }} ({{ $r['host'] }}:{{ $r['port'] }}) {{ number_format((int) $r['total'], 0, ',', '.') }} {{ number_format((int) $r['paired'], 0, ',', '.') }} {{ number_format((int) $r['unpaired'], 0, ',', '.') }} {{ number_format((int) $r['sync_success'], 0, ',', '.') }} {{ number_format((int) $r['sync_failed'], 0, ',', '.') }}
Daftar User Hotspot
Username Profile Status Aksi
Klik "Load User" untuk mengambil data dari router.
Form User Hotspot
User MikroTik Belum Dipasangkan
Pilih pelanggan lalu klik pasangkan.
0 dipilih
Pilih Username Profile Comment Status Pasangkan Cepat
Klik "Load User" untuk melihat user yang belum dipasangkan.
@endsection @section('scripts') @endsection