{{ __('lbl.discount_details') }}
{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn-sm btn btn-primary '.$add_edit_allowed, 'type' => 'submit']) }}
{{ __('lbl.cancel') }}
{{ __('lbl.discounts') }} {{ __('lbl.add') }}
{{ Form::label( __('lbl.name') ) }}
{{ Form::text('name', $discounts['name'], ["class"=>"form-control mxlen_15","placeholder"=>__('lbl.name'),"id"=>"name","name"=>"name"]) }}
@if ($errors->has('name'))
@endif
{{ Form::label( __('lbl.discount_function') ) }}
{{ Form::select('discount_function', $discount_function, $discounts['discount_function'],["class"=>"form-control","id"=>"discount_function","name"=>"discount_function"]) }}
@if ($errors->has('discount_function'))
@endif
{{ Form::label( __('lbl.discount_type') ) }}
{{ Form::select('discount_type', $discount_type,$discounts['discount_type'],["class"=>"form-control","id"=>"discount_type","name"=>"discount_type"]) }}
{{ Form::label( __('lbl.price_tier') ) }}
{{ Form::select('price_tier', $price_tier,$discounts['price_tier'],["class"=>"form-control","id"=>"price_tier","name"=>"price_tier"]) }}
{{ Form::label( __('lbl.dis_barcode') ) }}
{{ Form::text('barcode', $discounts['barcode'], ["class"=>"form-control mxlen_15","placeholder"=>__('lbl.dis_barcode'),"id"=>"barcode","name"=>"barcode"]) }}
@if ($errors->has('barcode'))
@endif
{{ Form::label( __('lbl.how_often_to_apply') ) }}
{{ Form::select('how_often_to_apply', $how_often_to_apply,$discounts['how_often_to_apply'],["class"=>"form-control","id"=>"how_often_to_apply","name"=>"how_often_to_apply"]) }}
{{ Form::label(__('lbl.variable_function')) }}
{{ Form::label(__('lbl.discount_at_item_level')) }}
{{ Form::label(__('lbl.discount_code')) }}
{{ Form::label(__('lbl.active')) }}
{{ Form::label(__('lbl.discount_code')) }}
{{ Form::label(__('lbl.display_on_ipad')) }}
{{ Form::label(__('lbl.tally')) }}
{{ Form::label(__('lbl.taxed')) }}
{{ Form::label(__('lbl.passwod_required')) }}
{{ Form::label(__('lbl.auto_apply')) }}
{{ Form::label( __('lbl.how_often_to_apply') ) }}
{{ Form::select('how_often_to_apply', $how_often_to_apply,$discounts['how_often_to_apply'],["class"=>"form-control","id"=>"how_often_to_apply","name"=>"how_often_to_apply"]) }}
{{ Form::label( __('lbl.display_name') ) }}
{{ Form::text('display_name', $discounts['display_name'], ["class"=>"form-control mxlen_15","placeholder"=>__('lbl.display_name'),"id"=>"display_name","name"=>"display_name"]) }}
@if ($errors->has('display_name'))
@endif
{{ Form::label( __('lbl.order_type') ) }}
{{ Form::select('order_type', $order_type, $discounts['order_type'],["class"=>"form-control","id"=>"order_type","name"=>"order_type"]) }}
{{ Form::label( __('lbl.stacked_discount_type') ) }}
{{ Form::select('stacked_discount_type', $stacked_discount_type,$discounts['stacked_discount_type'],["class"=>"form-control","id"=>"stacked_discount_type","name"=>"stacked_discount_type"]) }}
{{ __('lbl.basic_discount_rules') }}
{{ Form::label(__('lbl.wholesale')) }}
{{ Form::label(__('lbl.minimum_amount_to_entire_order')) }}
{{ Form::label(__('lbl.apply_to_base_product_only')) }}
{{ Form::label(__('lbl.require_product_from_each')) }}
{{ Form::label( __('lbl.maximum_off_input') ) }}
{{ Form::text('maximum_off_input', $discounts['maximum_off_input'], ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.maximum_off_input'),"id"=>"maximum_off_input","name"=>"maximum_off_input"]) }}
@if ($errors->has('maximum_off_input'))
@endif
{{ Form::label( __('lbl.minimum_amount') ) }}
{{ Form::text('minimum_amount', $discounts['minimum_amount'], ["class"=>"form-control mxlen_8 digits","placeholder"=>__('lbl.minimum_amount'),"id"=>"minimum_amount","name"=>"minimum_amount"]) }}
@if ($errors->has('minimum_amount'))
@endif
{{ Form::label( __('lbl.qualification_type') ) }}
{{ Form::select('qualification_type', $qualification_type,$discounts['qualification_type'],["class"=>"form-control","id"=>"qualification_type","name"=>"qualification_type"]) }}
{{ Form::label( __('lbl.qualification_subtype') ) }}
{{ Form::select('qualification_subtype', $qualification_subtype,$discounts['qualification_subtype'],["class"=>"form-control","id"=>"qualification_subtype","name"=>"qualification_subtype"]) }}
{{ Form::label('qualifying_product') }}
{{ Form::select('product_id', $products, ($discounts['product_id'] != "") ? explode(",",$discounts['product_id']) : '',["multiple"=>"multiple", "class"=>"form-control select2","id"=>"product_id","name"=>"product_id[]"]) }}
@if ($errors->has('product_id'))
@endif
{{ Form::label('qualifying_group') }}
{{ Form::select('qualifying_group', $qualifying_group, ($discounts['qualifying_group'] != "") ? explode(",",$discounts['qualifying_group']) : '',["multiple"=>"multiple","class"=>"form-control select2","id"=>"qualifying_group","name"=>"qualifying_group[]"]) }}
@if ($errors->has('qualifying_group'))
@endif
{{ Form::label( __('lbl.apply_to_weighted_products') ) }}
{{ Form::select('apply_to_weighted_products', $apply_to_weighted_products,$discounts['apply_to_weighted_products'],["class"=>"form-control","id"=>"apply_to_weighted_products","name"=>"apply_to_weighted_products"]) }}
{{ Form::label( __('lbl.re_price_amount') ) }}
{{ Form::text('re_price_amount', $discounts['re_price_amount'], ["class"=>"form-control mxlen_8 digits","placeholder"=>__('lbl.re_price_amount'),"id"=>"re_price_amount","name"=>"re_price_amount"]) }}
@if ($errors->has('re_price_amount'))
@endif
{{ __('lbl.advanced_discount_rules') }}
{{ Form::label( __('lbl.number_of_products_required_to_earn_discount') ) }}
{{ Form::text('number_of_products', $discounts['number_of_products'], ["class"=>"form-control numer_only mxlen_5","placeholder"=>__('lbl.number_of_products_required_to_earn_discount'),"id"=>"number_of_products","name"=>"number_of_products"]) }}
@if ($errors->has('number_of_products'))
@endif
{{ Form::label(__('lbl.apply_to_all_qualifiying')) }}
{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn-sm btn btn-primary '.$add_edit_allowed, 'type' => 'submit']) }}
{{ __('lbl.cancel') }}