{{singleStep.stepType.name}}
{% if singleStep.isCompleted != true %}
{{"waiting"|trans({},"admin")}}
{% else %}
{{"done"|trans({},"admin")}}
{% endif %}
{% if singleStep.stepType.isBatchTracking and shipment.trackingSteps.last == singleStep %}
{% for singleShipmentItem in shipment.shipmentItems %}
{% set textStatus = "text-danger" %}
{% if singleShipmentItem.getAllTrackedChildren|length == singleShipmentItem.shipmentItemChildren|length %}
{% set textStatus = "text-success" %}
{% endif %}
{% for singleChild in singleShipmentItem.allTrackedChildren %}
-
{{singleChild.barcode}}
{% endfor %}
{% endfor %}
{% endif %}
{% if shipment.trackingSteps.last == singleStep %}
{% if shipment.trackingSteps.last.stepType.fieldsToEdit|length > 0 %}
{% if singleStep.stepType.isBatchTracking %}
{% if
shipment.currentStepTrackedChildren|length == shipment.shipmentItemsChildren|length
%}
{% set urlEdit = ea_url()
.setController('App\\Flexy\\ShopBundle\\Controller\\Shipping\\ShipmentCrudController')
.setAction('edit')
.setEntityId(shipment.id)
%}
{{"Edit shipment"|trans({},"admin")}}
{% endif %}
{% else %}
{% set urlEdit = ea_url()
.setController('App\\Flexy\\ShopBundle\\Controller\\Shipping\\ShipmentCrudController')
.setAction('edit')
.setEntityId(shipment.id)
%}
{{"Edit shipment"|trans({},"admin")}}
{% endif %}
{% else %}
{% endif %}
{% else %}
{% endif %}