<?php $__env->startSection('title', 'Success'); ?>
<?php $__env->startSection('content'); ?>
    <section class="inner-banner">
        <img src="<?php echo e(asset('front/images/mainBanner.webp')); ?>" alt="image" class="img-fluid w-100 h-100">
        <div class="container">
            <div class="inner-banner__content">
                <h1>Payment Success</h1>
            </div>
        </div>
    </section>
    <section class="payment-section padd-y my-5">
        <div class="container my-5">
            <div class="row justify-content-center mt-5">
                <div class="col-sm-10 my-5">
                    <div class="payment-title text-center">
                        <h4>Payment Success!</h4>
                        <p>Your payment has been successfully done.</p>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <?php if(isset($order)): ?>
        <section class="payment-section">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-sm-10">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>User Name</th>
                                    <th>Product Name</th>
                                    <th>Quantity</th>
                                    <th>Tracking No</th>

                                </tr>
                            </thead>
                            <tbody>
                                <?php $__empty_1 = true; $__currentLoopData = $order->orderItems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td><?php echo e($order->first_name ?? 'Guest'); ?></td>
                                        <td><?php echo e($item->products->name); ?></td>
                                        <td><?php echo e($item->quantity ?? ''); ?></td>
                                        <td><?php echo e($order->tracking_no); ?></td>

                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <td colspan="4"> Data Not Found</td>
                                <?php endif; ?>
                                <tr>
                                    <th colspan="4"></th>
                                </tr>
                                <tr>
                                    <th colspan="4"></th>
                                </tr>
                                <tr>
                                    <th colspan="4"></th>
                                </tr>
                                <tr>
                                    <th colspan="4"></th>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <th colspan="3">Total Amount</th>
                                    <td>$<?php echo e(number_format($order->total_price, 2) ?? '00'); ?></td>
                                </tr>

                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </section>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('front.layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/servicedemoweb/public_html/luxury-candles/resources/views/front/success.blade.php ENDPATH**/ ?>