{% set title = title|default('') %}
{% set settings = realty_settings() %}
{% if not settings.planningsIsHidden %}
<div class="index-page__block">
{% if settings.realtyViewType == 10 %}
{% set viewType = '_filter-top' %}
{% elseif settings.realtyViewType == 20 %}
{% set viewType = '_filter-side' %}
{% elseif settings.realtyViewType == 30 %}
{% set viewType = '_filter-side-alt' %}
{% elseif settings.realtyViewType == 40 %}
{% set viewType = '_plannings-card' %}
{% endif %}
<div class="container container_spacer">
<div class="plannings {{ viewType }}">
{% if settings.realtyViewType != 40 %}
<div class="plannings__title h1 text__black-text">{{ title }}</div>
{% endif %}
<script
data-filter-metadata
data-filter-key="{{ realtyFilter.key }}"
type="application/json">
{{ realtyFilter|json_encode|raw }}
</script>
<div
class="plannings__view-type {{ viewType }}
{% if settings.realtyViewType != 40 %}
grid-block
{% endif %}"
>
{% if settings.realtyViewType != 40 %}
<div class="plannings__filter-wrap">
{% include '_parts/plannings/_plannings-filter.html.twig' %}
</div>
<div class="plannings__plannings-list-wrap">
{% include '_parts/plannings/_plannings-list.html.twig' %}
</div>
{% else %}
{% include '_parts/plannings/_plannings-card.html.twig' %}
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}