{% extends "base.html" %} {% block title_extra %} โ€” {{ _('invites_title') }}{% endblock %} {% block content %}

๐Ÿ”— {{ _('invites_title') }}

{{ _('invites_hint') }}

{% if not xui_has_sub_url and xui_configured %}
โš ๏ธ
{{ _('invite_sub_url_missing_title') }}
{{ _('invite_sub_url_missing_hint') }}
{% endif %}
๐Ÿ”—
{{ _('invites_empty') }}
{{ _('invites_empty_desc') }}
{% for inv in invites %}
{{ inv.name }}
{% if inv.protocol == 'xui' %} 3x-ui ยท {% for s in xui_servers if s.id == inv.xui_panel_id %}{{ s.name }}{% else %}{{ _('xui_server_select_label') }}{% endfor %} ยท inbound #{{ inv.xui_inbound_id or 'โ€”' }} {% else %} {{ inv.protocol }} {% endif %}
{% if inv.available %} {{ _('invite_active') }} {% elif inv.exhausted %} {{ _('invite_exhausted') }} {% else %} {{ _('disabled') }} {% endif %}
{{ _('invite_uses') }}
{% if inv.unlimited %}{{ inv.used_count }} / โˆž{% else %}{{ inv.used_count }} / {{ inv.max_uses }}{% endif %}
{{ _('invite_duration_short') }}
{% if inv.duration_days %}{{ inv.duration_days }} {{ _('days_short') }}{% else %}โˆž{% endif %}
{% endfor %}
{% endblock %}