{%- macro label(state) -%} {% set label = 'sylius.ui.' ~ state %} {% set state_badge = { (constant('Sylius\\Component\\Core\\OrderPaymentStates::STATE_AWAITING_PAYMENT')): 'bg-blue-lt', (constant('Sylius\\Component\\Core\\OrderPaymentStates::STATE_PARTIALLY_AUTHORIZED')): 'bg-azure-lt', (constant('Sylius\\Component\\Core\\OrderPaymentStates::STATE_AUTHORIZED')): 'bg-indigo-lt', (constant('Sylius\\Component\\Core\\OrderPaymentStates::STATE_PARTIALLY_PAID')): 'bg-yellow-lt', (constant('Sylius\\Component\\Core\\OrderPaymentStates::STATE_CANCELLED')): 'bg-orange-lt', (constant('Sylius\\Component\\Core\\OrderPaymentStates::STATE_PAID')): 'bg-green-lt', (constant('Sylius\\Component\\Core\\OrderPaymentStates::STATE_PARTIALLY_REFUNDED')): 'bg-muted-lt', (constant('Sylius\\Component\\Core\\OrderPaymentStates::STATE_REFUNDED')): 'bg-purple-lt', } %} {{ label|trans|title }} {%- endmacro -%}