<?php 
if(!$resultofinfo){
$cartcount = $basketcountpill;
$company = $com_name;  
	
	
$dashnavname = '<div class="bg-light d-flex align-items-center justify-content-between text-white shopinfoholder mr-2" 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">ایجاد حساب</div></div><a href="register.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-user-plus "></i></div> </a></div>';
    	
$dashnavname .= '<div class="bg-light d-flex align-items-center justify-content-between text-white 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">ورود</div></div><a href="login.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-user "></i></div> </a></div>';
    
   
}else{
$cartcount = $basketcountpill;    
$dashnavname = $_SESSION['uzi'];
$company = $com_name;   
    
$dashnavname = '<div class="bg-light d-flex align-items-center justify-content-between text-white 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">'.$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="col-12  border-bottom border-light  ">



                <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="d-flex align-items-center justify-content-between text-dark shopinfoholder" style="">




                                            <?php echo $dashnavname;?>

                                        </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-md-3 pb-2">

                                <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;background-color: rgba(255,255,255,0.2);">
                                            <div class=" col-xl-10 col-lg-9 col-8 d-flex align-items-center">
                                                <input class="form-control plwhite  border-0  my-auto text-right text-secondary" style="font-size: 0.8rem;background-color: transparent;" name="searchpros"  type="search" placeholder="جستجوی محصولات" aria-label="Search">

                                            </div>
                                            <div class="col-xl-2 col-lg-3 col-4 text-left ">
                                                <button class="btn  my-1 " type="submit" name="searchprosbtn">
                                                    <div class="d-flex align-items-center justify-content-center p-2  " style="color: #bb3caa;border-radius: 15px;"><i class="fa-search fa text-dark"></i></div>

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





                                </div>

                            </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>


 