{% sw_extends '@Storefront/storefront/component/delivery-information.html.twig' %}
{% block component_delivery_information %}
{{ parent() }}
{# @var product \Shopware\Core\Content\Product\ProductEntity #}
{% if page is defined and page.product is defined and page.product != null %}
{% set product = page.product %}
{% endif %}
{% block component_delivery_information_free_seats %}
{% if product.translated.customFields.loyxx_seminar %}
<p class="delivery-information delivery-available">
{% block component_delivery_information_free_seats_icon %}
{% sw_icon 'sofa' style { size: 'xs'} %}
{% endblock %}
{% block component_delivery_information_free_seats_content %}
{% block component_delivery_information_free_seats_content_title %}
{{ "loyxx.labels.freeSeats"| trans |sw_sanitize }} :
{% endblock %}
{% block component_delivery_information_free_seats_content_value %}
{% if product.availableStock > 0 %} {{ product.availableStock }} {% if product.packUnit %} {{ product.packUnit }}{% endif %} {% else %} 0 {% endif %}
{% endblock %}
{% endblock %}
</p>
{% endif %}
{% endblock %}
{% endblock %}