{% set history = field.value|sort((a, b) => b.createdAt <=> a.createdAt) %}
{% if history is empty %}

Aucun historique.

{% else %} {% for entry in history %}
{{ entry.status }} {{ entry.createdAt|date('d/m/Y à H:i') }}
{% if entry.changedBy %}
Par {{ entry.changedBy }}
{% endif %}
{% endfor %} {% endif %}