<section data-tab="combat" class="tab">
  <div class="initiative-bar">
    <a data-action="rollInitiative" class="initiative-roll-btn" data-tooltip="{{localize 'OATHHAMMER.Roll.InitiativeHint'}}">
      <i class="fa-solid fa-swords"></i> {{localize "OATHHAMMER.Dialog.RollInitiative"}}
    </a>
    {{#if combatantInitiative}}<span class="initiative-score" data-tooltip="{{localize 'OATHHAMMER.Label.Initiative'}}">⚔ {{combatantInitiative}}</span>{{/if}}
  </div>
  <fieldset>
    <legend>{{localize "OATHHAMMER.Label.Weapons"}}</legend>
    {{#if weapons.length}}
    <ul class="item-list">
      {{#each weapons as |weapon|}}
      <li class="item-entry flexrow" data-item-id="{{weapon.id}}" data-item-uuid="{{weapon.uuid}}">
        <img src="{{weapon.img}}" class="item-img" />
        <span class="item-name">{{weapon.name}}</span>
        <span class="item-detail">{{weapon.system.damageLabel}}</span>
        <span class="item-detail">AP: {{weapon.system.ap}}</span>
        {{#unless ../isPlayMode}}
        <a data-action="edit" data-item-id="{{weapon.id}}" data-item-uuid="{{weapon.uuid}}"><i class="fa-solid fa-edit"></i></a>
        <a data-action="delete" data-item-id="{{weapon.id}}" data-item-uuid="{{weapon.uuid}}"><i class="fa-solid fa-trash"></i></a>
        {{/unless}}
      </li>
      {{/each}}
    </ul>
    {{else}}
    <p class="no-items">{{localize "OATHHAMMER.Label.NoWeapons"}}</p>
    {{/if}}
  </fieldset>
</section>
