{{ $title }}
{{ 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', old('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,Input::old('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,Input::old('discount_type'),["class"=>"form-control","id"=>"discount_type","name"=>"discount_type"]) }}
{{ Form::label( __('lbl.price_tier') ) }}
{{ Form::select('price_tier', $price_tier,Input::old('price_tier'),["class"=>"form-control","id"=>"price_tier","name"=>"price_tier"]) }}
{{ Form::label( __('lbl.dis_barcode') ) }}
{{ Form::text('barcode', old('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,Input::old('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,Input::old('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', old('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, Input::old('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,Input::old('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', old('maximum_off_input'), ["class"=>"form-control mxlen_20","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', old('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,Input::old('qualification_type'),["class"=>"form-control","id"=>"qualification_type","name"=>"qualification_type"]) }}
{{ Form::label( __('lbl.qualification_subtype') ) }}
{{ Form::select('qualification_subtype', $qualification_subtype,Input::old('qualification_subtype'),["class"=>"form-control","id"=>"qualification_subtype","name"=>"qualification_subtype"]) }}
{{ Form::label('qualifying_product') }}
{{ Form::select('product_id', $products, '',["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, '',["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,Input::old('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', old('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', old('barcode'), ["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')) }}
{{ __('lbl.effective_dates_time') }}
{{ __('lbl.all') }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('all_start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"all_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('all_end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"all_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_allitem form-control clickbtncommon btn-sm btn btn-primary ".$delete_allowed."","id"=>"remove_all_item","name"=>"remove_all_item[]"]) }}
{{ __('lbl.monday') }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('mon_start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"mon_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('mon_end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"mon_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_monitem form-control clickbtncommon btn-sm btn btn-primary ".$delete_allowed.""]) }}
{{ __('lbl.tuesday') }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('tues_start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"tues_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('tues_end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"tues_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_tuesitem form-control clickbtncommon btn-sm btn btn-primary ".$delete_allowed.""]) }}
{{ __('lbl.wednesday') }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('wednes_start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"wednes_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('wednes_end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"wednes_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_wednesitem form-control clickbtncommon btn-sm btn btn-primary ".$delete_allowed.""]) }}
{{ __('lbl.thursday') }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('thurs_start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"thurs_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('thurs_end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"thurs_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_thursitem form-control clickbtncommon btn-sm btn btn-primary ".$delete_allowed.""]) }}
{{ __('lbl.friday') }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('fri_start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"fri_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('fri_end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"fri_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_friitem form-control clickbtncommon btn-sm btn btn-primary ".$delete_allowed.""]) }}
{{ __('lbl.saturday') }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('satur_start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"satur_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('satur_end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"satur_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_saturitem form-control clickbtncommon btn-sm btn btn-primary ".$delete_allowed.""]) }}
{{ __('lbl.sunday') }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('sun_start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"sun_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('sun_end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"sun_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_sunitem form-control clickbtncommon btn-sm btn btn-primary ".$delete_allowed.""]) }}
{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'clickbtncommon btn-sm btn btn-primary '.$add_edit_allowed.'', 'type' => 'submit']) }}
{{ __('lbl.cancel') }}