<?php include 'header.php'; ?>
<?php include '_top-header.php'; ?>

<div class="page">

    <div class="container p-0">

        <div class="profile-layout">

            <div class="start">
                <?php include '_profile-layout-side-menu.php' ?>
            </div><!-- start -->

            <div class="end">

                <div class="card">

                    <div class="flex-between flex-lg-row flex-column mb-3">

                        <p class="lead font-medium m-0 mb-3 mb-lg-0"> Returns </p>

                        <div class="row">

                            <div class="col-6">
                                <div class="form-group m-0 input-with-start-icon">
                                    <div class="relative">
                                        <input type="text" class="form-control" placeholder="Search here">
                                        <i class="icon icon-search start-icon icon-lg"></i>
                                    </div>
                                </div>
                            </div>

                            <div class="col-6">
                                <div class="form-group m-0">
                                    <select class="form-control">
                                        <option selected> Last 3 months </option>
                                        <option> Last 6 months </option>
                                        <option> Last 9 months </option>
                                        <option> Last 12 months </option>
                                    </select>
                                </div>
                            </div>

                        </div> <!-- row -->

                    </div> <!-- flex-between -->


                    <div class="orders-wrapper py-3">

                        <?php foreach (range(0, 10) as $i) { ?>

                            <div class="order-card mb-3">

                                <div class="order-header">
                                    <div class="start">
                                        <a href="order-details.php" class="mb-0"> Order : 4345464 </a>
                                        <p class="mb-0 color-gray small"> Friday, 13 Aug - 03 : 23 AM </p>
                                        <p class="mb-0 small color-success"> 23.000 KWD </p>
                                    </div>
                                    <div class="end">
                                        <?php

                                        switch ($i) {
                                            case 0:
                                                echo '<span class="badge badge-sm badge-cancelled"> cancelled </span>';
                                                break;
                                            case 1:
                                                echo '<span class="badge badge-sm badge-cancelled-by-store"> cancelled by store </span>';
                                                break;
                                            case 2:
                                                echo '<span class="badge badge-sm badge-cancelled-by-user"> cancelled by user </span>';
                                                break;
                                            case 3:
                                                echo '<span class="badge badge-sm badge-return-rejected"> return rejected </span>';
                                                break;
                                            default:
                                                echo '<span class="badge badge-sm badge-placed"> Placed </span>';
                                                break;
                                        }
                                        ?>
                                    </div>
                                </div>

                                <div class="order-products">

                                    <div class="row">
                                        <?php foreach (range(1, 3) as $i) { ?>
                                            <div class="col-12 col-md-4 mb-3">
                                                <?php include 'shared-html/product-card-wide.php' ?>
                                            </div>
                                        <?php } ?>
                                    </div>

                                </div>

                                <div class="order-footer">
                                    <p class="mb-0"> Pickup Address </p>
                                    <p class="mb-0 color-gray font-light"> Kuwait City, street 32 , 53 building safa & msrwa Corner </p>
                                    <p class="mb-0 color-gray font-light"> +966 234534634 - House </p>
                                </div>


                            </div><!-- order-card -->


                        <?php } ?>

                    </div>






                </div> <!-- card -->

            </div> <!-- end -->

        </div> <!-- profile-layout -->

    </div> <!-- container -->

</div> <!-- page -->

<?php include 'footer.php'; ?>