{foreach $body.dynamic_filter.filter->getSectionsByLevel(0, 2) as $sections}
   <div class="filter-row filter-params filter-sections">
      <p class="filter-label">{t}Kategorie{/t}</p>
      <input type="hidden" name="dynamic_filter[sectionsByLevel][0][2][]" data-filter-input="sections_filter">
      <div data-filter-sections>
         {foreach $sections as $section}
            <label class="custom-checkbox custom-control" for="filter_section[0][2][{$section.id}]">
               <input class="custom-control-input" type="checkbox" name="dynamic_filter[sectionsByLevel][0][2][]" value="{$section.id}"
                      id="filter_section[0][2][{$section.id}]" data-filter-input="sections_filter">
               <span class="custom-control-indicator"></span>
               <span class="custom-control-text">
                  {$section.name}
                  <small>(<span class="filter-count" data-filter-count="{$section.id}">{$section.count}</span>)</small>
               </span>
            </label>
         {/foreach}
      </div>
   </div>
{/foreach}
