{% extends 'admin/hub/layout.html.twig' %} {% set hub_title = 'Archive factures' %} {% set hub_breadcrumbs = [ { label: 'Fournisseurs', url: path('app_fournisseurs_hub') }, { label: 'Factures', url: path('app_factures_hub') }, { label: 'Archive' } ] %} {% block title %}Archive factures — Mercuriale.io{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block hub_content %} {% if factures is empty %}

Archive

{% include 'components/_empty_state.html.twig' with { icon: 'fa-archive', title: 'Aucune facture archivee', description: 'Les factures payees, refusees et contestees apparaitront ici.', action_label: 'Retour', action_url: path('app_factures_hub'), action_icon: 'fa-arrow-left' } only %}
{% else %}

Archive

{{ total }}
{% for facture in factures %}
{{ facture.numeroFacture ?? facture.fichierOriginalNom ?? 'Facture' }} {% include 'components/_status_badge.html.twig' with { label: facture.statut.label, variant: facture.statut.color, size: 'xs' } only %}
{{ facture.fournisseur ? facture.fournisseur.nom : (facture.fournisseurNom ?? '—') }} {{ facture.dateEmission ? facture.dateEmission|date('d/m/Y') : '—' }}
{% if facture.montantTtc %} {{ facture.montantTtc|number_format(2, ',', ' ') }} € TTC {% endif %}
{% endfor %}
{# Pagination #} {% if total_pages > 1 %}
{% if page > 1 %} {% endif %} {{ page }} / {{ total_pages }} {% if page < total_pages %} {% endif %}
{% endif %}
{% if selected %} {% include 'app/facture/_archive_detail.html.twig' with { facture: selected, transitions: [] } %} {% else %}

Selectionnez une facture

{% endif %}
{% endif %} {% endblock %}