{% if orders|length > 0 %}

Old orders

{% set index = 1 %} {% for order in orders %} {% set index = index + 1 %} {% endfor %}
# Shipping Status Date Link
{{ index }}. {{ order.shippingStatus }} {{ order.createdAt|date("d/m/Y") }} {% if order.batch %} {% endif %}
{% endif %} {% if lines|length > 0 %}

Old lines

{% set index = 1 %} {% for line in lines %} {% set index = index + 1 %} {% endfor %}
# Status Date Live
{{ index }}. {{ line.status.name }} {{ line.createdAt|date("d/m/Y") }} {% if line.live %} {% endif %}
{% endif %}