
<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">Edit Deal products</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('UpdateDealproduct', $deal_p->deal_id)); ?>" method="post" enctype="multipart/form-data">
                      <?php echo e(csrf_field()); ?>


                    <div class="form-group">
                          <label class="bmd-label-floating">Select Product</label>
                          <select name="varient_id" class="form-control">
                              <option disabled selected>Select Product</option>
                              <?php $__currentLoopData = $deal; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deals): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        		          	<option value="<?php echo e($deals->varient_id); ?>" <?php if( $deals->varient_id == $deal_p->varient_id): ?> selected <?php endif; ?>><?php echo e($deals->product_name); ?> (<?php echo e($deals->quantity); ?><?php echo e($deals->unit); ?>)</option>
        		              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                              
                          </select>
                        </div>

                   
                 <div class="form-group">
                      <label for="exampleInputName1">Deal Price</label>
                      <input type="text" class="form-control" id="exampleInputName1" value="<?php echo e($deal_p->deal_price); ?>" name="deal_price" placeholder="Coupon Description ">
                    </div>  
                   
                   <div class="form-group">
                      <label for="exampleInputName1">Start Date</label>
                      <input type="date" class="form-control" id="exampleInputName1" value="<?php echo e($deal_p->valid_from); ?>"  name="valid_from" placeholder="">
                    </div> 
            
                    <div class="form-group">
                      <label for="exampleInputName1">End Date</label>
                      <input type="date" class="form-control" id="exampleInputName1" value="<?php echo e($deal_p->valid_to); ?>" name="valid_to" placeholder="">
                    </div>
                    
                 
                    
                    <button type="submit" class="btn btn-success mr-2">Submit</button>
                    <!--
                    <button class="btn btn-light">Cancel</button>
                    -->
                    <a href="<?php echo e(route('dealroduct')); ?>" class="btn btn-light">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('vendor.layout.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>