<?php $__env->startSection('content'); ?>
<div class="common-content">
          <div class="page-content">
                <div class="page-heading">
                    <div class="headings">
                        <h6>Dealers</h6>
                    </div>
                </div>
              
                <!--<a style="float:right;cursor: pointer;" href="<?php echo e(url('vendors/addvendorproducts')); ?>"><button class="btn-adbtn btn-success " style="cursor: pointer;" >Add Vendor Products</button></a>-->
               
              
                <?php if(count($vendorlist) > 0) {?>
              
         <div class="tableBox wraper">  
           <table id="example" class="table table-striped table-bordered" style="width:100%">
                <thead>
                    <tr>
                        <th>No</th>
                        <th>Name</th>
                        <th>Email</th>
						<th>Phone No</th>
                        
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $vendorlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$vendorlist): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e($key+1); ?></td>
                        <td><?php echo e(ucfirst($vendorlist->name)); ?></td>
                        <td><?php echo e($vendorlist->email); ?></td>
						<td><?php echo e($vendorlist->phone_no); ?></td>
						<td style="width:230px">
                           <a href="<?php echo e(url('/manufacturers/dealerdetails/'.$vendorlist->id)); ?>"><button class="btn common-btn green-btn"><i class="fa fa-eye" aria-hidden="true"></i>Dealer details </button></a>
                           <a href="<?php echo e(url('/manufacturers/productlist/'.$vendorlist->id)); ?>"><button class="btn common-btn green-btn"><i class="fa fa-eye" aria-hidden="true"></i>Product list</button></a>              

                        </td>
                    </tr>

                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>    



                </tbody>
                <!-- <tfoot>
                    <tr>
                        <th>Id</th>
                        <th>Product Name</th>
                        <th>Product Code</th>
                        <th>Action</th>
                    </tr>
                </tfoot> -->
            </table>
 </div><!-- tableBox end -->
        <?php }else{ ?>
                 <div class="wraper">
                                    <div class="product-display">
                                        <ul>
                                            <li>
                                                <div class="details">
                                                    <div>
                                                        <h6>
                                                        No Datas available
                                                        </h6>
                                                    </div>


                                                </div>
                                            </li>


                                        </ul>
                                    </div>
                                </div>
            <?php } ?>
             
        
    </div>
    
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.23/js/jquery.dataTables.js"></script>

<script>
    $(document).ready(function() {
        $('#example').DataTable();
    } );
</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/manufacturers/dealerlist.blade.php ENDPATH**/ ?>