<link rel="stylesheet" type="text/css" href="<?php echo e(url('dropzone/dist/min/dropzone.min.css')); ?>">
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" />
<style>              
.img-prew{
width: 100px;
height: 100px;
margin-top: -95px;
border-radius: 50%;
margin-left: -5px;
       }
.post-imgPrw{
height: 50px;
margin-left: 10px;
width: 50px;
margin-top: 0px;
       }   
       

.invalid-feedback {
  display:block;
}
.image img {
    width: 247px;
    height: 271px;
    object-fit: cover;
}
</style>
<?php $__env->startSection('content'); ?>
<div class="common-content">
          <div class="page-content">
                <div class="page-heading">
                    <div class="headings">
                        <h6>Edit Vendors</h6>
                    </div>
                </div>
                <form method="POST" id="add_vendor" action="<?php echo e(url('admin/updatevendor')); ?>"  enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="dashboard-cnts">
                    <div class="bid-stats bidplace">
                        <div class="row">

                          
                            <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Name</label>
                                        <input type="hidden" class="form-control <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="userid" id="name" value="<?php echo e($getvendor->id); ?>" required autocomplete="name" autofocus>
                                        <input type="text" class="form-control <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="name" id="name" value="<?php echo e($getvendor->name); ?>" required autocomplete="name" autofocus>
                                        <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Email</label>
                                        <input type="text" class="form-control <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="email" name="email" value="<?php echo e($getvendor->email); ?>" readonly autocomplete="email" autofocus>
                                        <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Password</label>
                                        <input type="text" class="form-control <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="password" name="password" value="<?php echo e($getvendor->original_password); ?>" required autocomplete="password" autofocus>
                                        <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>

                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Address</label>
                                        <input type="text" class="form-control <?php $__errorArgs = ['address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="address" name="address" value="<?php echo e($getvendor->address); ?>" required autocomplete="address" autofocus>
                                        <?php $__errorArgs = ['address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>
                              
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Country</label>
                                       
					<select class="form-control <?php $__errorArgs = ['state'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="country" name="state" required autocomplete="state" autofocus>
                                        <option>Select</option>
                                        <option value="101" selected>India</option>
                                      	</select>
                                        <?php $__errorArgs = ['state'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>State</label>
                                        
					<select class="form-control <?php $__errorArgs = ['city'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="state" name="city" required autocomplete="city" autofocus>
                                        <option>Select</option>
                                        <?php $__currentLoopData = $states; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $state): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($state->id); ?>" <?php if($getvendor->city == $state->id) {?> selected <?php } ?>><?php echo e($state->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                      </select>
                                        <?php $__errorArgs = ['city'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Zipcode</label>
                                        <input type="text" class="form-control <?php $__errorArgs = ['zipcode'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="zipcode" name="zipcode" value="<?php echo e($getvendor->zipcode); ?>" required autocomplete="zipcode" autofocus>
                                        <?php $__errorArgs = ['zipcode'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Phone No</label>
                                        <input type="text" class="form-control <?php $__errorArgs = ['phone_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="phone_no" name="phone_no" value="<?php echo e($getvendor->phone_no); ?>" readonly autocomplete="phone_no" autofocus>
                                        <?php $__errorArgs = ['phone_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Contact Person Name</label>
                                        <input type="text" class="form-control <?php $__errorArgs = ['contact_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="contact_name" name="contact_name" value="<?php echo e($getvendor->contact_name); ?>" required autocomplete="contact_name" autofocus>
                                        <?php $__errorArgs = ['contact_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Contact Person Phone No</label>
                                        <input type="text" class="form-control <?php $__errorArgs = ['contact_phone_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="contact_phone_no" name="contact_phone_no" value="<?php echo e($getvendor->contact_phone_no); ?>" required autocomplete="contact_phone_no" autofocus>
                                        <?php $__errorArgs = ['contact_phone_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>

                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Vendor Type</label>
                                        <select id="vendor_type" class="form-control <?php $__errorArgs = ['vendor_type'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="sel1" name="vendor_type"  required autocomplete="vendor_type" autofocus>
                                        <option value="">Select</option>
                                        <option value="Dealer" <?php if($getvendor->vendor_type == "Dealer"){?>selected<?php } ?>>Dealer</option>
                                       
                                        <option value="Manufacturer" <?php if($getvendor->vendor_type == "Manufacturer"){?>selected<?php } ?>>Manufacturer</option>
                                                              
                                      </select>
                                      <?php $__errorArgs = ['vendor_type'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="invalid-feedback" role="alert">
                                        <strong><?php echo e($message); ?></strong>
                                    </span>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>

                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                     <label>Manufacturer</label>                           
                                      <select id="manufacturer" class="form-control <?php $__errorArgs = ['manufacturer'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> js-example-basic-multiple" id="sel1" name="manufacturer[]" value=""  autocomplete="manufacturer" autofocus  multiple="multiple">
                                        <option value="">Select</option>
                                        <?php $__currentLoopData = $manufacturers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $manufacturer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($manufacturer->id); ?>"
                                            <?php foreach($getdealers as $dealers){ if($dealers->manufacture_id == $manufacturer->id){ ?>Selected<?php }} ?>><?php echo e($manufacturer->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                      </select>
                                      <?php $__errorArgs = ['manufacturer'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="invalid-feedback" role="alert">
                                        <strong><?php echo e($message); ?></strong>
                                    </span>
                                      <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>

                             <!-- <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                     <label>Buyer Phone No</label>
                                       <input type="text" id="buyer_ph_no" class="form-control <?php $__errorArgs = ['buyer_ph_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="buyer_ph_no" value="<?php echo e($getvendor->buyer_ph_no); ?>" required autocomplete="buyer_ph_no" autofocus>
                                       <?php $__errorArgs = ['buyer_ph_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <span class="invalid-feedback" role="alert">
                                        <strong><?php echo e($message); ?></strong>
                                    </span>
                                      <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>-->

                             <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>GST/VAT No</label>
                                        <input type="text" class="form-control <?php $__errorArgs = ['gst_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="gst_no" name="gst_no" value="<?php echo e($getvendor->gst_no); ?>" required autocomplete="gst_no" autofocus>
                                        <?php $__errorArgs = ['gst_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <span class="invalid-feedback" role="alert">
                                                <strong><?php echo e($message); ?></strong>
                                            </span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                      </div>
                                </div>
                              </div>

                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Image</label>
                                        <div class="custom-file" style="margin-bottom: 25px;">
                                            <!-- <input type="file" class="custom-file-input" id="customFile" name="productcatalouge">
                                            <label class="custom-file-label" for="customFile">Browse</label> -->
                                            <div class="dropzone dz-clickable Dz-box happy-box" id="dropzonewidget" onClick="changePicimage()"  style="width: 120px;">
                                              <?php if(!empty($getvendor->pro_pic)): ?>
                                              <img src="<?php echo e(url('user_files')); ?>/<?php echo e($getvendor->pro_pic); ?>" title="Click here to upload"  id="uploadimageimage" style="border-style: outset;width: 50px;height: 50px;cursor: pointer;">
                                              <?php else: ?>
                                              <img src="<?php echo e(url('assets/images/upload.png')); ?>" title="Click here to upload"  id="uploadimageimage" style="border-style: outset;width: 50px;height: 50px;cursor: pointer;">
                                              <?php endif; ?>
                                              <input type="file" name="productimage" id="post_imageimage" onchange="readURLimage(this);" style="display:none">

                                              <img id="blahimage" src="#" class="post-imgPrw" style="display:none"/> 
                                              <iframe id="blah1image"  class="post-imgPrw" style="display:none" src="#">
                                              </iframe>
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>

                              <?php 
                              if($getvendor->vendor_type == "Dealer"){?>

                                <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>CIN number</label>
                                        <input type="text" class="form-control " id="contact_phone_no" name="CIN_number" value="<?php echo e($getvendor->CIN_number); ?>" required autocomplete="CIN_number" autofocus>
                                        
                                      </div>
                                </div>
                              </div>

                               <?php if(!empty($getvendor->certificate1)): ?>
                               <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>GST/VAT number and certificate</label>
                                        <div class="custom-file">
                                            
                                            <div class="dropzone dz-clickable Dz-box happy-box" style="width: 120px;">
                                             
                                               <a target="_blank" class="eye" href="https://meddbot.com/uploaded_files/<?php echo e($getvendor->certificate1); ?>"><i class="fa fa-eye" aria-hidden="true"></i>View</a>
                                             
                                             
                                             
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>
                               <?php endif; ?>
                               <?php if(!empty($getvendor->certificate2)): ?>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>ISO</label>
                                        <div class="custom-file">
                                            
                                            <div class="dropzone dz-clickable Dz-box happy-box" style="width: 120px;">
                                              
                                               <a target="_blank" class="eye" href="https://meddbot.com/uploaded_files/<?php echo e($getvendor->certificate2); ?>"><i class="fa fa-eye" aria-hidden="true"></i>View</a>
                                              
                                             
                                             
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>
                               <?php endif; ?>

                               <?php if(!empty($getvendor->certificate3)): ?>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Quality Management Certificates</label>
                                        <div class="custom-file">
                                            
                                            <div class="dropzone dz-clickable Dz-box happy-box" style="width: 120px;">
                                              
                                               <a target="_blank" class="eye" href="https://meddbot.com/uploaded_files/<?php echo e($getvendor->certificate3); ?>"><i class="fa fa-eye" aria-hidden="true"></i>View</a>
                                             
                                             
                                             
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>
                               <?php endif; ?>

                               <?php if(!empty($getvendor->certificate4)): ?>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Payment details</label>
                                        <div class="custom-file">
                                            
                                            <div class="dropzone dz-clickable Dz-box happy-box" style="width: 120px;">
                                              
                                               <a target="_blank" class="eye" href="https://meddbot.com/uploaded_files/<?php echo e($getvendor->certificate4); ?>"><i class="fa fa-eye" aria-hidden="true"></i>View</a>
                                              
                                              
                                             
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>
                              <?php endif; ?>

                              <?php 
                              }

                              if($getvendor->vendor_type == "Manufacturer"){?>
                                <?php if(!empty($getvendor->certificate1)): ?>
                                 <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>GST/VAT</label>
                                        <div class="custom-file">
                                            
                                            <div class="dropzone dz-clickable Dz-box happy-box" style="width: 120px;">
                                              
                                               <a target="_blank" class="eye" href="https://meddbot.com/uploaded_files/<?php echo e($getvendor->certificate1); ?>"><i class="fa fa-eye" aria-hidden="true"></i>View</a>
                                              
                                             
                                             
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>
                               <?php endif; ?>

                               <?php if(!empty($getvendor->certificate2)): ?>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Udyog Adhar / Manufacturer registration certificate</label>
                                        <div class="custom-file">
                                            
                                            <div class="dropzone dz-clickable Dz-box happy-box" style="width: 120px;">
                                             
                                               <a target="_blank" class="eye" href="https://meddbot.com/uploaded_files/<?php echo e($getvendor->certificate2); ?>"><i class="fa fa-eye" aria-hidden="true"></i>View</a>
                                              
                                              
                                             
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>
                              <?php endif; ?>
                               <?php if(!empty($getvendor->certificate3)): ?>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>If Indian Manufacturers SSI part 1 and part 2</label>
                                        <div class="custom-file">
                                            
                                            <div class="dropzone dz-clickable Dz-box happy-box" style="width: 120px;">
                                             
                                               <a target="_blank" class="eye" href="https://meddbot.com/uploaded_files/<?php echo e($getvendor->certificate3); ?>"><i class="fa fa-eye" aria-hidden="true"></i>View</a>
                                              
                                              
                                             
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>
                              <?php endif; ?>

                               <?php if(!empty($getvendor->certificate4)): ?>
                              <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group">
                                        <label>Quality certificates like CE, FDA, ISO etc</label>
                                        <div class="custom-file">
                                            
                                            <div class="dropzone dz-clickable Dz-box happy-box" style="width: 120px;">
                                             
                                               <a target="_blank" class="eye" href="https://meddbot.com/uploaded_files/<?php echo e($getvendor->certificate4); ?>"><i class="fa fa-eye" aria-hidden="true"></i>View</a>
                                             
                                             
                                             
                                            </div>
                                          </div>
                                      </div>                    
                                      </div>
                              </div>
                               <?php endif; ?>
                              <?php 
                            }
                            ?>



                             <div class="col-lg-12 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group rs-form-group">
                                        <label> Description</label>
                                        <textarea rows='5' name="description" value="<?php echo e($getvendor->description); ?>" required><?php echo e($getvendor->description); ?></textarea>
                                      </div>
                                </div>
                              </div>
                     </div>
                        <div class="row">
                         <div class="col-12">
                            <div class="green-button green-button2">
                                <button id="create">Submit</button>
                             </div> 
                         </div>
                      </div>
                </div>
                </form>
          </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script src="<?php echo e(url('dropzone/dist/min/dropzone.min.js')); ?>" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script>

<script>  

function readURLimage(input) {
  if (input.files && input.files[0]) {
        
    var file = input.files[0];
    var fileType = file["type"];

var validImageTypes = ["image/png", "image/jpeg", "image/png"];
if ($.inArray(fileType, validImageTypes) < 0) {
     
     var reader = new FileReader();

            reader.onload = function (e) {
                $('#blah1image')
                    .attr('src', e.target.result)
            };

            reader.readAsDataURL(input.files[0]);
}
else{

   var reader = new FileReader();

            reader.onload = function (e) {
                $('#blahimage')
                    .attr('src', e.target.result)
            };

            reader.readAsDataURL(input.files[0]);
  }
       
 }
    }

  function changePicimage(){ 
      
      document.getElementById('post_imageimage').click();
      
          $('#post_imageimage').change(function() {
             var filename = $('#post_imageimage').val();
 
        var fileExtension = ['jpeg', 'jpg', 'png', 'gif'];
        if ($.inArray(filename.split('.').pop().toLowerCase(), fileExtension) == -1) {
        
                 if(filename){
                 $('#blahimage').hide();
                 $('#blah1image').show();
                 $('#uploadimageimage').hide();
                $(".invalid-feedback").css("display", "none");

              }
              $('#post_imageimage').html(filename);
           
        }
        else{
        
           if(filename){
                $('#blah1image').hide();
                $('#blahimage').show();
                $('#uploadimageimage').hide();
                $(".invalid-feedback").css("display", "none");

              }
              $('#post_imagereport').html(filename);
        
        }  
       });
    }

$('#country').on('change', function() {
      var countryid = this.value;
      var APP_URL = <?php echo json_encode(url('/getstates1')); ?> ;
      var saveData = $.ajax({
            type: 'GET',
            url: APP_URL+'/'+countryid,
            data: { countryid: countryid, _token: '<?php echo e(csrf_token()); ?>' },
            dataType: "text",
            success: function(resultData) { 
              $("#state").html(resultData);
            }
            });
            
    });
</script>
<script type="text/javascript">
$(".js-example-basic-multiple").select2({
  placeholder: "Select a Manufacturer"
});
</script>

  <script>
$("#create").click(function(){
    //alert("bbbb");
	$("#add_vendor").validate({
		ignore: [],
        rules: {
            "name": {
                required: true
               
            },
			"email": {
                required: true
               
            },
			"password": {
                required: true,
                minlength: 8
               
            },
            "address": {
                required: true
               
            },
            "state": {
                required: true
               
            },
            "city": {
                required: true
               
            },
            "zipcode": {
                required: true
               
            },
            "phone_no": {
                required: true
               
            },
            
             "contact_phone_no": {
                required: true
               
            }, 
            "vendor_type": {
                required: true
               
            },
            
            
            "gst_no": {
                required: true
               
            },
            "description": {
                required: true
               
            },
        },
        submitHandler: function(form, e) {
             $(".pageloader").show();
            $(".pageloader").delay(5000).fadeOut("slow");
		   form.submit();
        }
    });
});
$(function(){
    $('#add_vendor').on('submit', function(event){
        event.preventDefault();
       
    });
});
</script>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main_admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/admin/editvendor.blade.php ENDPATH**/ ?>