<aside class="acc-side">
  <div class="acc-side__user">
    <span class="acc-side__avatar">{icon name="profile" size="20"}</span>
    <span class="acc-side__meta">
      <b class="acc-side__name">{account.name}</b>
      <span class="acc-side__email">{account.email}</span>
    </span>
  </div>

  <nav class="acc-nav" aria-label="Разделы кабинета">
    [foreach var="account_tabs" as="t"]
      <a href="{t.url}" class="acc-nav__link [if {t.active}="1"]is-active[/if]">
        <span class="acc-nav__ico">{icon name="{t.icon}" size="18"}</span>
        <span class="acc-nav__label">{t.label}</span>
      </a>
    [/foreach]
  </nav>

  <form method="post" action="/account/logout" class="acc-side__logout">
    {csrf}
    <button type="submit" class="acc-nav__link acc-nav__link--logout">
      <span class="acc-nav__ico">{icon name="logout" size="18"}</span>
      <span class="acc-nav__label">Выйти</span>
    </button>
  </form>
</aside>
