<section data-tab="overview" data-group="{{tab.group}}" class="tab {{tab.cssClass}}">

  <fieldset class="army-regiments-fieldset">
    <legend>{{localize "OATHHAMMER.Label.Regiments"}}</legend>

    {{#if regiments.length}}
    <ul class="item-list item-list--army-regiment">
      <li class="item-list-header">
        <span></span>
        <span class="col-name">{{localize "OATHHAMMER.Label.Name"}}</span>
        <span>{{localize "OATHHAMMER.Label.Grit"}}</span>
        <span>{{localize "OATHHAMMER.Label.ArmorDice"}}</span>
        <span>{{localize "OATHHAMMER.Label.Movement"}}</span>
        <span>{{localize "OATHHAMMER.Label.SupplyCost"}}</span>
        <span></span>
      </li>
      {{#each regiments as |regiment|}}
      <li class="item-entry" data-actor-id="{{regiment.id}}">
        <img src="{{regiment.img}}" class="item-img" />
        <span class="item-name">
          <a data-action="openRegiment" data-actor-id="{{regiment.id}}">{{regiment.name}}</a>
        </span>
        <span>{{regiment.grit}}/{{regiment.gritMax}}</span>
        <span>{{regiment.armor}}d6</span>
        <span>{{regiment.movement}}</span>
        <span>{{regiment.supplyCost}} GP</span>
        <div class="item-actions">
          {{#unless ../isPlayMode}}
          <a data-action="removeRegiment" data-actor-id="{{regiment.id}}" data-tooltip="{{localize 'OATHHAMMER.Tooltip.RemoveRegiment'}}">
            <i class="fa-solid fa-xmark"></i>
          </a>
          {{/unless}}
        </div>
      </li>
      {{/each}}
      <li class="item-entry army-total-row">
        <span></span>
        <span class="col-name army-total-label">{{localize "OATHHAMMER.Label.TotalSupply"}}</span>
        <span></span>
        <span></span>
        <span></span>
        <span class="army-total-value">{{totalSupply}} GP</span>
        <span></span>
      </li>
    </ul>
    {{else}}
    <p class="no-items">{{localize "OATHHAMMER.Label.NoRegiments"}}</p>
    {{/if}}
  </fieldset>

  {{#unless isPlayMode}}
  <p class="settlement-hint">{{localize "OATHHAMMER.Label.DropRegimentHint"}}</p>
  {{/unless}}

</section>
