 <!--**********************************
            Nav header start
        ***********************************-->
        <div class="nav-header">
            <a href="index.php" class="brand-logo">
			<?php

								$stmt = $DB_con->prepare("SELECT * FROM ormssettings ORDER BY stid");

								$stmt->execute();

								if($stmt->rowCount() > 0)

								{

								while($row=$stmt->fetch(PDO::FETCH_ASSOC))

								{

								extract($row);

								?>
								<?php if($row['logo']==""){$pro_img="../dashboard/images/empty.jpg";}else{$pro_img="../dashboard/images/settings/".$row['logo'];} ?><img src="<?php echo $pro_img; ?>" class="logo-abbr">
								<?php 
								} 
								}
								?>
            </a>

            <div class="nav-control">
                <div class="hamburger">
                    <span class="line"></span><span class="line"></span><span class="line"></span>
                </div>
            </div>
        </div>
        <!--**********************************
            Nav header end
        ***********************************-->

        <!--**********************************
            Header start
        ***********************************-->
        <div class="header">
            <div class="header-content">
                <nav class="navbar navbar-expand">
                    <div class="collapse navbar-collapse justify-content-between">
                        <div class="header-left">
                            
                        </div>

                        <ul class="navbar-nav header-right">
							<li class="nav-item notification_dropdown show">
                                <a class="btn btn-danger" href="#" style='font-weight:bold;font-size:15px;'><i class='fa fa-money' style='font-weight:bold;font-size:15px;'></i> Rs. <?php echo $userbalance; ?></a>
                            </li>
							<li class="nav-item notification_dropdown show">
                                <a class="btn btn-success" href="topup.php" style="background-color:#0847cb;font-weight:bold;font-size:15px;color:#ffffff;"><i class="fa fa-plus-circle" style="background-color:#0847cb;font-weight:bold;font-size:15px;color:#ffffff;"></i> TOP-UP</a>
                            </li>
                            <li class="nav-item dropdown header-profile">
                                <a class="nav-link" href="#" role="button" data-toggle="dropdown">
                                    <img src="<?php echo $image_path; ?>" width="20" alt=""/>
                                </a>
                                <div class="dropdown-menu dropdown-menu-right">
                                    <a href="home.php" class="dropdown-item ai-icon">
                                        <svg id="icon-user1" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
                                        <span class="ml-2"><?php echo $user_resalt['fname'];?> <?php echo $user_resalt['lname'];?></span><br>
										<span class="ml-2"><?php 
										
							$seller_qury=mysqli_query($conn,"SELECT * FROM ormsregister WHERE reid='$_SESSION[reid]'");
							$seller_resalt=mysqli_fetch_array($seller_qury);
							
                            if($seller_resalt['sellertype'] == "1"){

                            echo '<button class="btn btn-success btn-sm">White Label Admin</button>';

                            }else if($seller_resalt['sellertype'] == "2"){

                            echo '<button class="btn btn-primary btn-sm">Master</button>';

                            }else if($seller_resalt['sellertype'] == "3"){

                            echo '<button class="btn btn-secondary btn-sm">Manager</button>';

                            }else if($seller_resalt['sellertype'] == "4"){

                            echo '<button class="btn btn-dark btn-sm">Distributor</button>';

                            }else if($seller_resalt['sellertype'] == "5"){

                            echo '<button class="btn btn-info btn-sm">Retailer</button>';

                            }

                            ?></span>
							
                                    </a>
									<a href="edit_profile.php?reid=<?php echo $customer; ?>" class="dropdown-item ai-icon">
                                        <i class="la la-edit" style="font-size:22px;"></i><span class="ml-2">Edit Profile </span>
                                    </a>
									<a href="change_password.php?reid=<?php echo $customer; ?>" class="dropdown-item ai-icon">
                                        <i class="la la-user-secret" style="font-size:22px;"></i><span class="ml-2">Change Password </span>
                                    </a>
                                    <a href="logout.php" class="dropdown-item ai-icon">
                                        <svg id="icon-logout" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-log-out"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
                                        <span class="ml-2">Logout </span>
                                    </a>
                                </div>
                            </li>
                        </ul>
                    </div>
                </nav>
            </div>
        </div>
        <!--**********************************
            Header end ti-comment-alt
        ***********************************-->
<div class="container mt-5" style="margin-top: 5rem!important;">
    <div class="row">
        <div class="col-md-12">
            <div class="d-flex justify-content-between align-items-center breaking-news bg-white" style="border: 2px solid #2ac20b;">
                <div class="d-flex flex-row flex-grow-1 flex-fill justify-content-center bg-danger py-2 text-white px-1 news"><span class="d-flex align-items-center">&nbsp;Announcement</span></div>
                <marquee class="news-scroll" behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();"> 
<?php
$count=0;
$list_qury=mysqli_query($conn,"SELECT * FROM ormsnotice where status='1' ORDER BY nid DESC");

while($list_resalt=mysqli_fetch_array($list_qury)){
$count++;

?>
				<span class="dot"></span> <a href="#"><?php echo $list_resalt['nnotice']; ?></a>
				
<?php 
}
?>
                </marquee>
            </div>
        </div>
    </div>
</div>