<?php $__env->startSection('content'); ?>


<div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>Products by Sales  </h5>
                       
                    </div>
                    <div class="ibox-content">

                        <div class="table-responsive">
                   <table class="table table-striped">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>Product Name</th>
                            <th>Sales </th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php if(!empty($sales_by_product)): ?>
                        <?php $__empty_1 = true; $__currentLoopData = $sales_by_product; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td><?php echo e($key + 1); ?></td>
                                <td><?php echo e($item->product_name); ?></td>
                                <td><?php echo e($item->total_sales); ?></td>
								
		
								
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                          <tr> 
						  <td colspan="5">
								  No Record Found
									
                                </td>
								</tr>
                        <?php endif; ?>
                    <?php endif; ?>
                    </tbody>
                </table>
                        </div>

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

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>