{% sw_extends '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}
{% block page_product_detail_price_content %}
{% set listPrice = price.listPrice %}
<p class="product-detail-price{% if listPrice.percentage > 0 %} with-list-price{% endif %}">
{{ price.unitPrice|currency }}
<p class="mwst">{{ "inkl. Mwst" }}</p>
</p>
{% if listPrice.percentage > 0 %}
{% block page_product_detail_was_price %}
{% block page_product_detail_was_price_badge %}
<span class="list-price-badge">%</span>
{% endblock %}
{% block page_product_detail_was_price_wrapper %}
<span class="product-detail-list-price-wrapper">
{{"listing.beforeListPrice"|trans|trim}}
<span {% if not ("listing.beforeListPrice"|trans|length > 0 or "listing.afterListPrice"|trans|length > 0) %}class="list-price-price"{% endif %}>
{{ listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}
</span>
{{"listing.afterListPrice"|trans|trim}}
<span class="list-price-percentage">{{ "detail.listPricePercentage"|trans({'%price%': listPrice.percentage })|sw_sanitize }}</span>
</span>
{% endblock %}
{% endblock %}
{% endif %}
{% endblock %}
{% block page_product_detail_price_block_table_head %}
<thead class="product-block-prices-head">
{% block page_product_detail_price_block_table_head_inner %}
<tr class="product-block-prices-row">
<th scope="col" class="product-block-prices-cell">
{{ "Ihr Preisvorteil"|upper|sw_sanitize }}
</th>
<th scope="col" class="product-block-prices-cell">
</th>
{% if page.product.calculatedPrice.referencePrice %}
<th scope="col" class="product-block-prices-cell">
{{ "detail.dataColumnReferencePrice"|trans|sw_sanitize }}
</th>
{% endif %}
</tr>
{% endblock %}
</thead>
{% endblock %}