<section class='tab {{tabs.inventory.cssClass}} {{tabs.inventory.id}}' data-tab='{{tabs.inventory.id}}'
    data-group='{{tabs.inventory.group}}'>
    <div class="search-section">
        <div class="search-bar">
            <div class="icon">
                <i class="fa-solid fa-magnifying-glass"></i>
            </div>
            <input type="search" name="search" class="search-inventory" placeholder="{{localize "DAGGERHEART.GENERAL.searchPlaceholder"}}">
        </div>
        <a class="filter-button">
            <i class="fa-solid fa-filter"></i>
        </a>
        <a data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.compendiumBrowser'}}" data-action="tempBrowser">
            <i class="fa-solid fa-book-atlas"></i>
        </a>
    </div>

    {{#if inventory.hasCurrency}}
        {{> "systems/daggerheart/templates/sheets/global/partials/gold.hbs" currencies=inventory.currencies}}
    {{/if}}

    <div class="items-section">
        {{> 'daggerheart.inventory-items'
        title='TYPES.Item.weapon'
        type='weapon'
        actorType='party'
        collection=@root.inventory.weapons
        isGlassy=true
        canCreate=@root.editable
        hideResources=true
        hideContextMenu=true
        isQuantifiable=true
        }}
        {{> 'daggerheart.inventory-items'
        title='TYPES.Item.armor'
        type='armor'
        actorType='party'
        collection=@root.inventory.armor
        isGlassy=true
        canCreate=@root.editable
        hideResources=true
        hideContextMenu=true
        isQuantifiable=true
        }}
        {{> 'daggerheart.inventory-items'
        title='TYPES.Item.consumable'
        type='consumable'
        actorType='party'
        collection=@root.inventory.consumables
        isGlassy=true
        canCreate=@root.editable
        hideContextMenu=true
        isQuantifiable=true
        }}
        {{> 'daggerheart.inventory-items'
        title='TYPES.Item.loot'
        type='loot'
        actorType='party'
        collection=@root.inventory.loot
        isGlassy=true
        canCreate=@root.editable
        hideContextMenu=true
        isQuantifiable=true
        }}
    </div>
</section>