{% extends get_base_template() %}

{#
{% block nav_sidebar_widget %}
    {% include 'default/components/sidebar/navSidebarWidget.html.twig' %}
{% endblock %}
#}



{% block body %}
    <section class="clearfix">


{% if(page.slug == "ferienwohnungen")%}
    {% if lodgingGroups is not empty %}
        {% for lodgingGroup in lodgingGroups %}
            <h1>{{ lodgingGroup.name }}</h1>

             <div class="row">
                 {% if lodgingGroup.lodgings is not empty %}
                    {% for lodging in lodgingGroup.lodgings  %}
                        {% include 'default/components/pageLodgingBox.html.twig' %}
                    {% endfor %}
                 {% endif %}
             </div>

          {% endfor %}
    {% endif %}
{% else %}

  <h1>{{ page.pagetitle|default(page.title) }}</h1>

        {#{% for i in 0..page.children|length//3 %}#}
        <div class="row">
            {% for child_page in page.children if child_page.status == 1 %}

                {% include 'default/components/pageBox.html.twig' %}

            {% endfor %}
        </div>


{% endif %}


    </section>

    <section class="clearfix">
        {{ page.content|raw|keywords }}
    </section>
{% endblock %}


      