{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% set urlEditStatusPayment = ea_url().setController("App\\Flexy\\FrontBundle\\Themes\\IlaveU\\Controller\\ShopAdmin\\Order\\ChangeStatusOrderPaymentCrudController") .setAction("edit") .setEntityId(entity.instance.id) %} {% if is_granted("ROLE_ADMIN") or is_granted("ROLE_SHIPPING_AGENT") %} {% endif %} {% if entity.instance.status == "canceled" %} Annulé {% elseif entity.instance.status == "paid" %} Réglé {% else %} Non réglé {% endif %} {% if is_granted("ROLE_ADMIN") or is_granted("ROLE_SHIPPING_AGENT") %} {% endif %}