{% block page_product_detail_tabs_inner %}
{% set product = page.product %}
{% if description is not defined %}
{% set description = {
name: "description",
title: "detail.tabsDescription"|trans|sw_sanitize,
template: '@Storefront/storefront/page/product-detail/tabs/description.html.twig'
} %}
{% endif %}
{% if properties is not defined %}
{% if product.sortedProperties|length > 0 %}
{% set properties = {
name: "properties",
title: "detail.tabsProperties"|trans|sw_sanitize,
template: '@Storefront/storefront/page/product-detail/tabs/properties.html.twig'
} %}
{% endif %}
{% endif %}
{% if variants is not defined %}
{% if product.extensions.variants|length > 1 %}
{% set variants = {
name: "variants",
title: "detail.tabsVariants"|trans|sw_sanitize,
template: '@Storefront/storefront/page/product-detail/tabs/variants.html.twig'
} %}
{% endif %}
{% endif %}
{% if downloads is not defined %}
{% if page.MillProductDownloadsTab.files|length > 0 %}
{% set downloads = {
name: "downloads",
title: "detail.tabsDownloads"|trans|sw_sanitize,
template: '@EfbStorefront/storefront/page/product-detail/tabs/downloads.html.twig'
} %}
{% endif %}
{% endif %}
{% if volumeProperties is not defined %}
{% if false %}
{% set volumeProperties = {
name: "volumeProperties",
title: "detail.tabsVolumeProperties"|trans|sw_sanitize,
template: '@Storefront/storefront/page/product-detail/tabs/volume-properties.html.twig'
} %}
{% endif %}
{% endif %}
{% for tab in [description, properties, variants, downloads, volumeProperties]|filter(tab => tab.name and tab.title and (tab.template or tab.raw)) %}
{% set id = "product-detail-tab-" ~ tab.name %}
<div class="product-detail-tab tab-title{% if loop.index == 1 %} active{% endif %}">
<a href="#" class="product-detail-tab tab-toggle" data-toggle="product-detail-tab" data-target="#{{ id }}" data-group="product-detail-tabs-{{ page.product.id }}">
{{ tab.title }}
{% sw_icon 'plus' style {'namespace': 'EfbStorefront'} %}
{% sw_icon 'minus' style {'namespace': 'EfbStorefront'} %}
</a>
</div>
<div class="product-detail-tab tab-content{% if loop.index == 1 %} active{% endif %}" id="{{ id }}">
{% if tab.template is defined %}
{% sw_include tab.template %}
{% elseif tab.raw is defined %}
{{ tab.raw|raw }}
{% endif %}
</div>
{% endfor %}
{% endblock %}