<MobileNav @class="group-nav" @desktopClass="nav nav-pills">
  {{#if this.site.mobileView}}
    <li>
      <LinkTo @route="groups.index">
        {{i18n "groups.index.all"}}
      </LinkTo>
    </li>
  {{else}}
    <li>
      <GroupDropdown
        @groups={{this.group.extras.visible_group_names}}
        @value={{this.group.name}}
      />
    </li>
  {{/if}}

  {{#each this.tabs as |tab|}}
    <li>
      <LinkTo
        @route={{tab.route}}
        @model={{this.group}}
        title={{tab.message}}
        class={{tab.name}}
      >
        {{#if tab.icon}}{{d-icon tab.icon}}{{/if}}
        {{tab.message}}
        {{#if tab.count}}<span class="count">({{tab.count}})</span>{{/if}}
      </LinkTo>
    </li>
  {{/each}}
  <PluginOutlet
    @name="group-reports-nav-item"
    @outletArgs={{hash group=this.group}}
    @connectorTagName="li"
  />
</MobileNav>