<?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;
$personname = $_SESSION['uzi'];
$company = $com_name;
?>




<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 px-0">


            <div class="row">

                <div class="col-xl-4 col-lg-4  col-md-8 col-8 d-flex align-items-center justify-content-start order-lg-1 order-md-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 $personname;?>
                                        <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 id="cartitemcountbadge" 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-md-3 order-3  py-3 ">


                    <a href="index.php" class="text-decoration-none">
                        <div class="h6 d-flex align-items-center" style="color: #02142B;"><i class="fa fa-arrow-circle-left mx-2"></i>بازگشت به صفحه اصلی</div>
                    </a>


                </div>


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

                    <div class=" ">

                        <a class=" navbar-brand d-flex flex-column-reverse flex-md-row align-items-md-center align-items-end 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-md-inline-block my-auto text-break d-none"><span class="text-secondary text-break">سامانه ثبت سفارش</span><br><?php echo $company;?></div>
                            <div class="logoshapeimg gradiesnt-bg-one bg-white mb-md-0 mb-2 ml-1" style="background-image:url(http://www.lajeh.ir/project/imgs/asdw_400_SABA_lajeh.jpg);"></div>

                        </a>


                    </div>




                </div>

            </div>





        </div>



    </div>




</div>
