{% extends "base.html" %} {% block content %}

Vouchers

Browse vouchers by status, revoke active sessions, or issue custom vouchers for staff, comped access, or recorded cash sales.

{% if flash_msg %}
{{ flash_msg }} {% if flash_code %}
Code: {{ flash_code }} tap to select
{% endif %}
{% endif %} {% if error_msg %}
{{ error_msg }}
{% endif %}

Search

{% if search %} Clear {% endif %}

Filter by Status

{% set chips = [('all', 'All'), ('active', 'Active'), ('paused', 'Paused'), ('pending', 'Pending'), ('expired', 'Expired'), ('revoked', 'Revoked')] %} {% for slug, label in chips %} {{ label }} {{ counts[slug] }} {% endfor %}
{% if rows %}
{% for v in rows %} {% endfor %}
Code Status Source Minutes Paid MAC Created Actions
{{ v.code }} {{ v.status }} {{ v.source }} {{ v.minutes_used }}/{{ v.minutes_total }}m
valid {{ v.validity_minutes }}m
₱{{ v.paid_pesos }} {% if v.mac %} {{ v.mac }} {% else %} {% endif %} {{ v.created }} {% if v.status in ['active', 'paused', 'pending'] %}
{% else %} {% endif %}
{% if total > 0 %} {% set page_start = offset + 1 %} {% set page_end = offset + (rows|length) %} {% set base_qs = '?status=' ~ status_filter %} {% if search %}{% set base_qs = base_qs ~ '&q=' ~ search %}{% endif %} {% endif %} {% else %}
{% if search %} No vouchers match "{{ search }}"{% if status_filter != 'all' %} in {{ status_filter }}{% endif %}.
Try a different code prefix or MAC fragment. {% elif status_filter == 'all' %} No vouchers yet.
They'll appear here as customers drop coins. {% else %} No {{ status_filter }} vouchers right now. {% endif %}
{% endif %}
{% endblock %}