<!DOCTYPE html>
<html lang="en-US" dir="ltr">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">


    <!-- ===============================================-->
    <!--    Document Title-->
    <!-- ===============================================-->
    <title>Gent World Express | Landing, Responsive &amp; Business Templatee</title>


    <!-- ===============================================-->
    <!--    Favicons-->
    <!-- ===============================================-->
    <link rel="apple-touch-icon" sizes="180x180" href="assets/img/logo.png">
    <link rel="icon" type="image/png" sizes="32x32" href="assets/img/logo.png">
    <link rel="icon" type="image/png" sizes="16x16" href="assets/img/logo.png">
    <link rel="shortcut icon" type="image/x-icon" href="assets/img/logo.png">
    <link rel="manifest" href="assets/img/favicons/manifest.json">
    <meta name="msapplication-TileImage" content="assets/img/favicons/mstile-150x150.png">
    <meta name="theme-color" content="#ffffff">


    <!-- ===============================================-->
    <!--    Stylesheets-->
    <!-- ===============================================-->
    <link href="assets/css/theme.css" rel="stylesheet" />
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link
        href="https://fonts.googleapis.com/css2?family=Abel&family=Encode+Sans+Condensed:wght@300&family=Georama:wght@200&family=Oranienbaum&family=Smooch+Sans:wght@300&family=Yanone+Kaffeesatz:wght@300&display=swap"
        rel="stylesheet">

</head>


<body>

    <!-- ===============================================-->
    <!--    Main Content-->
    <!-- ===============================================-->
    <main class="main" id="top">
        <nav class="navbar navbar-expand-lg navbar-light fixed-top py-3 d-block"
            data-navbar-on-scroll="data-navbar-on-scroll">
            <div class="container"><a class="navbar-brand" href="index.html"><img src="assets/img/logo.png" height="35"
                        width="50" alt="logo" /><span style="font-weight:bold">Gent World Express<span></a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
                    data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
                    aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon">
                    </span></button>
                <div class="collapse navbar-collapse border-top border-lg-0 mt-4 mt-lg-0" id="navbarSupportedContent">
                    <ul class="navbar-nav ms-auto pt-2 pt-lg-0 font-base">
                        <li class="nav-item px-2"><a class="nav-link" aria-current="page" href="index.html">Home</a>
                        </li>


                    </ul>
                    <div class="dropdown d-none d-lg-block">
                        <button class="btn bg-soft-warning ms-2" id="dropdownMenuButton1" type="submit"
                            data-bs-toggle="dropdown" aria-expanded="false"><i
                                class="fas fa-search text-warning"></i></button>
                        <div class="dropdown-menu dropdown-menu-lg-end p-0 rounded"
                            aria-labelledby="dropdownMenuButton1" style="top:55px">
                            <form>
                                <input class="form-control border-200" type="search" placeholder="Search"
                                    aria-label="Search" style="background:#FDF1DF;" />
                            </form>
                        </div>
                        <form class="d-flex my-3 d-block d-lg-none">
                            <input class="form-control me-2 border-200 bg-light" type="search" placeholder="Search"
                                aria-label="Search" />
                            <button class="btn btn-outline-primary" type="submit">Search</button>
                        </form>
                    </div>
                </div>
        </nav>
        <section class="py-xxl-10 pb-0" id="home">
            <div class="bg-holder bg-size"
                style="background-image:url(assets/img/gallery/hero-header-bg.png);background-position:top center;background-size:cover;">
            </div>
            <!--/.bg-holder-->

            <div class="container">
                <div class="row align-items-center">
                    <div class="col-md-5 col-xl-6 col-xxl-7 order-0 order-md-1 text-end"><img class="pt-7 pt-md-0 w-100"
                            src="assets/img/illustrations/1654762462_1240673_gif-url.gif" alt="hero-header" /></div>
                    <div class="col-md-75 col-xl-6 col-xxl-5 text-md-start text-center py-8">
                        <h1 class="fw-normal fs-6 fs-xxl-7">A trusted provider of </h1>
                        <h1 class="fw-bolder fs-6 fs-xxl-7 mb-2">courier and logistics services.</h1>
                        <p class="fs-1 mb-5">We deliver your goods and products safely to <br />your home in a
                            reasonable time.
                        </p>
                    </div>
                </div>
            </div>
        </section>


        <!-- ============================================-->
        <!-- <section> begin ============================-->
        <section class="py-7" id="services" container-xl="container-xl">

            <div class="container">
                <div class="row justify-content-center">

                    <?php
include 'connection.php';
$error_message='';
$id=0;
if(isset($_GET['search']))
{
$id=$_GET['id'];
}
?>

                    <?php
        $sql="select * from dunees where COUR_NO='$id'";
        $row=$conn->query($sql);
        if($row->num_rows>0)
        {
            ?>

                    <?php
	while($data=$row->fetch_assoc())
	{
		?>
                    <div id="Sign-In" align="center">


                        <div class="container">
                            <div class="row">
                                <div class="col-md-12">
                                    <article class="card">
                                        <header class="card-header" style="background-color:#ffcc00"> <span
                                                style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;"><b> <?php print_r($data['Name_Item']);?>
                                                    Tracking Details</b> </span></header>
                                        <div class="card-body">
                                            <span
                                                style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;">Tracking
                                                Number:
                                                <?php print_r($data['Cour_No']);?></span>
                                            &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
                                            &nbsp &nbsp &nbsp
                                            &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
                                            &nbsp &nbsp &nbsp

                                            <span
                                                style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;">Way
                                                Bill Number:
                                                <?php print_r($data['Bill']);?></span><br><br>
                                            <article class="card">
                                                <header class="card-header" style="background-color:#ffcc00"> <span
                                                        style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;"><b> <?php print_r($data['Name_Item']);?>
                                                            Information</b> </span></header>
                                                <div class="card-body row">
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Name of Item:</strong>
                                                        <br><?php print_r($data['Name_Item']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Colour of <?php print_r($data['Name_Item']);?>:</strong> <br>
                                                        <?php print_r($data['Color_Item']);?>
                                                    </div>

                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Weight of <?php print_r($data['Name_Item']);?>:</strong> <br>
                                                        <?php print_r($data['Weight']);?>
                                                    </div>

                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Lists of <?php print_r($data['Name_Item']);?>:</strong> <br>
                                                        <?php print_r($data['List_Item']);?>
                                                    </div>
                                                </div>
                                            </article><br>

                                            <article class="card">
                                                <header class="card-header" style="background-color:#ffcc00"> <span
                                                        style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;"><b>Sender
                                                            Details</b> </span></header>
                                                <div class="card-body row">
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Sender Name:</strong>
                                                        <br><?php print_r($data['Sender']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Sender Address:</strong> <br>
                                                        <?php print_r($data['Sender_Address']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Sender Country:</strong> <br>
                                                        <?php print_r($data['Country']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Sender Email:</strong> <br>
                                                        <?php print_r($data['Sender_Email']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Sender Number:</strong> <br>
                                                        <?php print_r($data['Sender_Number']);?>
                                                    </div>
                                                </div>
                                            </article><br>
                                            <article class="card">
                                                <header class="card-header" style="background-color:#ffcc00"> <span
                                                        style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;"><b>Receiver
                                                            Details</b> </span></header>
                                                <div class="card-body row">
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Receiver Name:</strong>
                                                        <br><?php print_r($data['Receiver']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Receiver Address:</strong> <br>
                                                        <?php print_r($data['Receiver_Address']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Receiver Country:</strong> <br>
                                                        <?php print_r($data['Destination']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Receiver Email:</strong> <br>
                                                        <?php print_r($data['Receiver_Email']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Receiver Number:</strong> <br>
                                                        <?php print_r($data['Receiver_Number']);?>
                                                    </div>
                                                </div>
                                            </article><br>

                                            <article class="card">
                                                <header class="card-header" style="background-color:#ffcc00"> <span
                                                        style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;"><b> <?php print_r($data['Name_Item']);?>
                                                            Delivery Information From  <?php print_r($data['Country']);?></b> </span></header>
                                                <div class="card-body row">


                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Amount Paid By Sender:</strong> <br>
                                                        <?php print_r($data['Sender_Current']);?><?php print_r($data['Sender_Amount']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Payment Status:</strong> <br>
                                                        Paid
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Country Of Sender:</strong> <br>
                                                        <?php print_r($data['Country']);?>
                                                    </div>
                                                </div>
                                            </article><br>

                                            <article class="card">
                                                <header class="card-header" style="background-color:#ffcc00"> <span
                                                        style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;"><b> <?php print_r($data['Name_Item']);?>  <?php print_r($data['Name_Item']);?> Fee
                                                            & Payment Details</b> </span></header>
                                                <div class="card-body row">
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Type Of Payment :</strong>
                                                        <br><?php print_r($data['Type']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong> Country Clearance Status:</strong> <br>
                                                        Applicable At <?php print_r($data['Destination']);?> Airport
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Amount To Be Paid For Clearance:</strong> <br>
                                                        <?php print_r($data['Current']);?>
                                                        <?php print_r($data['Amount']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Status Of Payment:</strong> <br>
                                                        <?php print_r($data['Status']);?>
                                                    </div>
                                                </div>
                                                <div class="card-body row">
                                                <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Destination Of <?php print_r($data['Name_Item']);?>:</strong> <br><?php print_r($data['Receiver_Address']);?>, <?php print_r($data['Destination']);?>.
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Sent Date:</strong> <br><?php print_r($data['Sent']);?>
                                                    </div>
                                                    <div class="col"
                                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;">
                                                        <strong>Estimated Delivery Date:</strong> <br>
                                                        <?php print_r($data['Delivery']);?>
                                                    </div>
                                                </div>
                                            </article><br>

                                            <article class="card">
                                                <header class="card-header" style="background-color:#ff0000"> <span
                                                        style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;color:#ffffff;"><b><?php print_r($data['Name_Item']);?> Movement</b> </span></header>
                                                </p>
                                                <div class="card-body row">
                                                    <div class="col"> <strong>Dispatched At:</strong>
                                                        <br><?php print_r($data['Dispatched']);?> &nbsp &nbsp &nbsp <img
                                                            src="assets/HotGenerousHornedtoad-small.gif"
                                                            style="width:15px">
                                                    </div>
                                                    <div class="col"> <strong>Arrives At International Airport:</strong>
                                                        <br><?php print_r($data['Arrive']);?> &nbsp &nbsp &nbsp <img
                                                            src="assets/HotGenerousHornedtoad-small.gif"
                                                            style="width:15px">
                                                    </div>
                                                    <div class="col"> <strong>Departs At International Airport:</strong>
                                                        <br>
                                                        <?php print_r($data['Departs']);?> &nbsp &nbsp &nbsp <img
                                                            src="assets/HotGenerousHornedtoad-small.gif"
                                                            style="width:15px">
                                                    </div>
                                                    <div class="col"> <strong>Transits On Arrival:</strong>
                                                        <br><?php print_r($data['Transit']);?> &nbsp &nbsp &nbsp <img
                                                            src="assets/HotGenerousHornedtoad-small.gif"
                                                            style="width:15px">
                                                    </div>
                                                    <div class="col"> <strong>Departs From Transit:</strong>
                                                        <br><?php print_r($data['Depart_Transit']);?> &nbsp &nbsp &nbsp
                                                        <img src="assets/HotGenerousHornedtoad-small.gif"
                                                            style="width:15px">
                                                    </div>
                                                    <div class="col"> <strong>Arrives At International Airport:</strong>
                                                        <br>
                                                        <?php print_r($data['Arrived']);?>&nbsp &nbsp &nbsp <img
                                                            src="assets/HotGenerousHornedtoad-small.gif"
                                                            style="width:15px">
                                                    </div>
                                                </div>
                                            </article>

                                            <article class="card">
                                                <header class="card-header" style="background-color:#ffcc00">
                                                    <p
                                                        style="font-size:20px;font-family: 'Yanone Kaffeesatz', sans-serif;text-align:left;">
                                                        <b> <?php print_r($data['Name_Item']);?> Updates</b><br>
                                                        <marquee behavior="scroll" scrollamount="3" direction="left"
                                                            onmouseover="this.stop();" onmouseout="this.start();"><span
                                                                style="font-size:25px;font-family: 'Yanone Kaffeesatz', sans-serif;color:#00cc00;padding-top:25px;">
                                                                <b> <?php print_r($data['Movement']);?></b> </span>
                                                        </marquee>
                                                    </p>
                                                </header>
                                            </article>
                                        </div>
                                </div>
                            </div>


                            <div style="width:200px;height:40px;border:margin:auto;padding:7px;">
                            </div>
                            <div style="height:10px;align:center;"></div>
                            <div class="container">
                                <div class="row justify-content-center">
                                    <div class="col-md-9">
                                        <a href="generate-bill.php?id=<?=$id;?>&search=Track" class="btn btn-success"
                                            style="width:300px;height:40px;border-radius:20px;">Print Out  <?php print_r($data['Name_Item']);?> Way Bill
                                            Here</a><br><br>
                                    </div>
                                </div>
                            </div>
                            <br><br>



                            <?php

	}
	
}else{
    
    if(!isset($_GET['track']))
    {
    ?>
                            <div id="Sign-In" align="center">

                                <script>
                                alert('Invalid Tracking Number');
                                </script>
                                </span></p>
                            </div>
                            <?php
    }
}

?>



                            <div style="height:110px;">
                            </div>
                            <div id="Sign-In" align="center">
                                <p><?php echo $error_message;?></p>
                                <p
                                    style="font-size:25px;text-align:center;font-family: 'Yanone Kaffeesatz', sans-serif;">
                                    Track Your Parcel / Consignment Below</p>
                                <p>
                                <form action="">
                                    <input type="text" name="id" style="width:200px">&nbsp &nbsp &nbsp
                                    <input value="Track" name="search"
                                        style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;width:100px;height:30px;"
                                        type="submit">
                                </form>
                            </div>


                            <hr>



                            <div class="container">
                                <div class="row">
                                    <div class="col-md-1">
                                    </div>
                                    <div class="col-md-10">
                                        <div id="Sign In" align="center">
                                            <div style="width:500px;height:40px;background-color:#0066cc">
                                                <p
                                                    style="font-family: 'Yanone Kaffeesatz', sans-serif;font-size:20px;padding-top:10px;color:#ffffff;">
                                                    <b>© Copyright 2024. Gent World Express. All Rights
                                                        Reserved.</b>
                                                </p>
                                            </div>
                                        </div>
                                        <div class="col-md-1">
                                        </div>
                                    </div>
                                </div>
                                <div style="height:50px">
                                </div>
                            </div>

                        </div>
                    </div>
                    <!-- end of .container-->

        </section>



    </main>
    <!-- ===============================================-->
    <!--    End of Main Content-->
    <!-- ===============================================-->




    <!-- ===============================================-->
    <!--    JavaScripts-->
    <!-- ===============================================-->
    <script src="vendors/@popperjs/popper.min.js"></script>
    <script src="vendors/bootstrap/bootstrap.min.js"></script>
    <script src="vendors/is/is.min.js"></script>
    <script src="https://polyfill.io/v3/polyfill.min.js?features=window.scroll"></script>
    <script src="vendors/fontawesome/all.min.js"></script>
    <script src="assets/js/theme.js"></script>

    <link href="https://fonts.googleapis.com/css2?family=Raleway:wght@200;300;400;500;600;700;800&amp;display=swap"
        rel="stylesheet">
</body>

</html>