@php
    use App\Models\StockManagement\StockRequest;
    use App\Models\StockManagement\Warehouse;
    use App\Models\StockManagement\WareHouseType;
     $stores =  auth(activeGuard())->user()->warehouses()->where("warehouse_type_code",WareHouseType::STORE)->get();
     $pvs =  auth(activeGuard())->user()->warehouses()->where("warehouse_type_code",WareHouseType::POINT_OF_SALE)->get();
     $statuses =  null;
@endphp
<div class="card-bodys" style="padding-top: 0">
    <div class="col-lg-12">
        <div class="card-body py-3 border-left-successs bg-gray-200">
            <div class="row">
                <div class="col-lg-3">
                    {!! BootForm::select('demand-store-id',\Illuminate\Support\Str::plural(__("Store")),
                        $stores->first(),$stores->pluck('name',"id"), ['data-plugin-multiselect'])
                       !!}
                </div>
                <div class="col-lg-3">
                    {!! BootForm::select('demand-pv-id',\Illuminate\Support\Str::plural(__("Point of sale")),
                        $pvs->first(),$pvs->pluck('name',"id"), ['data-plugin-multiselect'])
                       !!}
                </div>

{{--                <div class="col-lg-3">--}}
{{--                    {!! BootForm::select('demand-status-id',\Illuminate\Support\Str::plural(__("Status")),--}}
{{--                        $statuses->first(),$statuses->pluck('name',"id"), ['data-plugin-multiselect',"multiple"])--}}
{{--                       !!}--}}
{{--                </div>--}}

                <div class="col-lg-3">
                    <button class="btn btn-outline-secondary"
                            data-html="true"
                            data-toggle="popover"
                            title="Title"
                            data-content='{{view("backend.stocks.management.tabs.demands.filters")->render()}}'>
                        OK
                    </button>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-12">
        @include("backend.stocks.management.tabs-generator",['options' => $options])
    </div>

</div>
