{# Template : All Conditions with Parents #}
{% extends ('layouts/' ~ page_meta.layout) %}

{% block content %}

    {% include 'includes/page_blocks/title_banner.twig' with {
        banner: p.pagedata['Title Banner'][0],
        dark_background: false,
        class: 'howitworksPageHeader',
        class: 'lightBg',
        left_aligned: true
    }%}

    <div class="onlineDoctorCategories noPattern">

        <div class="wrapper">

            <div class="onlineDoctorWrap">

                {% for parent_category in parent_categories %}

                    <div class="parentSections">

                        {% include 'includes/elements/intro_block.twig' with {
                            intro_title: parent_category.name,
                            intro_content: '',
                            class: 'conditionListIntro',
                            title_link: parent_category.url
                        }%}

                        <div class="subCategoryWrapper">

                            {% include 'shop/category/card_list.twig' with {
                                categories: parent_category.sub_categories
                            } %}

                        </div> <!-- .subCategoryWrapper -->

                    </div> <!-- .parentSections -->

                {% endfor %}

            </div> <!-- .onlineDoctorWrap -->

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

    </div> <!-- .onlineDoctorCategories -->


{% endblock %}
