@component('components.filters', ['title' => __('report.filters')])
{!! Form::label('list_products_sort_by', __('lang_v1.sort_by') . ':') !!}
{!! Form::select(
'list_products_sort_by',
[
'brand' => __('product.brand'),
'product' => __('sale.product'),
'category' => __('product.category'),
'sku' => __('product.sku'),
],
$list_products_sort_by ?? 'brand',
[
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'list_products_sort_by',
],
) !!}
{!! Form::label('list_products_sort_dir', __('messages.order') . ':') !!}
{!! Form::select(
'list_products_sort_dir',
['asc' => __('lang_v1.ascending'), 'desc' => __('lang_v1.descending')],
$list_products_sort_dir ?? 'asc',
[
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'list_products_sort_dir',
],
) !!}
{!! Form::label('type', __('product.product_type') . ':') !!}
{!! Form::select(
'type',
['single' => __('lang_v1.single'), 'variable' => __('lang_v1.variable'), 'combo' => __('lang_v1.combo')],
null,
[
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'product_list_filter_type',
'placeholder' => __('lang_v1.all'),
],
) !!}
{!! Form::label('product_list_filter_quantity', __('lang_v1.quantity') . ':') !!}
{!! Form::select(
'quantity_filter',
['' => __('lang_v1.all'), 'zero' => __('lang_v1.quantity') . ' = 0'],
null,
[
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'product_list_filter_quantity',
],
) !!}
{!! Form::label('category_id', __('product.category') . ':') !!}
{!! Form::select('category_id', $categories, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'product_list_filter_category_id',
'placeholder' => __('lang_v1.all'),
]) !!}
{!! Form::label('unit_id', __('product.unit') . ':') !!}
{!! Form::select('unit_id', $units, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'product_list_filter_unit_id',
'placeholder' => __('lang_v1.all'),
]) !!}
{!! Form::label('tax_id', __('product.tax') . ':') !!}
{!! Form::select('tax_id', $taxes, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'product_list_filter_tax_id',
'placeholder' => __('lang_v1.all'),
]) !!}
{!! Form::label('brand_id', __('product.brand') . ':') !!}
{!! Form::select('brand_id', $brands, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'product_list_filter_brand_id',
'placeholder' => __('lang_v1.all'),
]) !!}
{!! Form::label('location_id', __('purchase.business_location') . ':') !!}
{!! Form::select('location_id', $business_locations, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'placeholder' => __('lang_v1.all'),
]) !!}
{!! Form::select(
'active_state',
['active' => __('business.is_active'), 'inactive' => __('lang_v1.inactive')],
null,
[
'class' => 'form-control select2',
'style' => 'width:100%',
'id' => 'active_state',
'placeholder' => __('lang_v1.all'),
],
) !!}
@if (!empty($pos_module_data))
@foreach ($pos_module_data as $key => $value)
@if (!empty($value['view_path']))
@includeIf($value['view_path'], ['view_data' => $value['view_data']])
@endif
@endforeach
@endif
@if ($is_woocommerce)
@endif
@endcomponent