
<?php $__env->startSection('content'); ?>
<h4>Orders</h4>
<table class="table table-striped bg-white">
    <tr>
        <th>#</th>
        <th>Customer</th>
        <th>Total</th>
        <th>Date</th>
        <th></th>
    </tr>
    <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <tr>
        <td><?php echo e($order->id); ?></td>
        <td><?php echo e($order->customer_name); ?></td>
        <td>$<?php echo e($order->total); ?></td>
        <td><?php echo e($order->created_at->format('d M Y')); ?></td>
        <td><a href="/orders/<?php echo e($order->id); ?>" class="btn btn-sm btn-info">View</
                    a>
        </td>
    </tr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</table>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\ecommerce-admin\resources\views/orders/index.blade.php ENDPATH**/ ?>