{% extends 'admin/base.html.twig' %} {% block title %}Factures - Boutique{% endblock %} {% block breadcrumb %}Boutique Factures{% endblock %} {% block body %}
{% for type in ['success', 'error', 'warning'] %} {% for message in app.flashes(type) %} {% endfor %} {% endfor %}

Factures {% if invoices is not empty %} {{ invoices|length }} {% endif %}

{% if invoices is not empty %}
{% endif %}
{% if invoices is empty %}

Aucune facture pour le moment

{% else %} {# Filters #}
{% for invoice in invoices %} {% endfor %}
N° Facture Date Commande Client Montant Paiement Actions
{{ invoice.invoiceNumber }} {{ invoice.createdAt|date('d/m/Y') }} {{ invoice.order.orderNumber }} {{ invoice.order.customerFullName }}
{{ invoice.order.customerEmail }}
{{ invoice.order.formattedTotal }} {% if invoice.order.paymentMethod == 'stripe' %} CB {% elseif invoice.order.paymentMethod == 'paypal' %} PayPal {% elseif invoice.order.paymentMethod == 'bank_transfer' %} Virement {% else %} {{ invoice.order.paymentMethod|default('-') }} {% endif %}
{# No results message (hidden by default) #}

Aucune facture ne correspond aux filtres

{% endif %}
{# Modal: Delete single invoice #} {% if invoices is not empty %} {# Modal: Delete all invoices #} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% if invoices is not empty %} {% endif %} {% endblock %}