<?php echo $__env->make('layouts.head', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<body>
<?php echo $__env->make('layouts.topbar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('layouts.Adminnavbar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<div class="container py-5">
    <h2 class="mb-4 text-center fw-bold">Order Details (ID: <?php echo e($order->id); ?>)</h2>

    <div class="card shadow-sm p-4">
        <p><strong>Customer:</strong> <?php echo e($order->name); ?></p>
        <p><strong>Phone:</strong> <?php echo e($order->phone); ?></p>
        <p><strong>Total:</strong> <?php echo e(number_format($order->total, 2)); ?> Tsh</p>
        <p><strong>Status:</strong> <span class="badge bg-<?php echo e($order->status == 'completed' ? 'success' : 'warning'); ?>"><?php echo e(ucfirst($order->status)); ?></span></p>

        <h5 class="mt-4">Items</h5>
        <td>
    <?php if(!empty($order->items)): ?>
        <?php echo e(collect($order->items)->pluck('name')->join(', ')); ?>

    <?php else: ?>
        N/A
    <?php endif; ?>
</td>


        <a href="<?php echo e(route('admin.orders.index')); ?>" class="btn btn-secondary mt-3">Back to Orders</a>
    </div>
</div>

<?php echo $__env->make('layouts.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('layouts.links', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
</body>
</html>
<?php /**PATH /home/u905600066/domains/kauka.medicalsean.com/public_html/resources/views/admin/orders/show.blade.php ENDPATH**/ ?>