

<?php $__env->startSection('title','Customer Records'); ?>
<?php $__env->startSection('page-title','Customer Records'); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid">

           <div class="card shadow-sm border-0">
               
               <div class="card-header bg-white d-flex justify-content-between align-items-center">
       
           <h4 class="mb-0">
               <i class="las la-users"></i> Customers Records
           </h4>
       
           
           </form>
       
       </div>

        <div class="card-body p-0">

            <table class="table table-hover align-middle mb-0">
                <thead class="table-light">
                    <tr>
                        <th>ID</th>
                        <th>Customer</th>
                        <th>Phone</th>
                        <th>Date</th>
                        <th>Grand Total </th>
                        <th>Payment Status</th>
                        <th width="120">Action</th>
                    </tr>
                </thead>

                <tbody>

                <?php $__empty_1 = true; $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

                    <tr>

                        <td>#<?php echo e($order->id); ?></td>

                        <td>
                            <div class="fw-semibold">
                                <?php echo e($order->customer->name); ?>

                            </div>
                            <small><?php echo e($order->customer->urdu_name); ?></small>
                        </td>

                        

                        <td>
                            <?php echo e($order->customer->phone ?? '-'); ?><br>
                            <?php echo e($order->customer->phone2 ?? '-'); ?>

                        </td>

                        <td>
                            <?php echo e($order->order_date->format('d M Y h:i A')); ?>

                        </td>

                        <td>
                            <?php echo e($order->grand_total ?? '0.00'); ?><br>
                           
                        </td>

                        

                        <td>
                            <?php echo e($order->payment_status); ?>

                        </td>

                        <td>
                            <a href="<?php echo e(route('admin.customers.Order.detail',$order->id)); ?>"
                               class="btn btn-sm btn-outline-primary">
                                <i class="las la-eye">Detail</i>
                            </a>
                           
                        </td>

                    </tr>

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

                    <tr>
                        <td colspan="8" class="text-center py-4">
                            No customers found.
                        </td>
                    </tr>

                <?php endif; ?>

                </tbody>

            </table>

        </div>

        

    </div>

</div>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('Admin.layout.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/xtradezone/public_html/alifoods.xtradezone.com/alifoods/resources/views/Admin/partials/customer_bills.blade.php ENDPATH**/ ?>