

<?php $__env->startSection('title', 'Orders'); ?>

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

<div class="card">
    <h3>All Orders</h3>

    <table>
        <tr>
            <th>Order ID</th>
            <th>User</th>
            <th>Product</th>
            <th>Qty</th>
            <th>Price</th>
            <th>Total</th>
        </tr>

        <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $o): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td>#<?php echo e($o->id); ?></td>
            <td><?php echo e($o->user_id); ?></td>
            <td><?php echo e($o->name); ?></td>
            <td><?php echo e($o->quantity); ?></td>
            <td><?php echo e($o->price); ?></td>
            <td><?php echo e($o->total); ?></td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </table>
</div>

<style>
.card {
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

table {
    width:100%;
    border-collapse:collapse;
}

th, td {
    padding:10px;
    border-bottom:1px solid #eee;
}
</style>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/jitrealx/public_html/hotelbooking/resources/views/admin/orders.blade.php ENDPATH**/ ?>