{% set disable_breadcrumbs = false %}
{% set load_reviews_no_delay = true %}
{% set footer_class = 'mobileMenuAttached' %}

{% extends 'layouts/default.twig' %}

{% if item.form_id is not empty and item.form_id != '0' and item.form_id != 0 %}
    {% set has_assessment_form = true %}
{% else %}
    {% set has_assessment_form = false %}
{% endif %}

{% set price_prefix_text = 'From' %}

{% set item_high_price = '' %} {# <----- Needs to get the high price dynamically #}
{% set show_item_high_price = false %} {# <----- Needs to be true for the high price to show (eg. £20 - £60 #}

{#{% set assessment_completed = true %}#}

{% block body_class %}
    {% if product_overlay_enabled %}
        mobileOverlayEnabled
    {% else %}
        mobileOverlayDisabled
    {% endif %}
{% endblock %}

{% block content %}


    {{ hooks_do_action('item_full_template') }}



    <div class="itemWrap js_itemWrap">


        {% include 'navigation/breadcrumbs.twig' with {
            hide_logos: false,
            class: ''
        } %}

        <div class="wrapper productTopWrapper">

            <div class="product">

                <div class="productLeft">

                    <product-images
                            :images="{{ item.images|json_encode }}"
                            :lazy-load="false"
                            size="large"
                            :show-arrows="false"
                            :show-thumbs="true"
                            :allow-zoom="true"
                            :show-disclaimer="true"
                    ></product-images>

                </div> <!-- .productLeft -->


                <div class="productRight">

                    {% include 'shop/item/partials/validation.twig' %}

                    {% include 'shop/item/partials/product_sidebar.twig' with {
                        product: item,
                        in_stock: item.isInStock(),
                        from_price: item.from_price,
                        basket_button_data: item.basket_button_data,
                        out_of_stock_url: route('outofstocknotify-signup'),
                        delivery_cutoff: order_until['timer'] ?? 0,
                        has_full_description: tabs ? true : false,
                        show_doctor_warnings: false
                    } %}


                </div> <!-- .productRight -->

            </div> <!-- .productTop -->

        </div> <!-- .wrapper -->


        {% include 'includes/page_blocks/sidebar_tabs.twig' with {
            class: 'productTabs itemTabSection',
            id: 'productFullDescription',
            warning: item_warning,
            disable_tab_titles: true,
            tabs: tabs
        }%}


        {% if item.faqs is not empty %}
            {% include 'includes/pages/faqs/faqs_block.twig' with {
                faqs: item.faqs,
                compact: true
            }%}
        {% endif %}




        {#
        {% set featured_products_list = featured_products_vue() %}

        {% if featured_products_list is not empty %}

            {% include 'shop/item/featured_products.twig' with {
                featured_products: featured_products_list,
                featured_title: 'More treatments'
            }%}

        {% endif %}
        #}

        {% set rendered = render_entity_blocks('item', item.id) %}
        {% if rendered %}
            {{ rendered | raw }}
        {% endif %}

    </div> <!-- .itemWrap -->



    {#
    {% set main_category = item.getMainCategory() %}
    #}


{% endblock %}

{% block rich_card_schemas %}
    {% if item.seo_schema_cache != '' %}
        <script type="application/ld+json">{{ item.seo_schema_cache|raw }}</script>
    {% endif %}
    {{ hooks_do_action('contact_page_schema', contact) }}
{% endblock %}
