{% sw_extends '@Storefront/storefront/component/listing/filter/filter-boolean.html.twig' %}
{% block component_filter_boolean_display_name %}
{{ parent() }}
{% if listing.aggregations.has(name) %}
{% set element = listing.aggregations.get(name) %}
{% endif %}
{% block component_filter_boolean_display_name_count %}
{% if element and element.extensions.aggregationDocCount and element.extensions.aggregationDocCount.docCount > 0 %}
<span class="acris-filter-count acris-filter-count-boolean filter-count-{{ element.id }}"
data-term-count-id="{{ element.id }}"
data-term-count-label-before="{{ "acrisFilter.filter.labelBefore"|trans }}"
data-term-count-label-after="{{ "acrisFilter.filter.labelAfter"|trans }}">
{{ "acrisFilter.filter.labelBefore"|trans }}{{ element.extensions.aggregationDocCount.docCount }}{{ "acrisFilter.filter.labelAfter"|trans }}
</span>
{% endif %}
{% endblock %}
{% endblock %}