<div class="account-nav {{this.mod}}" {{#if (eq @index ../active-index)}}data-active-index="{{active-index}}"{{/if}}>
  <div class="account-nav__toggle accordion accordion_collapsed">
    <div class="accordion__header" role="link" aria-expanded="false">
      {{#each menu}}
        {{#if (eq @index ../active-index)}}
          {{#if icon}}
            <span class="account-nav__icon">
              {{#if customIcon}}
                {{{icon}}}
              {{else}}
                <i class="{{icon}} icon"></i>
              {{/if}}
            </span>
          {{/if}}
        {{/if}}
      {{/each}}
      <span class="accordion__header-text">{{page-name}}</span>
      {{#each menu}}
        {{#if (eq @index ../active-index)}}
          {{#if total}}
            <span class="rewards">{{total}}</span>
          {{/if}}
        {{/if}}
      {{/each}}
      <span class="icon accordion__header-icon">
        <i class="fas fa-angle-up"></i>
      </span>
    </div>
    <div class="accordion__content" aria-describedby="dropdown" style="display: none;">
      <div class="accordion__holder" id="dropdown">
        <div class="account-nav__holder">
          <ul class="account-nav__list">
            {{#each menu}}
              <li class="account-nav__item">
                <a class="account-nav__link" data-index="{{@index}}" href="{{link}}" id="{{id}}">
                  {{#if icon}}
                    <span class="account-nav__icon">
                      {{#if customIcon}}
                        {{{icon}}}
                      {{else}}
                        <i class="{{icon}} icon"></i>
                      {{/if}}
                    </span>
                  {{/if}}
                  {{title}}
                  {{#if total}}
                    <span class="rewards">{{total}}</span>
                  {{/if}}
                </a>
              </li>
            {{/each}}
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>
