src/Flexy/FrontBundle/Themes/IlaveU/templates/admin/shopadmin/order/field/fullTotalAmount.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 order = entity.instance %}
{% set reductionPromo = 0 %}
{% if order.metaData|length > 0 %}
{% set reductionPromo = getMetaDataValue(order.metaData,"applied_cashback_amt") %}
{% endif %}
<span class="badge badge-success" >
<b>
{% if reductionPromo %}
{{ order.fullTotalAmount - reductionPromo }} {{settings.get.currency}}
{% else %}
{{ order.fullTotalAmount }} {{settings.get.currency}}
{% endif %}
</b>
</span>