<%- include('partials/sidebar', { activePage: activePage || 'custom_qr', company }) %>
QR-Custom Payment
Admin Logout
<% if (msg) { %>
<%= msg.text %>
<% } %> <% if (typeof ready !== 'undefined' && !ready) { %>
QR-Custom Payment dinonaktifkan. Aktifkan QRIS Statis (Semi-Otomatis) dan isi QRIS static payload di Pengaturan terlebih dahulu.
<% } %> <% if (typeof ready === 'undefined' || ready) { %>
Buat QR Nominal Custom
<% } %>
Pembayaran masuk
<%= stats.paidCount %>
Rp <%= Number(stats.paidTotal||0).toLocaleString('id-ID') %>
Menunggu (pending)
<%= stats.pendingCount %>
Warning (lewat 20 menit)
<%= stats.warningCount %>
Ditolak / refund
<%= stats.rejectedCount %>
<% if (detail) { %> <% const cqExpired = detail.status === 'expired' || (detail.status === 'pending' && detail.expires_at && new Date(detail.expires_at).getTime() < Date.now()); %>
<%= detail.title %><% if (!cqExpired) { %> — Rp <%= Number(detail.amount_unique||0).toLocaleString('id-ID') %><% } %>
<% if (detail.status === 'paid' || detail.status === 'rejected' || cqExpired) { %>
<% if (cqExpired) { %>QR kedaluwarsa — nominal & QR disembunyikan.<% } else { %>QR tidak aktif — status: <%= detail.status %><% } %>
<% } else { %> QRIS
<% } %>
Status: <%= detail.status %>
<% if (!cqExpired) { %>
Nominal dasar: Rp <%= Number(detail.amount||0).toLocaleString('id-ID') %>
Kode unik: <%= detail.unique_code %>
Nominal bayar: Rp <%= Number(detail.amount_unique||0).toLocaleString('id-ID') %>
<% } %>
Kategori: <%= detail.category || '-' %>
Dibuat: <%= detail.created_at %>
Kedaluwarsa: <%= detail.expires_at || '-' %>
<% if (detail.note) { %>
Catatan: <%= detail.note %>
<% } %>
Link share:
Buka
<% if (detail.status !== 'paid') { %>
<% } %> <% if (detail.status === 'warning') { %>
<% } %> <% if (detail.status !== 'rejected') { %>
<% } %> <% if (cqExpired) { %>
<% } %>
<% } %>
Histori QR Custom
<% if (!rows || rows.length === 0) { %> <% } %> <% rows.forEach(function(r) { %> <% }); %>
JudulKategoriNominalStatusDibuatKedaluwarsaAksi
Belum ada QR custom.
<%= r.title %><% if (r.note) { %>
<%= r.note %>
<% } %>
<%= r.category || '-' %> Rp <%= Number(r.amount_unique||0).toLocaleString('id-ID') %> <%= r.status %> <%= r.created_at %> <%= r.expires_at || '-' %> <% if (r.status !== 'paid' && r.status !== 'rejected') { %>
<% } %> <% if (r.status === 'expired') { %>
<% } %>