<?php 
if(!$resultofinfo){
$cartcount = $basketcountpill;
$cart_add = "login.php";    
 
$dashnavname = '<div class="glass-bg  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: #fff;font-size: 0.8rem;"><a href="register.php" class="text-decoration-none" style="color: #fff;font-size: 0.8rem;"><div class="d-inline-block my-auto">ایجاد حساب</div></div><div class=" d-flex align-items-center justufy-content-center text-center  mx-3" style="color: #fff;"><i class="fas fa-user-plus "></i></div> </a></div>';
    
  	
$dashnavname .= '<div class="glass-bg  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: #fff;font-size: 0.8rem;"><a href="login.php" class="text-decoration-none" style="color: #fff;font-size: 0.8rem;"><div class="d-inline-block my-auto">ورود</div></div><div class=" d-flex align-items-center justufy-content-center text-center  mx-3" style="color: #fff;"><i class="fas fa-user "></i></div> </a></div>';
    
    
     
    
}else{
$cart_add = "cart.php";  	
	
$cartcount = $basketcountpill;
    
$dashnavname = $_SESSION['uzi'];
         
$dashnavname = '<div class="glass-bg 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: #fff;font-size: 0.8rem;"><a href="logout.php" class="text-decoration-none" style="color: #fff;font-size: 0.8rem;"><div class="d-inline-block my-auto">'.$dashnavname.'<br><span class="text-light" style="font-size: 0.7rem;">خروج از حساب</span></div></div><div class=" d-flex align-items-center justufy-content-center text-center  mx-3 p-2 badge badge-light" style="color: #121212;"><i class="fas fa-sign-out-alt text-success" style="font-size:0.9rem;"></i></div> </a></div>';    
    
    
}
?>


<div class="col-12  " style="border:0.2px solid rgba(255,255,255,0.05);">



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

<?php echo $dashnavname; ?>



                                                        <div class="glass-bg d-flex align-items-center justify-content-center text-dark shopcartbadgeholder ml-2" style="background-color: rgba(255,255,255,0.3);">





                                                            <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 text-white"></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 " 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-white" 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-white"></i></div>

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


                                                </div>



                                            </div>


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


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




                                                            <div class="glass-bg d-flex align-items-center justify-content-center text-dark shopcartbadgeholder ml-2" style="background-color: rgba(255,255,255,0.3);">





                                                                <a href="<?php echo $cart_add;?>" class="text-decoration-none">
                                                                    <div class=" d-flex align-items-center justufy-content-center text-center " style="color: #bb3caa;">
                        												<span class=" mr-1 ml-2 font-weight-bold" style="color: #fff;font-size: 0.8rem;">سبد خرید</span>
                                                                        
																		
                                                                        <span class="badge badge-warning text-white "><i class="fas fa-shopping-cart text-white mx-1"></i><?php echo $cartcount;?></span>
                                                                    </div>
                                                                </a>


                                                            </div>




                                                        </div>




                                            </div>

                                        </div>





        </div>



    </div>




</div>

