{#<span>template {{ field[0].objet }}</span>#}
{#{{ dump(field.value) }}#}
{% for key, value in field.value %}
{% if 'Préparation' in value.avancement %}
<span title="{{ value.avancement }}" class="badge badge-danger">
P{{ key + 1 }} - {{ value | trim(' - Préparation devis', 'right') }}
</span>
{% elseif 'envoyé' in value.avancement %}
<span title="{{ value.avancement }}" class="badge badge-warning">
P{{ key + 1 }} - {{ value | trim(' - Devis envoyé', 'right') }}
</span>
{% elseif 'validée' in value.avancement %}
<span title="{{ value.avancement }}" class="badge badge-success">
P{{ key + 1 }} - {{ value | trim(' - Commande validée', 'right') }}
</span>
{% elseif 'soldée' in value.avancement %}
<span title="{{ value.avancement }}" class="badge badge-secondary">
P{{ key + 1 }} - {{ value | trim(' - Commande soldée', 'right') }}
</span>
{% else %}
<span title="{{ value.avancement }}" class="badge badge-secondary">
P{{ key + 1 }} - {{ value | trim(' - Commande soldée', 'right') }}
</span>
{% endif %}
{# P{{ key + 1 }} - {{ value }}#}
{# </span>#}
{% endfor %}