{% extends 'admin/base.html.twig' %} {% block title %}Codes promo{% endblock %} {% block breadcrumb %}Super Admin > Facturation > Codes promo{% endblock %} {% block body %}

Codes promo

Gérez les codes promotionnels pour vos abonnements

Nouveau code promo
{% for message in app.flashes('success') %} {% endfor %}
{{ stats.total }}
Total codes
{{ stats.active }}
Actifs
{{ stats.expired }}
Expirés / Inactifs
{{ stats.totalUses }}
Utilisations totales
{% if promoCodes|length > 0 %}
{% for code in promoCodes %} {% endfor %}
Code Nom Remise Utilisations Période Plans Statut Actions
{{ code.code }}
{{ code.name }}
{% if code.description %} {{ code.description|length > 50 ? code.description|slice(0, 50) ~ '...' : code.description }} {% endif %}
{{ code.discountDescription }}
{{ code.currentUses }} {% if code.maxUses %} / {{ code.maxUses }} {% set usagePercent = (code.currentUses / code.maxUses * 100)|round %}
{% else %} / ∞ {% endif %}
Du {{ code.dateBegin|date('d/m/Y') }}
{% if code.dateEnd %}
Au {{ code.dateEnd|date('d/m/Y') }}
{% else %}
Sans fin
{% endif %}
{% if code.applicablePlans|length == 0 %} Tous {% else %} {% for plan in code.applicablePlans %} {{ plan.name }} {% endfor %} {% endif %} {% set now = "now"|date("U") %} {% if not code.isActive %} Inactif {% elseif code.dateEnd and code.dateEnd|date("U") < now %} Expiré {% elseif code.maxUses and code.currentUses >= code.maxUses %} Épuisé {% else %} Actif {% endif %}
{% else %}
Aucun code promo

Créez votre premier code promo pour offrir des réductions à vos clients.

Créer un code promo
{% endif %}
{% endblock %}