@component('components.widget', ['class' => 'box-primary', 'icon' => 'fa fa-pencil-alt text-primary', 'title' => __( 'product.edit_product')])
{!! Form::label('name', __('product.product_name') . ':*') !!}
{!! Form::text('name', $product->name, ['class' => 'form-control bd-rd-7', 'required',
'placeholder' => '']); !!}
{!! Form::label('sku', __('product.sku') . ':*') !!} @show_tooltip(__('tooltip.sku'))
{!! Form::text('sku', $product->sku, ['class' => 'form-control bd-rd-7',
'placeholder' => '', 'required']); !!}
{!! Form::label('barcode_type', __('product.barcode_type') . ':*') !!}
{!! Form::select('barcode_type', $barcode_types, $product->barcode_type, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2', 'required']); !!}
{!! Form::label('sub_unit_ids', __('lang_v1.related_sub_units') . ':') !!} @show_tooltip(__('lang_v1.sub_units_tooltip'))
@if(!empty($common_settings['enable_secondary_unit']))
{!! Form::label('secondary_unit_id', __('lang_v1.secondary_unit') . ':') !!} @show_tooltip(__('lang_v1.secondary_unit_help'))
{!! Form::select('secondary_unit_id', $units, $product->secondary_unit_id, ['class' => 'form-control select2']); !!}
@endif
{!! Form::label('category_id', __('product.category') . ':') !!}
{!! Form::select('category_id', $categories, $product->category_id, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2']); !!}
{!! Form::label('sub_category_id', __('product.sub_category') . ':') !!}
{!! Form::select('sub_category_id', $sub_categories, $product->sub_category_id, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2']); !!}
{!! Form::label('product_locations', __('business.business_locations') . ':') !!} @show_tooltip(__('lang_v1.product_location_help'))
{!! Form::select('product_locations[]', $business_locations, $product->product_locations->pluck('id'), ['class' => 'form-control select2', 'multiple', 'id' => 'product_locations']); !!}
enable_stock) style="display:none" @endif>
{!! Form::label('alert_quantity', __('product.alert_quantity') . ':') !!} @show_tooltip(__('tooltip.alert_quantity'))
{!! Form::text('alert_quantity', $alert_quantity, ['class' => 'form-control input_number bd-rd-7',
'placeholder' => '' , 'min' => '0']); !!}
@if(!empty($common_settings['enable_product_warranty']))
{!! Form::label('warranty_id', __('lang_v1.warranty') . ':') !!}
{!! Form::select('warranty_id', $warranties, $product->warranty_id, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select')]); !!}
@endif
@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
{!! Form::label('product_description', __('lang_v1.product_description') . ':') !!}
{!! Form::textarea('product_description', $product->product_description, ['class' => 'form-control bd-rd-7']); !!}
@component('components.widget', ['class' => 'box-primary', 'icon' => 'fa fa-plus text-primary', 'title' => __( 'lang_v1.more_info')])
{!! Form::label('tax', __('product.applicable_tax') . ':') !!}
{!! Form::select('tax', $taxes, $product->tax, ['placeholder' => __('messages.please_select'), 'class' => 'form-control select2'], $tax_attributes); !!}
{!! Form::label('tax_type', __('product.selling_price_tax_type') . ':*') !!}
{!! Form::select('tax_type',['inclusive' => __('product.inclusive'), 'exclusive' => __('product.exclusive')], $product->tax_type,
['class' => 'form-control select2', 'required']); !!}
{!! Form::label('type', __('product.product_type') . ':*') !!} @show_tooltip(__('tooltip.product_type'))
{!! Form::select('type', $product_types, $product->type, ['class' => 'form-control select2',
'required','disabled', 'data-action' => 'edit', 'data-product_id' => $product->id ]); !!}