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

{{#if isGM}} {{/if}}
{{#if widgetsToRender}} {{#unless widgetsPosition}}
{{{this.widgetsToRender}}}
{{/unless}} {{/if}} {{#if inventory}}
{{#each inventorySections}} {{#if ../showHeaders}}

{{label}}

{{/if}} {{#each items}} {{#unless (and ../../hideByPermission (not canView))}} {{#if (or ../../isGM visibleToPlayers)}} {{#if (or quantity infinite ../../isGM)}}
{{name}}
{{name}}
{{#unless ../../isLoot}}
{{this.finalPrice}} {{this.currency}}
{{/unless}} {{#unless infinite}}
{{#if quantity}}{{quantity}} {{else}} {{/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}}