{% if show_dummy_data == true %}
    {% set p = {
        'pagedata': {
            'Category 1': [
                {'Question': {'value': 'How do I order a repeat prescription?'}, 'Answer': {'value': '<p>You can order repeat prescriptions online, by phone, or by visiting our pharmacy in person.</p>'}},
                {'Question': {'value': 'What documents do I need for a new prescription?'}, 'Answer': {'value': '<p>Please bring your prescription slip and a form of photo ID.</p>'}}
            ],
            'Category 1 Name': [{'value': 'Prescription Services'}],
            'Category 2': [
                {'Question': {'value': 'Do you provide flu vaccinations?'}, 'Answer': {'value': '<p>Yes, we offer flu vaccinations during flu season. Book online or call to arrange.</p>'}},
                {'Question': {'value': 'What health checks are available?'}, 'Answer': {'value': '<p>We offer blood pressure checks, cholesterol screening, and diabetes monitoring.</p>'}}
            ],
            'Category 2 Name': [{'value': 'Health Services'}],
            'Category 3': [],
            'Category 4': []
        }
    } %}
{% endif %}

<div class="faqsList">


    {% for cat_id in [1,2,3,4] %}

        {% set cat_name = 'Category ' ~ cat_id %}

        {% if p.pagedata[cat_name][0]['Question']['value'] is not empty %}


            {% if p.pagedata[cat_name ~ ' Name'][0]['value'] is not empty %}
                <h2 class="faqTitles">
                    {{ p.pagedata[cat_name ~ ' Name'][0]['value'] }}
                </h2>
            {% endif %}

            {% set open_first = false %}

            {% if cat_id < 2 %}
                {% set open_first = true %}
            {% endif %}

            {% include 'includes/pages/faqs/faq.twig' with {
                faqs: p.pagedata[cat_name],
                open_first: open_first
            }%}


        {% endif %}

    {% endfor %}


</div> <!-- .faqContainer -->
