<?php if (isset($component)) { $__componentOriginal5863877a5171c196453bfa0bd807e410 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5863877a5171c196453bfa0bd807e410 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.layouts.app','data' => ['title' => 'Orders']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('layouts.app'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Orders']); ?>
    <div class="rounded-xl border border-slate-200 bg-white p-4">
        <h1 class="mb-4 text-lg font-semibold">Riwayat Order</h1>
        <div class="overflow-auto">
            <table class="min-w-full text-sm">
                <thead class="bg-slate-50 text-left">
                <tr>
                    <th class="px-2 py-2">Receipt</th>
                    <th class="px-2 py-2">Status</th>
                    <th class="px-2 py-2">Total</th>
                    <th class="px-2 py-2">Kasir</th>
                    <th class="px-2 py-2">Waktu</th>
                    <th class="px-2 py-2"></th>
                </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr class="border-t">
                        <td class="px-2 py-2"><?php echo e($order->receipt_number ?? '-'); ?></td>
                        <td class="px-2 py-2"><?php echo e($order->status); ?></td>
                        <td class="px-2 py-2">Rp <?php echo e(number_format($order->total, 0, ',', '.')); ?></td>
                        <td class="px-2 py-2">#<?php echo e($order->user_id); ?></td>
                        <td class="px-2 py-2"><?php echo e($order->created_at); ?></td>
                        <td class="px-2 py-2">
                            <a class="text-sky-700" href="<?php echo e(route('orders.show', $order)); ?>">Detail</a>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
        <div class="mt-4"><?php echo e($orders->links()); ?></div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5863877a5171c196453bfa0bd807e410)): ?>
<?php $attributes = $__attributesOriginal5863877a5171c196453bfa0bd807e410; ?>
<?php unset($__attributesOriginal5863877a5171c196453bfa0bd807e410); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5863877a5171c196453bfa0bd807e410)): ?>
<?php $component = $__componentOriginal5863877a5171c196453bfa0bd807e410; ?>
<?php unset($__componentOriginal5863877a5171c196453bfa0bd807e410); ?>
<?php endif; ?>
<?php /**PATH C:\Users\IPI ACD\Documents\WORKSPACE\kasir\resources\views/orders/index.blade.php ENDPATH**/ ?>