<style>
    .company-logo img {
    margin-top: 0px !important;
    width: 100%;
    height: 175px !important;
    object-fit: cover !important;
}
 .approving-dealer .quote-btns > div {
    width: 50%;
    margin-right: 7px !important;
} 
    
  .quote-btns > div a, .quote-btns > div button {
    width: 100%;
}  
 .quote-btns > div a button {
    border-radius: 8px;
}   
.dealer-details {
    padding: 20px 20px 10px 20px !important;
}    
  img.placeh.img-fluid {
    object-fit: contain !important;
}  
</style>

<?php $__env->startSection('content'); ?>
<div class="common-content">
          <div class="page-content">
                <div class="page-heading">
                    <div class="headings">
                        <h6><?php echo e($title); ?></h6>
                    </div>
                </div>
              
                <div class="dashboard-cnts">
                   <!-- <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>Country</label>
                                   <select class="form-control" id="sel1">
                                    <option>Select</option>
                                  </select>
                                  </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" id="sel1">
                                    <option>Select</option>
                                  </select>
                                  </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>Dealers</label>
                                   <select class="form-control" id="sel1">
                                    <option>Select</option>
                                  </select>
                                  </div>
                            </div>
                          </div>
                    </div>-->
                    
                    <div class="row">
                        
                    <?php $__currentLoopData = $all_dealers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$alldealers): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
                            <div class="approving-dealer">
                                <div class="company-logo">
					<?php if(!empty($alldealers->pro_pic)): ?>
                                    		<img src="<?php echo e(url('user_files')); ?>/<?php echo e($alldealers->pro_pic); ?>">
					<?php else: ?>
						<img class="placeh" src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
					<?php endif; ?>
                                </div>
                                <div class="dealer-details">
                                    <h3  class="company-name"><?php echo e($alldealers->name); ?>-<?php if($alldealers->user_type==3): ?> Manufacturer <?php else: ?> Dealer <?php endif; ?></h3>
                                    <ul>
                                        <li>
                                            <i class="fas fa-map-marker-alt"></i>
                                            <span><?php echo e($alldealers->address); ?></span>
                                        </li>
                                        <li>
                                            <i class="fas fa-phone-alt"></i>
                                            <span><?php echo e($alldealers->phone_no); ?></span>
                                        </li>
                                       <!-- <li>
                                            <i class="fas fa-envelope"></i>
                                            <span class="web">www.hopkinsmedicine.org</span>
                                        </li> -->
                                    </ul>
                                <div class="quote-btns">
                                     <div style="margin: 0 0px 7px;">
                                            <a href="<?php echo e(url('buyers/viewvendordetails')); ?>/<?php echo e($alldealers->vendor_id); ?>"><button class="btn common-btn blue-btn"> View</button></a>
                                    </div>
                                    <div style="margin: 0 0px 7px;">
                                        <a href="<?php echo e(url('buyers/acceptvendor')); ?>/<?php echo e($alldealers->vid); ?>/<?php echo e($alldealers->vendor_id); ?>"><button class="btn common-btn green-btn"><i class="far fa-check-circle" aria-hidden="true"></i> Approve</button></a>
                                    </div>
                                    <div style="margin: 0 0px 7px;">
                                        <a href="<?php echo e(url('buyers/rejectvendor')); ?>/<?php echo e($alldealers->vid); ?>/<?php echo e($alldealers->vendor_id); ?>"><button class="btn common-btn red-btn"><i class="fas fa-ban" aria-hidden="true"></i> Reject</button></a>
                                    </div>
                              </div>
                                </div>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                    
                    <?php if(count($approved_dealers)!=0): ?>
                    
                    <div class="row">
                        <div class="col-12">
                            <h5 class="box-head">Our Approved Dealers And Manufacturers</h5>
                        </div>
                    </div>
                    <?php endif; ?>
                    
                    <div class="row">
                    <?php $__currentLoopData = $approved_dealers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$approveddealers): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="col-lg-4 col-md-6 col-sm-6 col-12">
                            <div class="approving-dealer wraper">
                                <div class="company-logo">
                                    <?php if(!empty($approveddealers->pro_pic)): ?>
                                                            <img class="img-fluid" src="<?php echo e(url('user_files')); ?>/<?php echo e($approveddealers->pro_pic); ?>">
                                    <?php else: ?>
                                        <img  class="placeh img-fluid"  src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
                                    <?php endif; ?>
                                </div>
                               
                                    <div class="dealer-details">
                                        <h3  class="company-name company-name-rs"><?php echo e($approveddealers->name); ?>-sdsd <?php if($approveddealers->user_type==3): ?> Manufacturer <?php else: ?> Dealer <?php endif; ?></h3>
                                        <ul>
                                            <li>
                                                <i class="fas fa-map-marker-alt"></i>
                                                <span><?php echo e($approveddealers->address); ?></span>
                                            </li>
                                            <li>
                                                <i class="fas fa-phone-alt"></i>
                                                <span><?php echo e($approveddealers->phone_no); ?></span>
                                            </li>
                                           <!-- <li>
                                                <i class="fas fa-envelope"></i>
                                                <span class="web">www.hopkinsmedicine.org</span>
                                            </li> -->
                                        </ul>
                                         <div class="quote-btns">
                                         <div style="margin: 0 0px 7px;">
                                            <a href="<?php echo e(url('buyers/viewvendordetails')); ?>/<?php echo e($approveddealers->vendor_id); ?>"><button class="btn common-btn blue-btn"> View</button></a>
                                        </div>
                                        <div style="margin: 0 0px 7px;     margin-right: 0px !important;" >
                                            <a href="<?php echo e(url('buyers/deapprovevendor')); ?>/<?php echo e($approveddealers->vid); ?>"><button class="btn common-btn red-btn">Remove Vendor</button></a>
                                        </div>
                              </div>
                                    </div>
                                
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
          </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>
<?php if(Session::has('message')): ?>
      swal({
        title: "",
        text: "<?php echo e(Session::get('message')); ?>",
        type: "success",
        showCancelButton: false,
        dangerMode: false,
        confirmButtonText: 'OK',

    });
<?php endif; ?>
<?php if(Session::has('errormessage')): ?>
      swal({
        title: "",
        text: "<?php echo e(Session::get('errormessage')); ?>",
        type: "error",
        showCancelButton: false,
        dangerMode: true,
        confirmButtonText: 'OK',

    });
<?php endif; ?>
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/buyers/approved_dealers.blade.php ENDPATH**/ ?>