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
| Router |
Total |
Paired |
Belum |
Sync OK |
Sync Gagal |
@foreach($perRouter as $r)
| {{ $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, ',', '.') }} |
@endforeach