@php
    $warehouses =  auth(activeGuard())->user()->warehouses()->where("warehouse_type_code",$options['warehouse-type'])->get();
@endphp

<div class="row">
    <div class="col-lg-12">
        <div class="card-body py-3 border-left-secondary bg-gray-200 filter-bloc">
            <div class="row">
                <div class="col-lg-3">
                    {!! BootForm::select('warehouse-id',\Illuminate\Support\Str::plural(__($options['title'])),
                        $warehouses->first(),$warehouses->pluck('name',"id"), ['data-plugin-multiselect',
                        "class" => "warehouse-filter"])
                       !!}
                </div>

                <div class="col-lg-3">
                    {!! BootForm::select('categories-id',__("Categories"),
                        $categories->pluck("id"),$categories->pluck('name',"id"), ['data-plugin-multiselect',"multiple",
                        "class" => "categories-filter"])
                       !!}
                </div>
                <div class="col-lg-6 form-group">
                    <div class="pull-right" id="magasin-bloc-dates" style="margin-top: 2rem !important;">
                        {{--                        <label class="control-label">{{__("Période")}}</label>--}}
                        <div class="input-daterange datepicker input-group mt-2"
                             data-plugin-datepicker
                             data-plugin-options="{format:'dd-mm-yyyy'}">
                            <span class="input-group-addon">{{__("From")}}</span>
                            <input type="text" class="form-control form-control-sm magasin-input-date"
                                   name="magasin-start-date"
                                   readonly
                                   id="magasin-start-date"
                                   value="{{date("d-m-Y",strtotime(first_date_of_period()))}}">
                            <span class="input-group-addon">{{__("To")}}</span>
                            <input type="text" class="form-control form-control-sm magasin-input-date"
                                   name="magasin-end-date"
                                   readonly
                                   id="magasin-end-date" value="{{date('d-m-Y')}}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-12">
        <div class="card-bodys border-left-success">
            @include("backend.stocks.management.tabs-generator",['options' => $options['content']])
        </div>
    </div>

</div>
