{% sw_extends '@Storefront/storefront/page/product-detail/properties.html.twig' %}
{% block page_product_detail_properties_table %}
<table class="table product-detail-properties-table">
<tbody>
{# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
{% if page.product.productNumber %}
<tr class="properties-row">
<th class="properties-label">{{"detail.productNumber"|trans}}:</th>
<td class="properties-value">{{page.product.productNumber}}</td>
</tr>
{% endif %}
{% for group in page.product.sortedProperties %}
{% block page_product_detail_properties_table_row %}
<tr class="properties-row">
{% block page_product_detail_properties_item_label %}
<th class="properties-label">{{ group.translated.name|e }}:</th>
{% endblock %}
{% block page_product_detail_properties_item_value %}
<td class="properties-value">
{% apply spaceless %}
{% for option in group.options %}
{% set i = ( i | default(0) ) + 1 %}
<span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
{% endfor %}
{% endapply %}
</td>
{% endblock %}
</tr>
{% endblock %}
{% endfor %}
</tbody>
</table>
{% endblock %}