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

  {{! Pack Burden Summary }}
  <fieldset class="pack-burden-fieldset">
    <legend>{{localize "PRISMRPG.Label.packBurden"}}</legend>
    <div class="pack-burden-display">
      <span class="pack-burden-used">{{packBurdenUsed}}</span>
      <span class="pack-burden-sep">/</span>
      <span class="pack-burden-max">{{packBurdenMax}}</span>
    </div>
  </fieldset>
  {{! Money }}
  <fieldset>
    <legend>{{localize "PRISMRPG.Label.money"}}</legend>
    <div class="moneys">
        {{formField systemFields.moneys.fields.coppercoin.fields.value value=system.moneys.coppercoin.value localize=true}}
        {{formField systemFields.moneys.fields.silvercoin.fields.value value=system.moneys.silvercoin.value localize=true}}
        {{formField systemFields.moneys.fields.goldcoin.fields.value value=system.moneys.goldcoin.value localize=true}}
        {{formField systemFields.moneys.fields.note.fields.value value=system.moneys.note.value localize=true}}
        {{formField systemFields.moneys.fields.steam.fields.value value=system.moneys.steam.value localize=true}}
    </div>
  </fieldset>

  {{! Weapons }}
  <fieldset class="inv-section">
    <legend>
      {{localize "PRISMRPG.Label.weapons"}}
      <a data-action="createEquipment" data-item-type="weapon" data-tooltip="{{localize 'PRISMRPG.Tooltip.addWeapon'}}"><i class="fas fa-plus"></i></a>
    </legend>
    <div class="inv-items">
      {{#each weapons as |item|}}
      <div class="inv-item {{#if item.system.equipped}}is-equipped{{/if}}" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
        <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" data-action="postItemToChat" />
        <div class="inv-name">{{item.name}}</div>
        <div class="inv-qty">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityMinus'}}" data-action="quantityMinus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-minus"></i></a>
          <span>{{item.system.quantity}}</span>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityPlus'}}" data-action="quantityPlus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-plus"></i></a>
        </div>
        <div class="inv-enc" data-tooltip="{{localize 'PRISMRPG.Label.encLoad'}}">{{mul item.system.encLoad item.system.quantity}}</div>
        <div class="controls">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.assignToContainer'}}" data-action="assignToContainer" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-bag-shopping"></i></a>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.toggleEquipped'}}" data-action="toggleEquipped" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
            {{#if item.system.equipped}}<i class="fas fa-shield-check equipped-icon"></i>{{else}}<i class="far fa-circle unequipped-icon"></i>{{/if}}
          </a>
          <a data-tooltip="{{localize 'PRISMRPG.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 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
        </div>
      </div>
      {{/each}}
      {{#unless weapons.length}}<p class="inv-empty">{{localize "PRISMRPG.Message.noWeapons"}}</p>{{/unless}}
    </div>
  </fieldset>

  {{! Armor & Shields }}
  <fieldset class="inv-section">
    <legend>
      {{localize "PRISMRPG.Label.armors"}}
      <a data-action="createEquipment" data-item-type="armor" data-tooltip="{{localize 'PRISMRPG.Tooltip.addArmor'}}"><i class="fas fa-plus"></i></a>
      <a data-action="createEquipment" data-item-type="shield" data-tooltip="{{localize 'PRISMRPG.Tooltip.addShield'}}"><i class="fas fa-shield-halved"></i></a>
    </legend>
    <div class="inv-items">
      {{#each armors as |item|}}
      <div class="inv-item {{#if item.system.equipped}}is-equipped{{/if}}" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
        <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" data-action="postItemToChat" />
        <div class="inv-name">{{item.name}}</div>
        <div class="inv-qty">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityMinus'}}" data-action="quantityMinus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-minus"></i></a>
          <span>{{item.system.quantity}}</span>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityPlus'}}" data-action="quantityPlus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-plus"></i></a>
        </div>
        <div class="inv-enc" data-tooltip="{{localize 'PRISMRPG.Label.encLoad'}}">{{mul item.system.encLoad item.system.quantity}}</div>
        <div class="controls">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.assignToContainer'}}" data-action="assignToContainer" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-bag-shopping"></i></a>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.toggleEquipped'}}" data-action="toggleEquipped" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
            {{#if item.system.equipped}}<i class="fas fa-shield-check equipped-icon"></i>{{else}}<i class="far fa-circle unequipped-icon"></i>{{/if}}
          </a>
          <a data-tooltip="{{localize 'PRISMRPG.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 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
        </div>
      </div>
      {{/each}}
      {{#unless armors.length}}<p class="inv-empty">{{localize "PRISMRPG.Message.noArmor"}}</p>{{/unless}}
    </div>
  </fieldset>

  {{! Consumables }}
  <fieldset class="inv-section">
    <legend>
      {{localize "PRISMRPG.Label.consumables"}}
      <a data-action="createEquipment" data-item-type="consumable" data-tooltip="{{localize 'PRISMRPG.Tooltip.addConsumable'}}"><i class="fas fa-plus"></i></a>
    </legend>
    <div class="inv-items">
      {{#each consumables as |item|}}
      <div class="inv-item inv-consumable" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
        <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" data-action="postItemToChat" />
        <div class="inv-name">{{item.name}}</div>
        <div class="inv-qty">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityMinus'}}" data-action="quantityMinus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-minus"></i></a>
          <span>{{item.system.quantity}}</span>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityPlus'}}" data-action="quantityPlus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-plus"></i></a>
        </div>
        <div class="inv-uses" data-tooltip="{{localize 'PRISMRPG.Tooltip.uses'}}">{{item.system.uses}}/{{item.system.usesMax}}</div>
        <div class="inv-enc" data-tooltip="{{localize 'PRISMRPG.Label.encLoad'}}">{{mul item.system.encLoad item.system.quantity}}</div>
        <div class="controls">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.assignToContainer'}}" data-action="assignToContainer" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-bag-shopping"></i></a>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.useConsumable'}}" data-action="useConsumable" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" {{#unless item.system.uses}}aria-disabled="true" class="disabled"{{/unless}}><i class="fas fa-flask"></i></a>
          <a data-tooltip="{{localize 'PRISMRPG.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 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
        </div>
      </div>
      {{/each}}
      {{#unless consumables.length}}<p class="inv-empty">{{localize "PRISMRPG.Message.noConsumables"}}</p>{{/unless}}
    </div>
  </fieldset>

  {{! Kits }}
  <fieldset class="inv-section">
    <legend>
      {{localize "PRISMRPG.Label.kits"}}
      <a data-action="createEquipment" data-item-type="equipment" data-item-kit="true" data-tooltip="{{localize 'PRISMRPG.Tooltip.addKit'}}"><i class="fas fa-plus"></i></a>
    </legend>
    <div class="inv-items">
      {{#each kits as |item|}}
      <div class="inv-item {{#if item.system.equipped}}is-equipped{{/if}}" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
        <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" data-action="postItemToChat" />
        <div class="inv-name">{{item.name}}</div>
        <div class="inv-qty">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityMinus'}}" data-action="quantityMinus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-minus"></i></a>
          <span>{{item.system.quantity}}</span>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityPlus'}}" data-action="quantityPlus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-plus"></i></a>
        </div>
        <div class="inv-enc" data-tooltip="{{localize 'PRISMRPG.Label.encLoad'}}">{{mul item.system.encLoad item.system.quantity}}</div>
        <div class="controls">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.assignToContainer'}}" data-action="assignToContainer" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-bag-shopping"></i></a>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.toggleEquipped'}}" data-action="toggleEquipped" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
            {{#if item.system.equipped}}<i class="fas fa-shield-check equipped-icon"></i>{{else}}<i class="far fa-circle unequipped-icon"></i>{{/if}}
          </a>
          <a data-tooltip="{{localize 'PRISMRPG.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 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
        </div>
      </div>
      {{/each}}
      {{#unless kits.length}}<p class="inv-empty">{{localize "PRISMRPG.Message.noKits"}}</p>{{/unless}}
    </div>
  </fieldset>

  {{! General Equipment (non-kit) }}
  <fieldset class="inv-section">
    <legend>
      {{localize "PRISMRPG.Label.equipment"}}
      <a data-action="createEquipment" data-item-type="equipment" data-tooltip="{{localize 'PRISMRPG.Tooltip.addEquipment'}}"><i class="fas fa-plus"></i></a>
    </legend>
    <div class="inv-items">
      {{#each equipmentItems as |item|}}
      <div class="inv-item {{#if item.system.equipped}}is-equipped{{/if}}" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
        <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" data-action="postItemToChat" />
        <div class="inv-name" data-tooltip="{{{item.system.description}}}">{{item.name}}</div>
        <div class="inv-qty">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityMinus'}}" data-action="quantityMinus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-minus"></i></a>
          <span>{{item.system.quantity}}</span>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityPlus'}}" data-action="quantityPlus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-plus"></i></a>
        </div>
        <div class="inv-enc" data-tooltip="{{localize 'PRISMRPG.Label.encLoad'}}">{{mul item.system.encLoad item.system.quantity}}</div>
        <div class="controls">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.assignToContainer'}}" data-action="assignToContainer" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-bag-shopping"></i></a>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.toggleEquipped'}}" data-action="toggleEquipped" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
            {{#if item.system.equipped}}<i class="fas fa-shield-check equipped-icon"></i>{{else}}<i class="far fa-circle unequipped-icon"></i>{{/if}}
          </a>
          <a data-tooltip="{{localize 'PRISMRPG.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 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
        </div>
      </div>
      {{/each}}
      {{#unless equipmentItems.length}}<p class="inv-empty">{{localize "PRISMRPG.Message.noEquipment"}}</p>{{/unless}}
    </div>
  </fieldset>

  {{! Loot }}
  <fieldset class="inv-section">
    <legend>
      {{localize "PRISMRPG.Label.loot"}}
      <a data-action="createEquipment" data-item-type="loot" data-tooltip="{{localize 'PRISMRPG.Tooltip.addLoot'}}"><i class="fas fa-plus"></i></a>
    </legend>
    <div class="inv-items">
      {{#each loots as |item|}}
      <div class="inv-item" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
        <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" data-action="postItemToChat" />
        <div class="inv-name">{{item.name}}</div>
        <div class="inv-qty">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityMinus'}}" data-action="quantityMinus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-minus"></i></a>
          <span>{{item.system.quantity}}</span>
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityPlus'}}" data-action="quantityPlus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-plus"></i></a>
        </div>
        <div class="inv-enc" data-tooltip="{{localize 'PRISMRPG.Label.encLoad'}}">{{mul item.system.encLoad item.system.quantity}}</div>
        <div class="controls">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.assignToContainer'}}" data-action="assignToContainer" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-bag-shopping"></i></a>
          <a data-tooltip="{{localize 'PRISMRPG.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 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>
        </div>
      </div>
      {{/each}}
      {{#unless loots.length}}<p class="inv-empty">{{localize "PRISMRPG.Message.noLoot"}}</p>{{/unless}}
    </div>
  </fieldset>

  {{! Containers }}
  <fieldset class="inv-section">
    <legend>
      {{localize "PRISMRPG.Label.containers"}}
      <a data-action="createEquipment" data-item-type="container" data-tooltip="{{localize 'PRISMRPG.Tooltip.addContainer'}}"><i class="fas fa-plus"></i></a>
    </legend>
    <div class="inv-items">
      {{#each containerGroups as |group|}}
      <div class="inv-item inv-container" data-item-id="{{group.container.id}}" data-item-uuid="{{group.container.uuid}}" data-container-id="{{group.container.id}}">
        <img class="item-img" src="{{group.container.img}}" data-tooltip="{{group.container.name}}" data-action="postItemToChat" />
        <div class="inv-name">{{group.container.name}}</div>
        <div class="inv-capacity" data-tooltip="{{localize 'PRISMRPG.Tooltip.packBurden'}}">{{group.container.system.packBurden}}</div>
        <div class="inv-enc" data-tooltip="{{localize 'PRISMRPG.Label.encLoad'}}">{{group.container.system.encLoad}}</div>
        <div class="controls">
          <a data-tooltip="{{localize 'PRISMRPG.Tooltip.toggleEquipped'}}" data-action="toggleContainerEquipped" data-item-id="{{group.container.id}}" data-item-uuid="{{group.container.uuid}}">
            {{#if group.container.system.equipped}}<i class="fas fa-backpack"></i>{{else}}<i class="fas fa-box"></i>{{/if}}
          </a>
          <a data-tooltip="{{localize 'PRISMRPG.Edit'}}" data-action="edit" data-item-id="{{group.container.id}}" data-item-uuid="{{group.container.uuid}}"><i class="fas fa-edit"></i></a>
          <a data-tooltip="{{localize 'PRISMRPG.Delete'}}" data-action="delete" data-item-id="{{group.container.id}}" data-item-uuid="{{group.container.uuid}}"><i class="fas fa-trash"></i></a>
        </div>
      </div>
      {{#if group.items.length}}
      <div class="inv-container-items">
        {{#each group.items as |item|}}
        <div class="inv-item inv-container-item" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}">
          <span class="inv-container-type-badge">{{item.type}}</span>
          <img class="item-img" src="{{item.img}}" data-tooltip="{{item.name}}" data-action="postItemToChat" />
          <div class="inv-name">{{item.name}}</div>
          <div class="inv-qty">
            <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityMinus'}}" data-action="quantityMinus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-minus"></i></a>
            <span>{{item.system.quantity}}</span>
            <a data-tooltip="{{localize 'PRISMRPG.Tooltip.quantityPlus'}}" data-action="quantityPlus" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-plus"></i></a>
          </div>
          <div class="inv-enc" data-tooltip="{{localize 'PRISMRPG.Label.encLoad'}}">{{mul item.system.encLoad item.system.quantity}}</div>
          <div class="controls">
            <a data-tooltip="{{localize 'PRISMRPG.Tooltip.removeFromContainer'}}" data-action="removeFromContainer" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}"><i class="fas fa-arrow-up-from-bracket"></i></a>
            <a data-tooltip="{{localize 'PRISMRPG.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 'PRISMRPG.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>
      {{else}}
      <div class="inv-container-empty">{{localize "PRISMRPG.Message.noStoredItems"}}</div>
      {{/if}}
      {{/each}}
      {{#unless containerGroups.length}}<p class="inv-empty">{{localize "PRISMRPG.Message.noContainers"}}</p>{{/unless}}
    </div>
  </fieldset>

  </div>
</section>
