{% extends 'admin/base.html.twig' %} {% block title %}Mes factures{% endblock %} {% block body %}

Mes factures

{% if invoices|length > 0 %}
{% for invoice in invoices %} {% endfor %}
Numéro Date Description Montant Statut Actions
{{ invoice.invoiceNumber }} {{ invoice.issueDate|date('d/m/Y') }} {% if invoice.subscription %} Abonnement {{ invoice.subscription.plan.name }}
{{ invoice.subscription.billingInterval == 'yearly' ? 'Annuel' : 'Mensuel' }} {% else %} Facture {% endif %}
{{ invoice.totalAmount|number_format(2, ',', ' ') }} {{ invoice.currency }} {% if invoice.status == 'paid' %} Payée {% if invoice.paidAt %}
{{ invoice.paidAt|date('d/m/Y') }} {% endif %} {% elseif invoice.status == 'pending' %} En attente
Échéance: {{ invoice.dueDate|date('d/m/Y') }} {% elseif invoice.status == 'overdue' %} En retard
{{ invoice.dueDate|date('d/m/Y') }} {% elseif invoice.status == 'canceled' %} Annulée {% elseif invoice.status == 'refunded' %} Remboursée {% endif %}
{% else %}

Vous n'avez aucune facture pour le moment.

{% endif %}
{% endblock %}