<?php $__env->startSection('title', 'Order Confirmation #' . $order->order_number); ?>

<?php $__env->startSection('content'); ?>
<section class="py-16 bg-cream-50">
    <div class="container-shop max-w-3xl">
        <div class="bg-white border border-cream-200 rounded-2xl p-8 sm:p-12 text-center shadow-sm">
            <div class="w-16 h-16 bg-moss-100 text-moss-700 rounded-full flex items-center justify-center mx-auto mb-6">
                <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'check','class' => 'h-8 w-8']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?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(['name' => 'check','class' => 'h-8 w-8']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
            </div>

            <h1 class="font-serif text-3xl sm:text-4xl font-semibold text-ink-900">Thank You For Your Order!</h1>
            <p class="mt-2 text-ink-600 text-sm sm:text-base">We've received your order and are preparing your farm-fresh skincare items.</p>

            <div class="mt-6 inline-block bg-cream-100 border border-cream-300 px-5 py-2.5 rounded-lg text-sm">
                Order Reference: <strong class="text-moss-800 font-mono tracking-wider"><?php echo e($order->order_number); ?></strong>
            </div>

            <div class="mt-10 text-left border-t border-cream-200 pt-8 space-y-6">
                <h2 class="font-serif text-xl font-medium">Order Details</h2>
                
                <div class="grid grid-cols-1 sm:grid-cols-2 gap-6 text-sm">
                    <div>
                        <strong class="text-xs uppercase tracking-wider text-ink-400 block mb-1">Customer Contact</strong>
                        <p class="font-semibold text-ink-900"><?php echo e($order->customer_name); ?></p>
                        <p class="text-ink-600"><?php echo e($order->customer_email); ?></p>
                        <p class="text-ink-600"><?php echo e($order->customer_phone); ?></p>
                    </div>
                    <div>
                        <strong class="text-xs uppercase tracking-wider text-ink-400 block mb-1">Shipping Destination</strong>
                        <p class="text-ink-700"><?php echo e($order->shipping_address); ?></p>
                        <p class="text-ink-700"><?php echo e($order->city); ?>, <?php echo e($order->state); ?> - <?php echo e($order->pincode); ?></p>
                    </div>
                </div>

                <div class="border-t border-cream-200 pt-6">
                    <strong class="text-xs uppercase tracking-wider text-ink-400 block mb-3">Order Items</strong>
                    <div class="divide-y divide-cream-200">
                        <?php $__currentLoopData = $order->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="py-3 flex justify-between items-center text-sm">
                                <div>
                                    <p class="font-medium text-ink-900"><?php echo e($item->product_name); ?></p>
                                    <p class="text-xs text-ink-500">Size: <?php echo e($item->size); ?> &middot; Qty: <?php echo e($item->quantity); ?></p>
                                </div>
                                <span class="font-semibold text-ink-900">₹<?php echo e(number_format($item->subtotal, 2)); ?></span>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>

                <div class="border-t border-cream-200 pt-4 flex justify-between items-center text-base">
                    <span class="font-semibold text-ink-900">Total Amount Payable (<?php echo e(strtoupper($order->payment_method)); ?>)</span>
                    <span class="font-serif text-2xl font-bold text-moss-800">₹<?php echo e(number_format($order->total_amount, 2)); ?></span>
                </div>
            </div>

            <div class="mt-10 flex flex-wrap gap-4 justify-center">
                <a href="<?php echo e(route('shop')); ?>" class="btn-primary">Continue Shopping</a>
                <?php if(auth()->guard()->check()): ?>
                    <a href="<?php echo e(route('account')); ?>" class="btn-outline">View Order History</a>
                <?php endif; ?>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/koushikkona/Documents/Projects/divne/resources/views/pages/order-confirmation.blade.php ENDPATH**/ ?>