{# ───────────────────── Filtres ───────────────────── #}
{# Vaccin #}
{# Période #}
{# Actions #}
Réinitialiser {# Export #} Excel PDF
{# ───────────────────── Tableau ───────────────────── #}
{% if data|length %}
{% for e in data %} {# Vaccin + tooltip complet #} {# Stock final badge #} {# Taux de perte #} {% endfor %}

Vaccin

Stock init.

Reçus

Utilisés

PCV

Périmés

Autres

Stock fin.

Flacons

Vaccinés

Perte

Jours rupture
{{ icofont('test-tube') }} {{ e.vaccine.shortName }}
{{ e.stockStart }} {{ e.totalReceived }} {{ e.totalUsed }} {{ e.totalPCV }} {{ e.totalExpired }} {{ e.otherLosses }} {% set c = e.stockEnd < 1 ? 'danger' : (e.stockEnd <= 10 ? 'warning' : 'success') %} {{ e.stockEnd }} {{ e.vialsOpened }} {{ e.totalVaccinations }} {% set r = e.lossRate %} {% set rc = r > 30 ? 'danger' : (r > 10 ? 'warning' : 'success') %} {{ r is not null ? r ~ '%' : 'N/A' }} {% set d = e.totalDaysOutOfStock %} {% set dc = d > 0 ? 'danger' : 'secondary' %} {{ d is not null ? d : 'N/A' }}
{% else %}
Aucun vaccin trouvé pour les critères indiqués.
{% endif %}
{# /card #}