{% include 'app_header.html' %}

Sync Management

Kelola perangkat, profile, dan voucher secara terpusat.

{{ counts.get('available', 0) }}
Tersedia
{{ counts.get('sold', 0) }}
Terjual
{{ counts.get('used', 0) }}
Pakai
{{ counts.get('expired', 0) }}
Kedaluwarsa
{{ active_users }}
Online (RouterOS)

Sites

{% if sites %}
{% for s in sites %}
{{ s.code }} — {{ s.name }} {% if s.area %}({{ s.area }}){% endif %}
{{ "Aktif" if s.is_active else "Non-aktif" }}
{% endfor %}
{% else %}

Belum ada site.

{% endif %}

Device Sync

{% if devices %}
{% for dev in devices %} {% endfor %}
{% else %}

Tidak ada device aktif.

{% endif %}

Hotspot Profile & Voucher

Manajemen profil hotspot, harga, dan pembuatan voucher sekarang dilakukan di halaman khusus.

Buka Manajemen Voucher →
{% endif %}

Dompet Digital Neo

Top-up via dompet digital. Komisi agen 20% otomatis tercatat.

Riwayat Komisi Agen

{{ total_commission or 0 }}
Total Komisi (Rp)
{{ (agents or [])|length }}
Agen Aktif
{{ active_users or 0 }}
User Online (RouterOS)
{% for a in (agents or []) %} {% endfor %}
Agen Komisi Status
{{ a.name }} ({{ a.code or '-' }}) Rp{{ (a.commission_rate or 0) }}% Aktif

Voucher List (QR Codes)

{% for v in vouchers %} {% set badge = {'available': 'bg-emerald-500/10 text-emerald-400', 'sold': 'bg-amber-500/10 text-amber-400', 'used': 'bg-slate-500/10 text-slate-400', 'expired': 'bg-red-500/10 text-red-400'}.get(v.status, 'bg-slate-500/10 text-slate-400') %}
QR {{ v.code }}
{{ v.code }} {{ v.status }} {% if v.sync_status == 'synced' %} RouterOS ✓ {% else %} Sync pending {% endif %}
{{ v.profile }} · Rp {{ v.price }} {% if v.agent_id %}· Agen: {{ v.agent.name if v.agent else v.agent_id }}{% endif %} {% if v.batch_id %}· Batch: {{ v.batch.batch_code if v.batch else v.batch_id }}{% endif %}
{% if v.comment %}
💬 {{ v.comment }}
{% endif %}
{% if v.status == 'available' %}
{% endif %}
{% endfor %}
← Dashboard