<div class="me-0 me-md-2 mb-3 mb-md-0 mt-2">
    @php
        $data = [
            ['key'=>'any','value'=>'Any'],
            ['key'=>'inStock','value'=>'In Stock'],
            ['key'=>'outOfStock','value'=>'Out Of Stock'],
        ];

        $selectedItem = [];
        if (isset($filters['stockStatus'])) {
            $selectedItem = $filters['stockStatus'];
        }
    @endphp
    @livewire('admin-filter-item', [
        'name'=>'Stock Status',
        'searchable'=>false,
        'selectedItem'=>$selectedItem,
        'selectedItemKey'=>'stockStatus',
        'data'=>$data,
        'showDropdown'=> session()->get('showFilterStockStatus'),
        'onChangedEmitEvents' => [
            'setFirstPageContentList'
        ]
    ])
</div>
