{% trans_default_domain 'EasyAdminBundle' %}

<div class="custom-control custom-switch" data-propertyname="{{ field_options.property }}">
    <input type="checkbox" class="custom-control-input" id="customSwitch{{ item.id }}-{{ field_options.property }}" {{ value == true ? 'checked' }}>
    <label class="custom-control-label" for="customSwitch{{ item.id }}-{{ field_options.property }}">{{ 'label.true'|trans }}</label>
</div>
{#

{% if value == true %}
        <span class="badge badge-success">{{ 'label.true'|trans }}</span>
    {% else %}
        <span class="badge badge-danger">{{ 'label.false'|trans }}</span>
    {% endif %}
#}
