<{{ elements.inventory }} class="inventory-element"> {{!-- Currency --}} {{#if showCurrency}}
{{#unless @root.locked}} {{/unless}} {{#each currency}} {{#with (lookup @root.config.currencies @key) as |currency|}} {{/with}} {{/each}}
{{/if}} {{!-- Filters --}} {{#if listControls}}
{{#if listControls.filters.length}} {{#each listControls.filters}} {{/each}} {{/if}} {{#if listControls.sorting.length}} {{#each listControls.sorting}} {{/each}} {{/if}} {{#if listControls.grouping.length}} {{#each listControls.grouping}} {{/each}} {{/if}}
{{/if}} {{!-- Items --}}
{{!-- Sections / Categories --}} {{#each sections}}
{{!-- Section Header --}}

{{ localize label }}

{{#each columns}}
{{~#if label}}{{ localize label }}{{/if~}}
{{/each}}
{{!-- Section Contents --}}
    {{~#each items as |item|}} {{#dnd5e-itemContext item as |ctx|}}
  1. {{!-- Row Summary --}}
    {{!-- Item Name --}}
    {{#if ctx.concentration}} {{/if}} {{ dnd5e-icon item.img alt=item.name classes="item-image gold-icon" }}
    {{ item.name }} {{#if ctx.subtitle}} {{{ ctx.subtitle }}} {{/if}}
    {{#if item.labels.components}} {{#each item.labels.components.all}} {{#if tag}} {{/if}} {{/each}} {{else}} {{#each item.labels.properties}} {{#if icon}} {{/if}} {{/each}} {{/if}}
    {{!-- Columns --}} {{#if ctx.columns.length}} {{!-- Column overrides for an individual item --}} {{#each ctx.columns}} {{> (lookup . "template") entry=item item=item ctx=ctx isItem=true }} {{/each}} {{else}} {{!-- Otherwise use the columns defined in the section --}} {{#each ../columns}} {{> (lookup . "template") entry=item item=item ctx=ctx isItem=true }} {{/each}} {{/if}}
    {{!-- Extended Description & Activities --}}
    {{!-- Activities --}} {{#if ctx.activities.length}}
      {{#each ctx.activities}} {{> "systems/dnd5e/templates/inventory/activity.hbs" columns=../../columns item=../item }} {{/each}}
    {{/if}} {{!-- Item Description --}} {{#if ctx.isExpanded}} {{> "dnd5e.item-summary" ctx.expanded }} {{/if}}
  2. {{/dnd5e-itemContext}} {{/each~}}
{{/each}}
{{!-- Encumbrance --}} {{#if encumbrance}}
{{> "systems/dnd5e/templates/inventory/encumbrance.hbs" hasBreakpoints=true }}
{{/if}}