<?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>All Orders</h5>
                        
                    </div>
                    <div class="ibox-content">

                        <table class="table">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>Name</th>
                            <th>Email</th>
                            <th>Phone</th>
                            <th>Status</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php if(!empty($orders)): ?>
                        <?php $__empty_1 = true; $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $sale): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                               <td><?php echo e($key + 1); ?></td>
                               <td><?php echo e($sale->name); ?></td>
                               <td><?php echo e($sale->email); ?></td>
                               <td><?php echo e($sale->phone); ?></td>
									<?php if($sale->status == 1): ?>  
								<td>
                                    <a href="javascript:void(0)" class="btn btn-primary btn-xs ">Completed</a>
                                </td>
									<?php else: ?>
								<td>
                                    <a href="javascript:void(0)" class="btn btn-danger btn-xs">Canceled</a>
                                </td>
									<?php endif; ?>
								
								
                                <td>
								
                                    <a target="_blank" href="<?php echo e(url('sales/receipt/' . $sale->id)); ?>" class="btn btn-primary btn-xs pull-right">Show</a>
                                </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>
				<?php echo $orders->render(); ?>


                    </div>
                </div>
            </div>
        </div>
    </div>


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