

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

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

<div class="container py-5">

<div class="row">



<div class="col-lg-7">

<div class="mb-4">
<h5 class="text-muted">Order #<?php echo e($order->order_number); ?></h5>
<h2 class="text-success">Thank You <?php echo e($order->first_name); ?>!</h2>
</div>

<div class="card mb-4 shadow-sm">
<div class="card-body">

<h5>Your Order is Confirmed</h5>

<p class="text-muted">
We have accepted your order and are getting it ready.
A confirmation email has been sent to <strong><?php echo e($order->email); ?></strong>
</p>

</div>
</div>

<div class="card shadow-sm">
<div class="card-body">

<h5 class="mb-3">Customer Details</h5>

<div class="row">

<div class="col-md-6">
<strong>Email</strong>
<p><?php echo e($order->email); ?></p>

<strong>Billing Address</strong>

<p>
<?php echo e($order->first_name); ?> <?php echo e($order->last_name); ?><br>
<?php echo e($order->address1); ?><br>
<?php echo e($order->city); ?> <?php echo e($order->post_code); ?>

</p>
</div>

<div class="col-md-6">

<strong>Shipping Address</strong>

<p>
<?php echo e($order->first_name); ?> <?php echo e($order->last_name); ?><br>
<?php echo e($order->address1); ?><br>
<?php echo e($order->city); ?> <?php echo e($order->post_code); ?>

</p>

<strong>Payment Method</strong>

<p><?php echo e(ucfirst($order->payment_method)); ?></p>

</div>

</div>

</div>
</div>

<div class="mt-4">
<a href="<?php echo e(route('home')); ?>" class="btn btn-warning px-4">
Continue Shopping
</a>
</div>

</div>



<div class="col-lg-5">
<div class="card shadow-sm">

<div class="card-header">
<strong>Order Details</strong>
</div>

<div class="card-body">

<?php $__currentLoopData = $order->cart_info; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

<div class="d-flex justify-content-between mb-3">

<div class="d-flex">

<img src="<?php echo e($item->product->photo ?? 'https://via.placeholder.com/60'); ?>"
width="60" class="mr-3 rounded">

<div>
<strong><?php echo e($item->product->title); ?></strong><br>
<small>Qty: <?php echo e($item->quantity); ?></small>
</div>

</div>

<div>
₹<?php echo e(number_format($item->amount,2)); ?>

</div>

</div>

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<hr>

<div class="d-flex justify-content-between">
<span>Subtotal</span>
<span>₹<?php echo e(number_format($order->sub_total,2)); ?></span>
</div>

<div class="d-flex justify-content-between">
<span>Shipping</span>
<span>₹<?php echo e(number_format($order->delivery_charge,2)); ?></span>
</div>

<hr>

<div class="d-flex justify-content-between font-weight-bold">
<span>Total</span>
<span>₹<?php echo e(number_format($order->total_amount,2)); ?></span>
</div>

</div>

</div>

</div>

</div>

</div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/ecommerce_website/resources/views/frontend/pages/payment-success.blade.php ENDPATH**/ ?>