<style>
sup {
    color:red;
    position: initial;
    font-size: 111%;
}
</style>
<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
          <div class="row">
		  <div class="col-md-2">
		  </div>
            
            <div class="col-md-8 grid-margin stretch-card">
              <div class="card">
                <div class="card-body">
                  <h4 class="card-title"><?php echo e(__('messages.Add_Coupon')); ?></h4>
                   <?php if(count($errors) > 0): ?>
                      <?php if($errors->any()): ?>
                        <div class="alert alert-primary" role="alert">
                          <?php echo e($errors->first()); ?>

                          <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">×</span>
                          </button>
                        </div>
                      <?php endif; ?>
                  <?php endif; ?>
                  <form class="forms-sample" action="<?php echo e(route('resturantaddcoupon')); ?>" method="post" enctype="multipart/form-data">
                      <?php echo e(csrf_field()); ?>


                    <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Coupon_Name')); ?><sup>*</sup></label>
                      <input type="text" class="form-control" id="exampleInputName1" name="coupon_name" placeholder="<?php echo e(__('messages.Enter')); ?> <?php echo e(__('messages.Coupon_Name')); ?>">
                    </div>
                    
                    
                
                <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Coupon_Code')); ?></label>
                      <input type="text" class="form-control" id="exampleInputName1" name="coupon_code" maxlength="6" placeholder="<?php echo e(__('messages.Coupon_Code')); ?>">
                    </div>
                   
                 <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Coupon_Description')); ?></label>
                      <input type="text" class="form-control" id="exampleInputName1" name="coupon_desc" placeholder="<?php echo e(__('messages.Coupon_Description')); ?>">
                    </div>  
                   
                   <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Start_Date')); ?></label>
                      <input type="date" class="form-control" id="exampleInputName1" name="valid_to" placeholder="<?php echo e(__('messages.Start_Date')); ?>">
                    </div> 
            
                    <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.End_Date')); ?></label>
                      <input type="date" class="form-control" id="exampleInputName1" name="valid_from" placeholder="<?php echo e(__('messages.End_Date')); ?>">
                    </div>
                    
                 <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Cart_Value')); ?></label>
                      <input type="text" class="form-control" id="exampleInputName1" name="cart_value" placeholder="<?php echo e(__('messages.Cart_Value')); ?>">
                    </div> 
                    
                    <div class="form-group">
                      <label for="cod"><?php echo e(__('messages.Discount_Value')); ?></label>
                      <select class="form-control" name="coupon_type">
                          <option value="">---Select---</option>
                          <option value="percentage">Percentage</option>
                          <option value="price">Price</option>
                      </select><br>
                      
                      <input type="text" class="form-control" id="exampleInputName1" name="coupon_discount" placeholder="Enter Amount">
                    </div>
            
                    <div class="form-group">
                      <label for="exampleInputName1"><?php echo e(__('messages.Coupon_Description')); ?></label>
                      <input type="text" class="form-control" id="exampleInputName1" name="restriction" placeholder="<?php echo e(__('messages.How_Many_times_single_user_Apply_this_coupon')); ?>">
                    </div>
                    
                    <button type="submit" class="btn btn-success mr-2"><?php echo e(__('messages.Submit')); ?></button>
                    <!--
                    <button class="btn btn-light">Cancel</button>
                    -->
                     <a href="<?php echo e(route('resturantcouponlist')); ?>" class="btn btn-light"><?php echo e(__('messages.Cancel')); ?></a>
                  </form>
                </div>
              </div>
            </div>
             <div class="col-md-2">
		  </div>
     
          </div>
        </div>
       </div> 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
        	$(document).ready(function(){
        	
                $(".des_price").hide();
                
        		$(".img").on('change', function(){
        	        $(".des_price").show();
        			
        	});
        	});
</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('resturant.layout.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>