{block name='boxes-box-filter-availability'}
    {if $nSeitenTyp === $smarty.const.PAGE_ARTIKELLISTE
    && !($isMobile || $Einstellungen.template.productlist.filter_placement === 'modal')}
        <div id="sidebox{$oBox->getID()}" class="box box-filter-availability d-none d-lg-block">
            {assign var=visible value=$oBox->getItems()->isActive()}
            <button
                class="btn btn-link btn-block btn-filter-box dropdown-toggle"
                data-toggle="collapse"
                data-target="#cllps-box{$oBox->getID()}"
                aria-expanded="{if $visible}true{else}false{/if}"
                aria-controls="cllps-box{$oBox->getID()}"
            >
                <span class="text-truncate">
                    {lang key='filterAvailability'}
                </span>
            </button>
            <div class="collapse{if $visible} show{/if}" id="cllps-box{$oBox->getID()}">
                {block name='boxes-box-filter-availability-content'}
                    {include file='snippets/filter/genericFilterItem.tpl' filter=$oBox->getItems()}
                {/block}
            </div>
            {block name='boxes-box-filter-availability-hr'}
                <hr class="box-filter-hr">
            {/block}
        </div>
    {/if}
{/block}
