{{#each categories}}
  <div class="category-item">
    <div class="category-item__heading">
      <button class="btn btn-secondary btn-toggle icon collapsed" data-toggle="collapse" data-target="#{{id}}" aria-expanded="false" aria-controls="{{id}}">
        <span class="btn__text">
          <i class="far fa-angle-up"></i>
        </span>
      </button>
      <a href="#" class="category-item__title">{{label}}</a>&nbsp;<span class="filter-quantity">({{quantity}})</span>
    </div>
    <div class="collapse" id="{{id}}">
      {{#each sub-categories}}
        <div class="category-item">
          <div class="category-item__heading">
            <button class="btn btn-secondary btn-toggle icon collapsed" data-toggle="collapse" data-target="#{{id}}" aria-expanded="false" aria-controls="{{id}}">
              <span class="btn__text">
                <i class="far fa-angle-up"></i>
              </span>
            </button>
            <a href="#" class="category-item__title">{{label}}</a>&nbsp;<span class="filter-quantity">({{quantity}})</span>
          </div>
          <div class="collapse" id="{{id}}">
            {{#each sub-categories}}
              <div class="category-item">
                <div class="category-item__heading">
                  <button class="btn btn-secondary btn-toggle icon collapsed" data-toggle="collapse" data-target="#{{id}}" aria-expanded="false" aria-controls="{{id}}">
                    <span class="btn__text">
                      <i class="far fa-angle-up"></i>
                    </span>
                  </button>
                  <a href="#" class="category-item__title">{{label}}</a>&nbsp;<span class="filter-quantity">({{quantity}})</span>
                </div>
                <div class="collapse" id="{{id}}">
                  {{#each sub-categories}}
                    <div class="category-item">
                      <div class="category-item__heading category-item__heading_small">
                        <a href="#" class="category-item__title">{{label}}</a>&nbsp;<span class="filter-quantity">({{quantity}})</span>
                      </div>
                    </div>
                  {{/each}}
                </div>
              </div>
            {{/each}}
          </div>
        </div>
      {{/each}}
    </div>
  </div>
{{/each}}
