{{#if labelOverride}}{{labelOverride}}{{else}}{{ccLocalize "names.inventory"}}{{/if}}

{{#if isGM}}
{{/if}} {{#if isGM}} {{#if (and isGM inventory)}} {{/if}} {{/if}}
{{#if isGM}}
{{#if activewidget.length}} {{#each activewidget}}
{{this.widgetName}} {{counter}}
{{/each}} {{/if}} {{#if inactivewidgets.length}} {{#each inactivewidgets}}
{{widgetName}} {{counter}}
{{/each}} {{/if}}
{{!-- Section: Available Widgets --}}
Available Widgets
{{/if}} {{#if widgetsToRender}} {{#unless widgetsPosition}}
{{{this.widgetsToRender}}}
{{/unless}} {{/if}} {{#if isGM}}
{{ccLocalize "ui.lootMode"}}
{{#unless isLoot}}
x {{ccLocalize "inventory.global.markup"}}
{{/unless}}
{{this.currency}}
{{/if}} {{#if inventory}}
{{#each inventorySections}} {{#if ../showHeaders}}

{{label}}

{{/if}} {{#each items}} {{#unless (and ../../hideByPermission (not canView))}} {{#if (or ../../isGM visibleToPlayers)}} {{#if (or this.quantity infinite ../../isGM)}}
{{name}}
{{name}}
{{#unless ../../isLoot}}
{{#if ../../isGM}} {{this.currency}} {{else}} {{this.finalPrice}} {{this.currency}} {{/if}}
{{/unless}} {{#unless infinite}}
{{#if ../../isGM}} {{else}} {{#if this.quantity}}{{this.quantity}} {{else}} {{/if}} {{/if}}
{{/unless}} {{#if ../../isGM}}
{{else}} {{#if (and ../../allowPlayerPurchasing (not ../../isLoot))}}
{{/if}} {{#if (and ../../allowPlayerLooting ../../isLoot)}}
{{/if}} {{/if}}
{{/if}} {{/if}} {{/unless}} {{/each}} {{#if ../showHeaders}}
{{/if}} {{/each}}
{{else}} {{#if isGM}}

{{ccLocalize "dragToAdd.empty"}}

{{ccLocalize "dragToAdd.item"}}

{{/if}} {{/if}} {{#if widgetsToRender}} {{#if widgetsPosition}}
{{{this.widgetsToRender}}}
{{/if}}{{/if}}