

<?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 Vendor</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('update-vendor',$vendor->vendor_id)); ?>" method="post" enctype="multipart/form-data">
                      <?php echo e(csrf_field()); ?>

                    <div class="form-group">
                      <label for="exampleInputName1">vendor Name</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="vendor_name" value="<?php echo e($vendor->vendor_name); ?>">
                    </div>
                     <div class="form-group">
                      <label for="exampleInputName1">Address</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="vendor_address" value="<?php echo e($vendor->vendor_loc); ?>">
                    </div>
                     
                     <div class="form-group">
                      <label>Vendor Logo</label>
                      
                      <input type="hidden" name="old_vendor_image" value="<?php echo e($vendor->vendor_logo); ?>" class="file-upload-default">
                      <div class="input-group col-xs-12">
                      <input type="file" name="vendor_image" class="file-upload-default">
                      </div>
                    </div>
                     
                    
                      <div class="form-group">
                      <label for="exampleInputName1">Owner Name</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="owner_name" value="<?php echo e($vendor->owner); ?>">
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1">Opening Time</label>
                      <input type="time" class="form-control" name="opening_time" value="<?php echo e($vendor->opening_time); ?>">
                    </div>
                    <div class="form-group">
                      <label for="exampleInputName1">Closing Time</label>
                      <input type="time" class="form-control" name="closing_time" value="<?php echo e($vendor->closing_time); ?>">
                    </div>
                   
                      <div class="form-group">
                      <label for="exampleInputName1">vendor Email</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="vendor_email" value="<?php echo e($vendor->vendor_email); ?>">
                    </div>
                     <div class="form-group">
                      <label for="exampleInputName1">vendor Phone</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="vendor_phone" value="<?php echo e($vendor->vendor_phone); ?>">
                    </div>
                     <div class="form-group">
                      <label for="exampleInputName1">Password</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="password1" placeholder="Enter password">
                    </div>
                    
                     <div class="form-group">
                      <label for="exampleInputName1">Confirm Password</label>
                      <input type="text" class="form-control" id="exampleInputName1" name="password2" placeholder="confirm password">
                    </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('cityadmin')); ?>" 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(); ?>