<section class="tab creature-{{tab.id}} {{tab.cssClass}}" data-tab="{{tab.id}}" data-group="{{tab.group}}">
  <div class="main-div">
  <fieldset>
    <legend>{{localize "CTHULHUETERNAL.Label.weapons"}}{{#if isEditMode}}
      <a class="action" data-tooltip="{{localize " CTHULHUETERNAL.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|}}
      {{!log 'weapon' this}}
      <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}}" />
        <img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />
        <div class="name rollable" data-roll-type="weapon" data-tooltip="{{{item.system.description}}}">
          {{item.name}}
        </div>

        <img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />
        <a class="damage rollable" data-item-id="{{item.id}}" data-action="roll" data-roll-type="damage"
          data-roll-value="{{item.system.damage}}">
          {{localize "CTHULHUETERNAL.Label.damageShort"}} :
          {{item.system.damage}}</a>
        <div class="controls">
          <a data-tooltip="{{localize 'CTHULHUETERNAL.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 'CTHULHUETERNAL.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 data-tooltip="{{localize "CTHULHUETERNAL.Tooltip.skills"}}" data-tooltip-direction="UP">{{localize "CTHULHUETERNAL.Label.skills"}}</legend>
    <div class="skills">
        {{#each skills as |item|}}
          <div class="skill item" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
            <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" />
            <img src="systems/fvtt-cthulhu-eternal/assets/ui/d100.svg" class="d100" />
            <div class="name rollable" data-roll-type="skill" data-tooltip="{{{item.description}}}" data-tooltip-direction="UP">{{item.name}}
            </div>
            <div class="score" >
              {{item.system.skillTotal}}
            </div>
            <div class="controls">
              <a data-tooltip="{{localize 'CTHULHUETERNAL.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 'CTHULHUETERNAL.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>

  </div>
</section>