{% sw_extends '@Storefront/storefront/component/delivery-information.html.twig' %}
{# Anfang geƤnderter Block #}
{% block component_delivery_information %}
{# @var product \Shopware\Core\Content\Product\ProductEntity #}
{% if page is defined and page.product is defined %}
{% set product = page.product %}
{% endif %}
<div class="product-delivery-information">
{% if context.customer %}
{% if product.stock >= 1 %}
{% block component_delivery_information_available %}
<link itemprop="availability" href="http://schema.org/InStock"/>
<p class="delivery-information delivery-available">
<span class="delivery-status-indicator bg-success"></span>
{{ "proc.detail.deliveryTimeAvailable"|trans|sw_sanitize }}
</p>
{% endblock %}
{% else %}
{% block component_delivery_information_restock %}
<link itemprop="availability" href="http://schema.org/LimitedAvailability"/>
<p class="delivery-information delivery-restock">
<span class="delivery-status-indicator bg-warning"></span>
{{ "proc.detail.deliveryTimeNotAvailable"|trans|sw_sanitize }}
</p>
{% endblock %}
{% endif %}
{% endif %}
</div>
{% endblock %}
{# Ende geƤnderter Block #}