

<?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">Update Varient</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('cityadminupdate-varient',$product->varient_id)); ?>" method="post" enctype="multipart/form-data">
                      <?php echo e(csrf_field()); ?>

                      
                     <div class="form-group">
                      <label>Varient image</label>
                      
                      <input type="hidden" name="old_product_image" value="<?php echo e($product->varient_image); ?>" class="file-upload-default">
                      <div class="input-group col-xs-12">
                      <input type="file" name="product_image" class="file-upload-default">
                      </div>
                    </div>
                
                
                <div class="form-group">
                      <label for="exampleInputName1">MRP</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="mrp" value="<?php echo e($product->mrp); ?>">
                    </div>
                <div class="form-group">
                      <label for="exampleInputName1">Price</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="price" <?php if($product->price == NULL): ?> placeholder="Enter price" <?php else: ?> value="<?php echo e($product->price); ?>" <?php endif; ?> >
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1">Size</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="size" <?php if($product->varient_size == NULL): ?> placeholder="Enter size if any" <?php else: ?> value="<?php echo e($product->varient_size); ?>" <?php endif; ?>>
                    </div> 
            
                    <div class="form-group">
                      <label for="exampleInputName1">Color</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="color"  <?php if($product->varient_color == NULL): ?> placeholder="Enter color name if any" <?php else: ?> value="<?php echo e($product->varient_color); ?>" <?php endif; ?>>
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1">Subscription Price</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="subscription_price" <?php if($product->subscription_price == NULL): ?> placeholder="Enter Subscription price" <?php else: ?>   value="<?php echo e($product->subscription_price); ?>" <?php endif; ?>>
                    </div>
                    
                    <div class="form-group">
                      <label for="exampleInputName1">Unit quantity</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="qty"  <?php if($product->varient_unit_value == NULL): ?> placeholder="Enter unit value no." <?php else: ?> value="<?php echo e($product->varient_unit_value); ?>" <?php endif; ?>>
                    </div>
                     
                <div class="form-group">
                      <label for="exampleInputName1">Stock</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="stock" value="<?php echo e($product->stock); ?>" placeholder="Enter stock quantity in numbers">
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1">Unit</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="unit" <?php if($product->varient_unit == NULL): ?> placeholder="KG/Ltr/Pkts/Pcs" <?php else: ?>  value="<?php echo e($product->varient_unit); ?>" <?php endif; ?>>
                    </div>     
                     
                    <div class="form-group">
                      <label for="exampleInputName1">product Description</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="product_description" value="<?php echo e($product->varient_desc); ?>" placeholder="Enter description">
                    </div>
                      
                    <button type="submit" class="btn btn-success mr-2">Submit</button>
                    <!--
                    <button class="btn btn-light">Cancel</button>
                    -->
                     <a href="" 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('cityadmin.layout.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>