{!! Form::open(['url' => action([\App\Http\Controllers\ProductController::class, 'updateAllSelected']), 'method' => 'post']) !!}

@lang('contact.add_contact')

{!! Form::select('product_ids[]', $products ?? [], array_keys($products ?? []), ['class' => 'form-control select2 multiple-select', 'id' => 'contact_ids', 'multiple', 'style' => 'width: 100%;']); !!}
{!! Form::label('selected_all', __('lang.selected_all') . ':') !!}
{!! Form::label('barcode_type', __('product.barcode_type') . ':*') !!}
{!! Form::select('barcode_type', $barcode_types, null, ['class' => 'form-control select2']); !!}
{!! Form::label('unit_id', __('product.unit') . ':*') !!}
{!! Form::select('unit_id', $units, session('business.default_unit')??null, ['class' => 'form-control select2']); !!}
{!! Form::label('brand_id', __('product.brand') . ':*') !!}
{!! Form::select('brand_id', $brands, session('business.default_unit')??null, ['class' => 'form-control select2']); !!}
{!! Form::label('category_id', __('product.category') . ':*') !!}
{!! Form::select('category_id', $categories, session('business.default_unit')??null, ['class' => 'form-control select2']); !!}
{!! Form::label('sub_category_id', __('product.sub_category') . ':*') !!}
{!! Form::select('sub_category_id', [], session('business.default_unit')??null, ['class' => 'form-control select2']); !!}
{!! Form::label('product_locations', __('business.business_locations') . ':*') !!}
{!! Form::select('product_locations[]', $business_locations, null, ['class' => 'form-control select2 multiple-select', 'multiple', 'id' => 'product_locations', 'style' => 'width: 100%;']); !!}
{!! Form::label('allocate_sales_person', __('lang.allocate_sales_person') . ':' ) !!}
{!! Form::select('allocate_sales_person[]', $users ?? [], null , ['class' => 'form-control select2 multiple-select allocate_sales_person', 'id' => 'allocate_sales_person', 'multiple' => 'multiple', 'style' => 'width: 100%;']); !!}
{!! Form::close() !!}