{% extends 'admin/hub/layout.html.twig' %} {% set hub_title = 'Bons de livraison' %} {% set hub_breadcrumbs = [ { label: 'Bons de livraison', url: path('app_bl_hub') }, { label: 'Livraisons a valider' } ] %} {% block title %}Livraisons a valider — Mercuriale.io{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block hub_content %} {% if bons_livraison is empty %}

Livraisons a valider

{% include 'components/_empty_state.html.twig' with { icon: 'fa-check-circle', title: 'Aucune livraison en attente', description: 'Tous les bons de livraison ont ete traites.', action_label: 'Scanner un bon', action_url: path('app_bl_upload'), action_icon: 'fa-camera' } only %}
{% else %}
{# Left panel — BL list #}

Livraisons a valider

{{ bons_livraison|length }}
{% for bl in bons_livraison %}
{{ bl.numeroBl ? 'BL ' ~ bl.numeroBl : 'BL #' ~ bl.id }}
{{ bl.dateLivraison|date('d/m/Y') }} {{ bl.fournisseur ? bl.fournisseur.nom : 'Inconnu' }}
{% endfor %}
{# Dotted separator #} {# Right panel — BL detail #}
{% if selected_bl %} {% include 'app/bon_livraison/_pending_detail.html.twig' with { bonLivraison: selected_bl, alertCount: selected_alert_count } %} {% else %}

Selectionnez un bon de livraison

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