{% if value == 'open'  %}
    {% set class_badge = 'badge-success' %}
{% elseif value == 'being-processed'  %}
    {% set class_badge = 'badge-warning' %}
{% elseif value == 'closed' %}
    {% set class_badge = 'badge-secondary' %}
{% endif %}

{% if class_badge is defined %}
    <span class="badge {{ class_badge }}">
        {% set trans_value = 'field.Ticket.statusOptions.'~value  %}
        {{ trans_value|trans({}, 'lcshop') }}
    </span>
{% endif %}