

<?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 Area</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('Updateareavendor',$area->area_id)); ?>" method="post" enctype="multipart/form-data">
                      <?php echo e(csrf_field()); ?>

                  
                      <div class="form-group">
                       <?php $__currentLoopData = $city; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $city): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                      <input type="hidden" class="form-control" id="exampleInputName1" name="vendor_id" value="<?php echo e($city->vendor_id); ?>">
                     <h3><b align="center"><?php echo e($city->city_name); ?></b></h3>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1">area Name</label>
                      <input type="text" class="form-control" id="exampleInputName1" value="<?php echo e($area->area_name); ?>" name="area_name" placeholder="Enter area Name">
                    </div>
                    
                    <div class="form-group">
                      <label for="cod">COD</label>
                      <select class="form-control" name="cod">
                          <option value="Yes" <?php if($area->cod == 'Yes'): ?> selected <?php endif; ?>>Yes</option>
                          <option value="No" <?php if($area->cod == 'No'): ?> selected <?php endif; ?>>No</option>
                      </select>
                    </div>
                    
                    <div class="form-group">
                      <label for="deliverycharge">Delivery Charge</label>
                      <input type="text" class="form-control" id="deliverycharge" name="delivery_charge" placeholder="Enter Delivery Charge"  value="<?php echo e($area->delivery_charge); ?>">
                    </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('areavendor')); ?>" 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(); ?>