<section class="tab character-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
  <div class="main-div">

    <fieldset>
      <legend>{{localize "HELLBORN.Label.weapons"}}{{#if isEditMode}}
        <a class="action" data-tooltip="{{localize "HELLBORN.Tooltip.addWeapon"}}" data-tooltip-direction="UP"><i
            class="fas fa-plus" data-action="createWeapon"></i></a>{{/if}}
      </legend>
      <div class="weapons">
        {{#each weapons as |item|}}
        <div class="weapon item" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">

          <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
          <i class="fa-regular fa-dice"></i>
          <div class="name rollable" data-roll-type="weapon" data-tooltip="{{{item.system.description}}}">
            {{item.name}}
          </div>
          <span class="type" data-tooltip="Type">{{upperFirst item.system.weaponType}}</span>
          <span class="properties" data-tooltip="Properties">{{upperFirst item.system.properties}}</span>
          <span class="range" data-tooltip="Range">{{upperFirst item.system.range}}</span>
          <span class="ammo" data-tooltip="Ammo">{{upperFirst item.system.ammo}}</span>

          <a class="damage rollable" data-tooltip="Damage" data-item-id="{{item.id}}" data-action="roll"
            data-roll-type="damage" data-roll-value="{{item.system.damage}}">
            <i class="fa-regular fa-dice"></i>
            {{item.system.damage}}</a>

          <div class="controls">
            <a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
              data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
            <a data-tooltip="{{localize 'HELLBORN.Delete'}}" data-action="delete" data-item-id="{{item.id}}"
              data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
          </div>
        </div>
        {{/each}}
      </div>
    </fieldset>

    <fieldset>
      <legend>{{localize "HELLBORN.Label.armors"}}{{#if isEditMode}}
        <a class="action" data-tooltip="{{localize "HELLBORN.Tooltip.addArmor"}}" data-tooltip-direction="UP"><i
            class="fas fa-plus" data-action="createArmor"></i></a>{{/if}}
      </legend>
      <div class="armors">
        {{#each armors as |item|}}
        <div class="armor item" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
          <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
          <div class="name" data-tooltip="{{{item.system.description}}}">
            {{item.name}}
          </div>
          <span class="bonus" data-tooltip="Bonus">{{item.system.bonus}}</span>
          <span class="resilience" data-tooltip="Resilience">{{item.system.resilience}}</span>
          <span class="reduction" data-tooltip="Reduction">{{item.system.reduction}}</span>

          <div class="controls">
            <a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
              data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
            <a data-tooltip="{{localize 'HELLBORN.Delete'}}" data-action="delete" data-item-id="{{item.id}}"
              data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
          </div>
        </div>
        {{/each}}
      </div>
    </fieldset>

    <fieldset>
      <legend>{{localize "HELLBORN.Label.equipments"}}{{#if isEditMode}}
        <a class="action" data-tooltip="{{localize "HELLBORN.Tooltip.addEquipment"}}" data-tooltip-direction="UP"><i
            class="fas fa-plus" data-action="createEquipment"></i></a>{{/if}}
      </legend>
      <div class="equipments">
        {{#each equipments as |item|}}
        {{!log 'armor' this}}
        <div class="equipment" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
          <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
          <div class="name" data-tooltip="{{{item.system.description}}}">
            {{item.name}}
          </div>
          <div class="controls">
            <a data-tooltip="{{localize 'HELLBORN.Edit'}}" data-action="edit" data-item-id="{{item.id}}"
              data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
            <a data-tooltip="{{localize 'HELLBORN.Delete'}}" data-action="delete" data-item-id="{{item.id}}"
              data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
          </div>
        </div>
        {{/each}}
      </div>
    </fieldset>

    <fieldset class="limboes">
      <legend>Limboes and Ammo</legend>
        <div class="limboes-line">
          <div class="ammo-item">
            <input type="text" class="limboes-name" value="{{system.limboes}}" name="system.limboes"/>
            <span class="limboes-quantity">Limboes</span>
          </div>

          <div class="ammo-item">
            <input type="text" class="ammo" value="{{system.ammo}}" name="system.ammo"/>
            <span class="limboes-quantity">Ammo</span>
          </div>

          {{#each system.ammoArray as |ammo key|}}
          <div class="ammo-item">
            <input type="text" class="ammo-quantity" value="{{ammo.value}}" min="0" name="system.ammoArray.{{key}}.value" />
            <span class="ammo-name">{{upperFirst ammo.label}}</span>
          </div>
          {{/each}}
        </div>
    </fieldset>

  </div>
</section>