{{ __('lbl.inventory') }}

{{ Form::label(__('lbl.require_serial_number')) }} @if ($errors->has('require_serial_number')) @endif
{{ Form::label(__('lbl.do_not_allow')) }} @if ($errors->has('do_not_allow')) @endif
{{ Form::label(__('lbl.default_inventory')) }} @if ($errors->has('default_inventory')) @endif
{{ Form::label(__('lbl.track_in_inventory')) }} @if ($errors->has('track_in_inventory')) @endif
{{ Form::label(__('lbl.reorder_to_par')) }} @if ($errors->has('reorder_to_par')) @endif
{{ Form::label(__('lbl.tax_on_reorder')) }} @if ($errors->has('tax_on_reorder')) @endif
{{ Form::label(__('lbl.umo')) }} {{ Form::text('uom', $proDetails['uom'], ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.umo'),"id"=>"uom","name"=>"uom","readonly"]) }} @if ($errors->has('uom')) @endif
{{ Form::label(__('lbl.bin_value')) }} {{ Form::text('bin_value', $proDetails['bin_value'], ["class"=>"form-control mxlen_10","placeholder"=>__('lbl.bin_value'),"id"=>"bin_value","name"=>"bin_value"]) }} @if ($errors->has('bin_value')) @endif
{{ Form::label(__('lbl.threshold')) }} {{ Form::text('threshold', $proDetails['threshold'], ["class"=>"form-control mxlen_5 numer_only","placeholder"=>__('lbl.threshold'),"id"=>"threshold","name"=>"threshold"]) }} @if ($errors->has('threshold')) @endif
{{ Form::label(__('lbl.primary_vendor')) }} {{ Form::select('primary_vendor', ($primary_vendor)?$primary_vendor:[], $proDetails['primary_vendor'],['class'=>'form-control select2 primaryVendor','id'=>'primary_vendor']) }} @if ($errors->has('primary_vendor')) @endif
{{ Form::label(__('lbl.vendor_item_id')) }} {{ Form::text('vendor_item_id', $proDetails['vendor_item_id'], ["class"=>"form-control mxlen_20","placeholder"=>__('lbl.vendor_item_id'),"id"=>"vendor_item_id","name"=>"vendor_item_id"]) }} @if ($errors->has('vendor_item_id')) @endif
{{ Form::label(__('lbl.reorder_unit_type')) }} {{ Form::text('reorder_unit_type', $proDetails['reorder_unit_type'], ["class"=>"form-control mxlen_10","placeholder"=>__('lbl.reorder_unit_type'),"id"=>"reorder_unit_type"]) }} @if($errors->has('reorder_unit_type')) @endif
{{ Form::label(__('lbl.default_reorder_quantity')) }} {{ Form::text('default_reorder_quantity', $proDetails['default_reorder_quantity'], ["class"=>"form-control mxlen_5 numer_only","placeholder"=>__('lbl.default_reorder_quantity'),"id"=>"default_reorder_quantity"]) }} @if ($errors->has('default_reorder_quantity')) @endif
{{ Form::label(__('lbl.default_reorder_price')) }} {{ Form::text('default_reorder_price', $proDetails['default_reorder_price'], ["class"=>"form-control mxlen_8 numer_float_only","onkeypress"=>"return validateFloatKeyPress(this,event);", "placeholder"=>__('lbl.default_reorder_price'),"id"=>"default_reorder_price"]) }} @if ($errors->has('default_reorder_price')) @endif
@if(Helper::widgetAccess('show_inventory_min_max_alert'))

Inventory Alert

{{ Form::label('Min Inventory') }} {{ Form::number('min_inventory', $proDetails['min_inventory'], ["class"=>"form-control mxlen_100","placeholder"=>'Min Inventory',"id"=>"min_inventory"]) }}
{{ Form::label('Max Inventory') }} {{ Form::number('max_inventory', $proDetails['max_inventory'], ["class"=>"form-control mxlen_100","placeholder"=>'Max Inventory',"id"=>"max_inventory"]) }}
@endif

{{ __('lbl.stock_units') }}

@if(!empty($proDetails['product_stock_units'])) @foreach($proDetails['product_stock_units'] as $key => $ppo)
{{ Form::label(__('lbl.name')) }} {{ Form::text('unit', $ppo->unit_name, [ "class"=>"form-control mxlen_8","placeholder"=>__('lbl.name'),"name"=>"unit_name[]"]) }}
{{ Form::label(__('lbl.conversion')) }} {{ Form::text('conversion', $ppo->conversion, [ "class"=>"form-control mxlen_6","placeholder"=>__('lbl.conversion'),"name"=>"conversion[]"]) }}
{{ Form::label(__('lbl.barcode')) }} {{ Form::text('barcode[]', $ppo->barcode, ["class"=>"form-control mxlen_10","placeholder"=>__('lbl.barcode'),"name"=>"barcode[]"]) }}
{{ Form::label(__('lbl.unit')) }} {{ Form::select('unit', $inventory_unit, $ppo->unit,['class'=>'form-control',"name"=>"unit[]"]) }}
{{ Form::label(__('lbl.active')) }}
{{ Form::select('inv_active[]', ['YES'=>'YES','NO'=>'NO'], $ppo->inv_active,['class'=>'form-control inv_active',"name"=>"inv_active[]"]) }}
{{ Form::label(__('lbl.primary')) }}
{{ Form::select('primary[]', ['YES'=>'YES','NO'=>'NO'], $ppo->primary,['class'=>'form-control']) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button(' ', ["data-id"=>$key+1,"class"=>"btn btn-primary btn-sm clickbtncommon remove_stockitemedit ","name"=>"remove_stockitemedit[]"]) }}
@endforeach @endif