{# Set this on the page controller to hide products, if required #}
{# {% set hide_menu_products = true %} #}
{% set hide_pharmacy_items = true %}


{% if items|length > 0 %}


        <div class="dropdownWrap">


            <ul class="{{ options.container_class }}">
        
                {% for item in items %}
                    

                    {% if item.published is not empty %}
                     
                        <mtc-menu
                                :parent-menu="{{ item | json_encode }}"
                                css-class="{{ item.css_class }}"
                                class="{{ item.css_class }}"
                        >

                            <a
                                    {% if item.target is not empty %}
                                        target="{{ item.target }}"
                                    {% endif %}
                                    href="{{ item.url }}"
                            >
                                {{ item.name|truncate(24, '...')|raw }}

                                {% if item.subs | length > 0 %}
                                    <i class="menuIcon">
                                        {{ file_get_contents(settings.SITE_PATH ~ "/sites/" ~ settings.SITE ~ "/images/icons/chevron.svg")|raw }}
                                    </i>
                                {% endif %}
                            </a>

                        </mtc-menu>
                    {% endif %}
                                
        
                {% endfor %}
            </ul>
        
    
        </div> <!-- .dropdownWrap -->
{% endif %}
