{% set title = category.product_list_title ?: 'Treatments' %}
{% set intro_content = category.product_list_subtitle ?: 'Available treatment options for ' ~ category.name ~ '.' %}


{% if category.url_to_category_products | length > 0 %}

    <a href="{{ category.url_to_category_products }}" class="button">View available treatments</a>

{% else %}

    {% if items | length > 0 %}

        {% include 'includes/elements/intro_block.twig' with {
            intro_title: title,
            intro_content: '<p>' ~ intro_content ~ '</p>',
            class: 'landingIntro'
        }%}

        <ul class="itemsBrowse landingItems">

            {% for item in items %}
                
                
                {% include 'shop/item/small.twig' with {
                    item: item,
                    external_image: true,
                    assessment_completed: assessment_completed,
                    show_footer: true
                } %}

            {% endfor %}

        </ul>

    {% else %}

        <div class="emptyListings">

            <h4>We currently have no {{ category.name|lower }} treatments at the moment</h4>
            <p>Please check back soon.</p>

        </div> <!-- .emptyListings -->

    {% endif %}

{% endif %}
