<?php

require 'admin/db-connection.php';

if (isset($_GET['product'])) {
    $order_id = $_GET['product'];
    $order_id = mysqli_real_escape_string($link, $order_id);

    $order_query = "SELECT o.*,u.name,u.mobile,u.email,u.zip_code,u.house_no,u.landmark,u.city,u.state 
                    FROM `tbl_order` as o 
                    JOIN `tbl_user` as u ON u.id = o.user_id 
                    WHERE o.id = $order_id";

    $get_user_result = mysqli_query($link, $order_query);
    $data_user = mysqli_fetch_assoc($get_user_result);
    if ($data_user) {
        //User data
        $user_name = $data_user['name'];
        $user_mobile = $data_user['mobile'];
        $user_email = $data_user['email'];
        $user_zip_code = $data_user['zip_code'];
        $user_house_no = $data_user['house_no'];
        $user_landmark = $data_user['landmark'];
        $user_city = $data_user['city'];
        $user_state = $data_user['state'];
        $full_address =$user_house_no.' ,'.$user_landmark.' ,'.$user_city.' ,'.$user_state.' ,'.$user_zip_code;

        //product data
        $product_name = $data_user['product_name'];
        $order_id = $data_user['order_id'];
        $payment_method = $data_user['payment_method'];
        $product_discount_promo = $data_user['product_discount_promo'];
        $payment_discount = $data_user['payment_discount'];
        $product_price = $data_user['product_price'];
        $total_amount = $data_user['total_amount'];
    } else {
        header('Location: index.php');
        exit();
    }
} else {
    header('Location: index.php');
    exit();
}
?>

<!doctype html>
<html class="no-js" lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Thank You | Shrichitt Urja Vati | Natural Men's Wellness & Vitality Booster</title>
    
    <meta name="description" content="Thank you for choosing Shrichitt Urja Vati! Your order has been received successfully. Revitalize your strength and stamina naturally with our Ayurvedic wellness supplement for men.">
    <meta name="keywords" content="Shrichitt Urja Vati, thank you page, order confirmation, men's wellness, vitality booster, natural stamina supplement, ayurvedic product, hormonal balance, energy enhancer">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Shrichitt">
    
    <!-- Canonical URL -->
    <link rel="canonical" href="https://urjavati.com/online-order/thankyou.php">
    
    <!-- Favicon -->
    <link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon_io/favicon.ico">
    <link rel="apple-touch-icon" sizes="180x180" href="assets/img/favicon_io/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="assets/img/favicon_io/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="assets/img/favicon_io/favicon-16x16.png">
    
    <!-- Open Graph (Facebook & LinkedIn) -->
    <meta property="og:title" content="Thank You | Shrichitt Urja Vati | Natural Men's Wellness & Vitality Booster">
    <meta property="og:description" content="Thank you for your purchase! Reclaim your vitality with Shrichitt Urja Vati — a natural Ayurvedic supplement for men’s wellness, stamina, and strength.">
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://urjavati.com/online-order/thankyou.php">
    <meta property="og:image" content="https://urjavati.com/online-order/banner/height-detox-benefit.webp">
    
    <!-- Twitter Card -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Thank You | Shrichitt Urja Vati | Natural Men's Wellness & Vitality Booster">
    <meta name="twitter:description" content="Your order for Shrichitt Urja Vati is confirmed. Boost energy, stamina, and strength naturally with Ayurvedic wellness support for men.">
    <meta name="twitter:image" content="https://urjavati.com/online-order/banner/height-detox-benefit.webp">

    
    <!-- Place favicon.ico in the root directory -->
    <!-- CSS here -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/animate.min.css">
    <link rel="stylesheet" href="assets/css/magnific-popup.css">
    <link rel="stylesheet" href="assets/css/fontawesome-all.min.css">
    <link rel="stylesheet" href="assets/css/flaticon.css">
    <link rel="stylesheet" href="assets/css/jquery-ui.css">
    <link rel="stylesheet" href="assets/css/odometer.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightcase/2.5.0/css/lightcase.css">
    <link rel="stylesheet" href="assets/css/slick.css">
    <link rel="stylesheet" href="assets/css/default.css">
    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css">
    <link rel="stylesheet" href="assets/css/responsive.css">
    <style>
        .bgcactive {
            background-color: #000 !important;
        }

        /* Define the default zoom_in_out class */
        .zoom_in_out {
            transition: transform 0.3s ease-in-out;
            /* Smooth transition for zoom */
        }

        /* Zoom-in effect (when activated via jQuery) */
        .zoom-effect {
            transform: scale(1.02);
            /* Zoom by 2% */
        }

        table {
            width: 100%;
            background: #000;
        }

        table,
        th,
        td {
            border: 1px solid #000;
            border-collapse: collapse;
        }

        th,
        td {
            padding: 10px;
            width: 50%;
        }

        p.error_form {
            color: red;
            font-size: 12px;
            font-weight: bold;
        }
    </style>
    <!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1400084021353349');
fbq('track', 'PageView');
fbq('track', 'Purchase');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1400084021353349&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->
</head>

<body>
    <section class=" bgcimgcheck">
        <div class="container ">
            <div class="row py-3">
                <div class="col-lg-4 col-4 my-auto text-left lgggh">
                    <a href="index.php"> <img src="assets/img/logo/logo.webp" alt=""></a>
                </div>
                <div class="col-lg-4 col-4 my-auto">
                    <div class="row">
                        <div class="col-lg-4 col-5 my-auto text-end imgssdchck">
                            <img src="checkout/one.png" alt="">
                        </div>
                        <div class="col-lg-8 col-7 text-left imgssdchck1 my-auto">
                            <img src="checkout/two.webp" alt="">
                        </div>
                    </div>
                </div>
                <div class="col-lg-4 col-4 my-auto text-center ">
                    <img src="checkout/three.png" alt="">
                </div>
            </div>


        </div>
    </section>

    <!-- start thankyou page section --->
    <section class="py-30">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 thnfontss">
                    <h3><span>Thank You </span> Your Order!</h3>
                    <p>Your Order would be delivered in next 3 to 5 working days. We will share Tracking details soon.</p>
                    <p>Get ready to boost your stamina!</p>
                </div>
            </div>
        </div>
    </section>
    <!-- end thankyou page section -->

    <section class="py-30">
        <div class="container">
            <div class="row">
                <div class="col-lg-4">
                    <img src="product/thankyou.jpg" alt="">
                </div>
                <div class="col-lg-4 mt-3 thnkcont">
                    <h2>Order Receipt:</h2>
                    <h4>Order Number: <?= $order_id ?></h4>
                    <h3><?=$product_name?></h3>
                    <h5>Your Order Will be Shipped to:</h5>
                    <div class="table-responsive">
                        <table class="table table-bordered ">
                            <thead>
                                <tr>
                                    <th>Full Name</th>
                                    <th>Phone No.</th>
                                    <th>Address</th>
                                </tr>
                            </thead>
                            <tbody>
                                <td><?= $user_name ?></td>
                                <td><?= $user_mobile ?></td>
                                <td><?= $full_address ?></td>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="col-lg-4 mt-3">
                    <div class="py-15 bgcclr">
                        <h3>Customer Support</h3>
                        <p>Our Customer Service Support team is available to assist you regarding products, usage, benefits & others.</p>
                        <div class="row mt-5 brdrssd">
                            <div class="col-lg-2 col-3 p-0 my-auto">
                                <i class="fas fa-phone-alt"></i>
                            </div>
                            <div class="col-lg-10 col-9">
                                <h4>Support Number : </h4>
                                <p>+91-9999999999</p>
                            </div>
                        </div>

                        <div class="row brdrssd">
                            <div class="col-lg-2 p-0 col-3  my-auto">
                                <i class="far fa-envelope-open"></i>
                            </div>
                            <div class="col-lg-10 col-9">
                                <h4>Email Id : </h4>
                                <p>+91-9999999999</p>
                            </div>
                        </div>

                        <div class="row brdrssd">
                            <div class="col-lg-2 p-0 col-3  my-auto">
                                <i class="far fa-clock"></i>
                            </div>
                            <div class="col-lg-10 col-9">
                                <h4>Opration Hours : </h4>
                                <p>Monday – Friday 10AM-7PM,
                                    Saturday 9AM-3PM,GMT</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>


    <section class="py-30">
        <div class="container">
            <div class="row percont">
                <div class="col-lg-2 my-auto">
                    <img src="product/100-Money-Back-Guarantee-1.png" alt="">
                </div>
                <div class="col-lg-10">
                    <div class="bgcgrenthank">
                        <h3>100% Money Back Guarantee</h3>
                        <h5>We, Kayashree is committed to give you 100% SATISFACTION</h5>
                        <p>Each Purchase of Yours comes with 90 Day Money Back Guarantee. If you are not happy with the results, just call our customer care Support team at 8376993992 and we will refund your money without any question!</p>
                    </div>
                </div>
            </div>
        </div>
    </section>



    <section class="pt-30 pb-60">
        <div class="container">
            <div class="row">

                <div class="col-lg-10 offset-lg-1 ">
                    <div class=" bgcssgrsssnd">
                        <img src="product/hight-thankyou.webp" alt="">
                    </div>

                </div>
            </div>
        </div>
    </section>








    <!-- header-area-end -->














    <!-- Footer-area -->
    <footer class="footer-style-two">
        <div class="footer-two-top-wrap">
            <div class="container">
                <div class="footer-two-widgets-wrap">
                    <div class="row justify-content-between">
                        <div class=" col-lg-6 offset-lg-3 text-center">
                            <div class="footer-widget">
                                <div class="footer-about">
                                    <div class="footer-logo logo">
                                        <a href="index.php"><img src="assets/img/logo/logo-footer.webp" alt="Logo"></a>
                                    </div>
                                    <div class="footer-text">
                                        <p>Urja Vati Capsule helps in improving your desires, sexual drive and performance much more. It also helps in increasing fertility and staying active in bed while giving you a feeling of happiness.</p>
                                    </div>
                                    <div class="bgcclrss col-lg-10 offset-lg-1">
                                        <div class="row">
                                            <div class="col-lg-4 col-4 bgcssgd text-right">
                                                <img src="checkout/two.webp">
                                            </div>
                                            <div class="col-lg-8 col-8 my-auto contsshd">
                                                <h4>FSSAI LIC No. : 13323001000231</h4>
                                            </div>
                                        </div>
                                    </div>

                                    <ul class="lissttsd">
                                        <li><a href="privacy-policy.php">Privacy Policy</a></li>
                                        <li><a href="tearm-and-condition.php">Tearm & Condition</a></li>
                                        <li><a href="refund-policy.php">Refund Policy</a></li>
                                    </ul>

                                    <div class="footer-social">
                                        <a href="#"><i class="fab fa-facebook-f"></i></a>
                                        <a href="#"><i class="fab fa-twitter"></i></a>
                                        <a href="#"><i class="fab fa-instagram"></i></a>
                                        <a href="#"><i class="fab fa-linkedin-in"></i></a>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <div class="copyright-wrap">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-md-12 text-center">
                        <div class="copyright-text">
                            <p>© Copyright 2024 Kayashree. All Rights Reserved.
                            <!--</br>-->
                            <!--    Website designed and developed by <a href="https://webdevelopmentsolution.in/" target="_blank">Web Development Solution </a>-->
                                
                                </p>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </footer>
    <!-- Footer-area-end -->



    <!-- start onload popup section -->
    <div id="myModal" class="modal fade" role="dialog">
        <div class="modal-dialog">
            <!-- Modal content-->
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title">Modal Header</h4>
                </div>
                <div class="modal-body">
                    <p>Some text in the modal.</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                </div>
            </div>

        </div>
    </div>
    <!-- end onload popup section -->





    <!-- start first whatsapp section -->
    <a href="https://wa.me/918929222323?text=" target=”_blank” class="whatsapp-btn">
        <i class="fab fa-whatsapp"></i>
    </a>


    <a href="tel:+918929222323" target=”_blank” class="phone-btn">
        <i class="fa fa-phone-alt"></i>
    </a>
    <!-- end first whatsaap section -->


    <!-- start mobile whatsaap section -->
    <div class="mblbgc">
        <div class="container">
            <div class="row">
                <div class="col-lg-3 col-3 text-center">
                    <a href="https://wa.me/918929222323?text=" target=”_blank” class="whatsapp-btnmbl">
                        <i class="fab fa-whatsapp"></i>
                    </a>
                </div>
                <div class="col-lg-6 col-6 text-center ">
                    <a href="#" class="cart-btn mbltopmrgin" width="100"> <i class="fa fa-shopping-cart"
                            aria-hidden="true"></i> Order Now</a>
                </div>
                <div class="col-lg-3 col-3 text-center">
                    <a href="tel:+918929222323" target=”_blank” class="phone-btnmbl">
                        <i class="fa fa-phone-alt"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>
    <!-- end mobile whatsaap section -->





    <!-- JS here -->
    <script src="assets/js/vendor/jquery-3.6.0.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/isotope.pkgd.min.js"></script>
    <script src="assets/js/imagesloaded.pkgd.min.js"></script>
    <script src="assets/js/jquery.magnific-popup.min.js"></script>
    <script src="assets/js/jquery.odometer.min.js"></script>
    <script src="assets/js/jquery.appear.js"></script>
    <script src="assets/js/jquery.paroller.min.js"></script>
    <script src="assets/js/jquery.easypiechart.min.js"></script>
    <script src="assets/js/jquery.inview.min.js"></script>
    <script src="assets/js/jquery.easing.js"></script>
    <script src="assets/js/jquery-ui.min.js"></script>
    <script src="assets/js/svg-inject.min.js"></script>
    <script src="assets/js/jarallax.min.js"></script>
    <script src="assets/js/slick.min.js"></script>
    <script src="assets/js/validator.js"></script>
    <script src="assets/js/ajax-form.js"></script>
    <script src="assets/js/wow.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/lightcase/2.5.0/js/lightcase.js"></script>
    <script src="assets/js/main.js"></script>
</body>

</html>