{% for section in subsite.sections|filter(section => section.parent is null and section.isActive and section.showNavigation) %}
<li class="{% if currentslug is defined %}{% if currentslug == section.slug %}active{% endif %}{% endif %}">
{% if section.redirectUrl %}
{% if 'rekenmodule' in section.redirectUrl or 'calcul' in section.redirectUrl %}
{% set rekenmodule = "rekenmodule" %}
{% endif %}
{% else %}
{% set rekenmodule = '' %}
{% endif %}
<a class="u-color-black" href="{% if section.redirectUrl %}{{ section.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail', {'slug': subsite.slug, 'slugdetail': section.slug }) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ section.navigation | raw }}">{{ section.navigation | raw }}</a>
{% if currentslug is defined %}
{% if currentslug == section.slug %}
<ul>
{% for children in section.children|filter(children => children.isActive) %}
<li {% if currentslug2 is defined and currentslug2 == children.slug %}class="active"{% endif %}>
{% if children.redirectUrl %}
{% if 'rekenmodule' in children.redirectUrl or 'calcul' in children.redirectUrl %}
{% set rekenmodule = "rekenmodule" %}
{% endif %}
{% else %}
{% set rekenmodule = '' %}
{% endif %}
{% if 'notaris_frontend_tv' in app.request.get('_route') %}
<a class="u-color-black-60" href="{% if children.redirectUrl %}{{ children.redirectUrl }}{% else %}{{ path('notaris_frontend_tv_detail', {'slug': children.slug }) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% else %}
{% if currentslug == 'other-languages' or currentslug == 'other-languages-1' %}
<a class="u-color-black" href="{{ path('notaris_frontend_subsite_detail', {'slug': subsite.slug, 'slugdetail': children.slug}) }}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% else %}
<a class="u-color-black" href="{% if children.redirectUrl %}{{ children.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail2', {'slug': subsite.slug, 'slugdetail': section.slug, 'slugdetail2': children.slug}) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ children.navigation | raw }}">{{ children.navigation | raw }}</a>
{% endif %}
{% endif %}
{% if currentslug2 is defined and currentslug2 == children.slug %}
<ul>
{% for subchildren in children.children|filter(subchildren => subchildren.isActive) %}
<li {% if currentslug3 == subchildren.slug %}class="active"{% endif %}>
{% if subchildren.redirectUrl %}
{% if 'rekenmodule' in subchildren.redirectUrl or 'calcul' in subchildren.redirectUrl %}
{% set rekenmodule = "rekenmodule" %}
{% endif %}
{% else %}
{% set rekenmodule = '' %}
{% endif %}
{% if currentslug == 'other-languages' or currentslug == 'other-languages-1' %}
<a class="u-color-black" href="{{ path('notaris_frontend_subsite_detail2', {'slug': subsite.slug, 'slugdetail': children.slug, 'slugdetail2': subchildren.slug}) }}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ subchildren.navigation | raw }}">{{ subchildren.navigation | raw }}</a>
{% else %}
<a class="u-color-black" href="{% if subchildren.redirectUrl %}{{ subchildren.redirectUrl }}{% else %}{{ path('notaris_frontend_subsite_detail3', {'slug': subsite.slug, 'slugdetail': section.slug, 'slugdetail2': children.slug, 'slugdetail3': subchildren.slug}) }}{% endif %}" {% if rekenmodule != '' %}data-type="{{rekenmodule}}"{% endif %} title="{{ subchildren.navigation | raw }}">{{ subchildren.navigation | raw }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
</li>
{% endfor %}
<li {% if 'notaris_frontend_subsite_news' in app.request.get('_route') %}class="active"{% endif %}>
<a class="u-color-black" href="{{ path('notaris_frontend_subsite_news', {'subsiteslug': subsite.slug}) }}" title="{{ "sn_actueel" | trans | raw }}">{{ "sn_actueel" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_faq_subsite' in app.request.get('_route') %}class="active"{% endif %}>
<a class="u-color-black" href="{{ path('notaris_frontend_faq_subsite', {'subsiteSlug': subsite.slug}) }}" title="{{ "sn_vragenenantwoorden" | trans | raw }}">{{ "sn_vragenenantwoorden" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_brochures' in app.request.get('_route') %}class="active"{% endif %}>
<a class="u-color-black" href="{{ path('notaris_frontend_brochures', {'subsiteSlug': subsite.slug}) }}" title="{{ "md_publi" | trans | raw }}">{{ "md_publi" | trans | raw }}</a>
</li>
<li {% if 'notaris_frontend_tv_detail' in app.request.get('_route') %}class="active"{% endif %}>
<a class="u-color-black" href="{{ path('notaris_frontend_tv_detail', {'slug': subsite.slug}) }}" title="{{ "sv_notaristv" | trans | raw }}">{{ "sv_notaristv" | trans | raw }}</a>
</li>