{{#unless item.system.isHidden}}
{{#if (or options.isObserver (ne item.type 'monnaie'))}}
<li class="item flexrow list-item" data-item-id="{{item._id}}" draggable="true" data-tooltip="{{#if (gt item.system.quantite 1)}}{{item.system.quantite}} {{/if}}{{item.name}}">
  <span class="equipement-nom {{#if (eq item.type 'conteneur')}}conteneur-name{{/if}} ">
    {{#if (eq item.type 'conteneur')}}
    <a>
      <i class="{{~#if vide}}far fa-square
      {{else if ouvert}}far fa-minus-square
      {{else}}far fa-plus-square
      {{/if~}}"></i>
      <img class="sheet-competence-img" src="{{item.img}}"/>
      <span>{{item.name}}{{#if item.system.magique}} <i class="fa-solid fa-sparkles" data-tooltip="Enchantement"></i>{{/if}}</span>
    </a>
    {{else}}
    <img class="sheet-competence-img" src="{{item.img}}"/>
    <a class="item-edit">{{item.name}}{{#if item.system.magique}} <i class="fa-solid fa-sparkles" data-tooltip="Enchantement"></i>{{/if}}</a>
      {{#if (eq item.type 'arme')}}
      {{>"systems/foundryvtt-reve-de-dragon/templates/item/icon-arme-broken.hbs" item}}
      {{/if}}
    {{/if}}
    {{#if item.parentConteneurName}}
    <span class="conteneur-parent-badge">{{item.parentConteneurName}}</span>
    {{/if}}
  </span>
  <span class="equipement-detail">
    {{#if (gt item.system.quantite 1)}}
    <a class="item-quantite-moins" data-tooltip="Diminuer la quantité de {{item.name}}"><i class="fa-solid fa-square-minus"></i></a>
    {{/if}}
    <input class="item-quantite number-x2" type="number" data-dtype="Number"
      value="{{item.system.quantite}}" data-item-id="{{item._id}}" />
    {{#if @root.options.isGM}}
    <a class="item-quantite-plus" data-tooltip="Augmenter la quantité de {{item.name}}"><i class="fa-solid fa-square-plus"></i></a>
    {{/if}}
  </span>
  <span class="equipement-detail {{#if sature}}conteneur-sature{{/if}}">
    {{#if (eq item.type 'conteneur')}}
    {{numberFormat item.system.encTotal decimals=2}} / {{item.system.capacite}}
    {{else}}
    {{numberFormat item.system.encTotal decimals=2}}
    {{/if}}
    {{#if (eq item.type 'conteneur')}}
    <div class="conteneur-capacity-bar">
      <div class="conteneur-capacity-fill" style="width: {{fillPercent}}%"></div>
    </div>
    {{/if}}
  </span>
  {{>'systems/foundryvtt-reve-de-dragon/templates/actor/item-action-controls.hbs' item=item options=options}}
</li>
{{/if}}
{{/unless}}
