{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{% if entity.instance.status == "canceled" %}
Annulé
{% elseif entity.instance.shipment %}
{% set urlEditStatusShipping = ea_url().setController("App\\Flexy\\FrontBundle\\Themes\\IlaveU\\Controller\\ShopAdmin\\Order\\ChangeStatusOrderShippingCrudController")
.setAction("edit")
.setEntityId(entity.instance.id)
%}
{% if is_granted("ROLE_ADMIN") or is_granted("ROLE_SHIPPING_AGENT") %}
{% endif %}
{% if entity.instance.shipment.trackingSteps|length == 0 %}
En attente
{% elseif entity.instance.shipment.currentStep %}
{{entity.instance.shipment.currentStep}}
{% else %}
Aucun
{% endif %}
{% if is_granted("ROLE_ADMIN") or is_granted("ROLE_SHIPPING_AGENT") %}
{% endif %}
{% else %}
Aucun
{% endif %}