@component('components.filters', ['title' => __('report.filters')])
{!! Form::open([
'url' => action([\App\Http\Controllers\ReportController::class, 'getStockReport']),
'method' => 'get',
'id' => 'stock_report_filter_form',
]) !!}
{!! Form::label('user_filter', __('report.user') . ':') !!}
{!! Form::select('user_filter', $usersFilter, null, [
'class' => 'form-control select2',
'id' => 'user_filter',
'placeholder' => __('lang_v1.all'),
'style' => 'width:100%',
]) !!}
{!! Form::label('product_sr_date_filter', __('report.date_range') . ':') !!}
{!! Form::text('date_range', null, [
'placeholder' => __('lang_v1.select_a_date_range'),
'class' => 'form-control',
'id' => 'product_sr_date_filter',
'readonly',
]) !!}
{!! Form::label('location_id', __('purchase.business_location') . ':') !!}
{!! Form::select('location_id', $business_locations ?? [], null, [
'class' => 'form-control select2',
'placeholder' => __('messages.all'),
'style' => 'width:100%',
'id' => 'location_id',
]) !!}
{!! Form::label('category_id', __('category.category') . ':') !!}
{!! Form::select('category', $categories ?? [], null, [
'placeholder' => __('messages.all'),
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'category_id',
]) !!}
{!! Form::label('brand', __('product.brand') . ':') !!}
{!! Form::select('brand', $brands, null, [
'placeholder' => __('messages.all'),
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'brand_id',
]) !!}
{!! Form::close() !!}
@endcomponent