{% sw_extends '@loyxxfullwidthproductlisting/storefront/component/product/card/additional-details.html.twig' %}


{% block component_product_box_price_details_list_item_manufacturer %}
    {% if config.isManufacturerEnabled.value %}
        {% set manufacturer = product.manufacturer ?? searchManufacturer([product.manufacturerId], context) %}
        {% set mediaCollection = searchMedia([manufacturer.mediaId], context.context) %}
        {% set logo = mediaCollection.get(manufacturer.mediaId) %}
        {% if manufacturer is not empty %}
            <li class="product-detail-manufacturer-container">
                <a href="{{ manufacturer.link }}"
                   class="product-detail-manufacturer-link"
                   title="{{ manufacturer.translated.name }}">

                    {% if manufacturer.mediaId %}
                        <img src="{{ logo.url }}"
                             class="product-rice-details-manufacturer-logo {{ manufacturer.translated.name|replace({' ': "-", '.': "", ',': ""}) }} d-block mb-3"
                             alt="{{ manufacturer.translated.name }}"/>
                    {% endif %}
                </a>
            </li>
        {% endif %}
    {% endif %}
{% endblock %}

{% block component_product_box_price_details_listing_properties %} {% endblock %}

{% block component_product_box_price_details_list_item_availability %} {% endblock %}

{% block component_product_box_price_details_list_item_delivery_time %} {% endblock %}
