src/Flexy/FrontBundle/Themes/IlaveU/templates/admin/shopadmin/order/field/statusOrderPayment.html.twig line 1
{# @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") %}
<a href="{{urlEditStatusPayment}}" >
{% endif %}
{% if entity.instance.status == "canceled" %}
<span class="badge badge-danger" title="Annulé"><i class="fa-solid fa-ban"></i> Annulé</span>
{% elseif (entity.instance.status == "paid" and entity.instance.fullRestAmount <= 0) or
(entity.instance.fullRestAmount <= 0 and entity.instance.fullTotalAmount > 0)
%}
<span class="badge badge-success" title="Aucun"><i class="fa-solid fa-circle-check"></i> Réglé</span>
{% elseif (entity.instance.status == "partially-paid" or entity.instance.status == "paid") and entity.instance.fullRestAmount > 0 %}
<span class="badge badge-success" title="Aucun"><i class="fa-solid fa-circle-check"></i> Réglé partiellement</span>
{% else %}
<span class="badge badge-danger" title="Aucun"><i class="fa-solid fa-clock-rotate-left"></i> Non réglé</span>
{% endif %}
{% if is_granted("ROLE_ADMIN") or is_granted("ROLE_SHIPPING_AGENT") %}
</a>
{% endif %}