<?php 
if(!$resultofinfo){
     $_SESSION['uzi'] = null;
     $_SESSION['pzi'] = null;
     $_SESSION['czi'] = null;
     $_SESSION['ucid'] = null;
     unset($_SESSION);
     header("Location: login.php");
}
?>
<?php

//call db for cart
$cartcount = $basketcountpill;
$dashnavname = $_SESSION['uzi'];
?>


<div class="col-12 border-light border-bottom  ">



    <div class="d-flex flex-row align-items-center justify-content-center">


        <div class="col-xl-10 col-lg-12 text-dark">


            <div class="row">

                <div class="col-xl-4 col-lg-4  col-8 d-flex align-items-center justify-content-start order-lg-1 order-1 ">

                    <div class=" ">
                        <div class="d-flex justify-content-start align-items-center  py-3">

                            <div class="bg-light d-flex align-items-center justify-content-between text-dark shopinfoholder" style="">




                                <div class="d-none my-auto d-md-flex align-items-center justufy-content-center text-right  ml-3 font-weight-bold" style="color: #02142B;font-size: 0.8rem;">
                                    <div class="d-inline-block my-auto">
                                       <?php echo $dashnavname?>
                                        <br>
                                        <span class="text-secondary" style="font-size: 0.7rem;">خروج از فروشگاه</span>
                                    </div>
                                </div>


                                <a href="logout.php" class="text-decoration-none">
                                    <div class=" d-flex align-items-center justufy-content-center text-center  mx-3" style="color: #bb3caa;">

                                        <i class="fas fa-sign-out-alt "></i>

                                    </div>
                                </a>


                            </div>


                            <div class="d-flex justify-content-between align-items-center">




                                <div class="bg-light d-flex align-items-center justify-content-center text-dark shopcartbadgeholder ml-2" style="">





                                    <a href="cart.php" class="text-decoration-none">
                                        <div class=" d-flex align-items-center justufy-content-center text-center " style="color: #bb3caa;">

                                            <i class="fas fa-shopping-cart mx-2"></i>
                                            <span class="badge badge-warning"><?php echo $cartcount;?></span>
                                        </div>
                                    </a>


                                </div>




                            </div> 

                            <div class="bg-light d-flex align-items-center justify-content-center text-dark shopcartbadgeholder ml-2" style="">


                                <a href="#" class="text-decoration-none" data-toggle="modal" data-target="#staticBackdrop">
                                    <div class=" d-flex align-items-center justufy-content-center text-center " style="color: #bb3caa;">

                                        <i class="fas  fa-bell mx-2"></i>
                                    </div>
                                </a>


                            </div>

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

                <div class="col-xl-4 col-lg-5  d-flex align-items-center justify-content-center  order-lg-2 order-3 my-lg-0 my-3 ">


                    <div class="px-2 text-center w-100">
                        <form class="" dir="rtl" method="post" action="products.php">
                            <div class="form-row bg-light " style="border-radius: 15px;">
                                <div class=" col-xl-10 col-lg-9 col-8 d-flex align-items-center">
                                    <input class="form-control  border-0 bg-light my-auto text-right" style="font-size: 0.8rem;" type="search" placeholder="جستجوی محصولات" aria-label="Search" name="searchbartext">
                                </div>
                                <div class="col-xl-2 col-lg-3 col-4 text-left ">
                                    <button class="btn  my-1 " type="submit" name="searchbarbtn">
                                        <div class="d-flex align-items-center justify-content-center p-2  " style="color: #bb3caa;border-radius: 15px;"><i class="fa-search fa"></i></div>

                                    </button>
                                </div>
                            </div>
                        </form>


                    </div>



                </div>


                <div class="col-xl-4 col-lg-3  col-4  d-flex align-items-center justify-content-end order-lg-3 order-2 ">

                    <div class=" ">

                        <a class="navbar-brand d-flex align-items-center justify-content-end text-right text-decoration-none text-dark py-3 mx-1 font-weight-bold" href="#" style="font-size: 0.8rem;">
                            <div class="d-none d-md-inline-block my-auto text-break"><span class="text-dark text-break">صبا</span><br>سامانه ثبت سفارش</div>
                            <span class="logoshape gradient-bg-one ml-2"></span>

                        </a>


                    </div>




                </div>

            </div>





        </div>



    </div>




</div>
