{!! Form::label('sku_prefix', __('business.sku_prefix') . ':') !!} {!! Form::text('sku_prefix', $business->sku_prefix, ['class' => 'form-control text-uppercase']); !!}
@if(!config('constants.disable_expiry', true))
{!! Form::label('enable_product_expiry', __( 'product.enable_product_expiry' ) . ':') !!} @show_tooltip(__('lang_v1.tooltip_enable_expiry'))
{!! Form::checkbox('enable_product_expiry', 1, $business->enable_product_expiry ); !!}
{!! Form::label('on_product_expiry', __('lang_v1.on_product_expiry') . ':') !!} @show_tooltip(__('lang_v1.tooltip_on_product_expiry'))
{!! Form::select('on_product_expiry', ['keep_selling'=>__('lang_v1.keep_selling'), 'stop_selling'=>__('lang_v1.stop_selling') ], $business->on_product_expiry, ['class' => 'form-control pull-left', 'style' => 'width:60%;']); !!} @php $disabled = ''; if($business->on_product_expiry == 'keep_selling'){ $disabled = 'disabled'; } @endphp {!! Form::number('stop_selling_before', $business->stop_selling_before, ['class' => 'form-control pull-left', 'placeholder' => 'stop n days before', 'style' => 'width:40%;', $disabled, 'required', 'id' => 'stop_selling_before']); !!}
@endif
{!! Form::label('default_unit', __('lang_v1.default_unit') . ':') !!}
{!! Form::select('default_unit', $units_dropdown, $business->default_unit, ['class' => 'form-control select2', 'style' => 'width: 100%;' ]); !!}
@show_tooltip(__('lang_v1.sub_units_tooltip'))
@show_tooltip(__('lang_v1.tooltip_enable_racks'))