<!-- Profile Sidebar -->
							<div class="profile-sidebar">
								<div class="widget-profile pro-widget-content">
									<div class="profile-info-widget">
										<a href="vendor_dashboard.php" class="booking-doc-img">
										    <?php
    										    $v_sql = $config->query("SELECT * FROM v_profile WHERE v_id = '$user_id' ");
                                                $v_res = $v_sql->fetch_assoc();
										    ?>
											<img src="assets/img/<?php echo empty($v_res['vp_image']) ? 'no-avatar.png' : 'vendor/profile/'.$v_res['vp_image'] ;?>" alt="<?= $username ?> vendor Image">
										</a>
										<div class="profile-det-info">
											<h3><?= $username; ?></h3>
											
											<div class="patient-details">
												<h5 class="mb-0"><?= $company ?></h5>
											</div>
										</div>
									</div>
								</div>
								<div class="dashboard-widget">
									<nav class="dashboard-menu">
										<ul>
											<li class="active">
												<a href="vendor_dashboard.php">
													<i class="fas fa-columns"></i>
													<span>Dashboard</span>
												</a>
											</li>
											<!--<li>-->
											<!--	<a href="package.php">-->
											<!--		<i class="fas fa-calendar-check"></i>-->
											<!--		<span>Package Histroy</span>-->
											<!--	</a>-->
											<!--</li>-->
											<li>
												<a href="post_event.php">
													<i class="fas fa-user-injured"></i>
													<span>Post Event</span>
												</a>
											</li>
											<li id="sidebar-submenu" onclick="sideshow()">
											    <i class="fas fa-user-injured"></i>
												<span>Listing View</span>
												<i class="fas fa-sort-down" style=""></i>
                            					<ul id="submenu-ul" class="submenu-ul" style="display: none;margin-top:10px;">
                            						<li class="d-flex justify-content-between align-items-center">
                            						    <a href="listing.php">Active Listing</a>
                            						    <small class="sd-badge" style="background: #0c781a;">
                            						        <?php
																$list_sql = "SELECT count(event_id) as tot FROM event_post WHERE vendor_id = '$user_id' AND e_status = 2 " ;
            											        $list_res = $config->query($list_sql);
            											        $list1 = $list_res->fetch_assoc();
            											           echo  $list1['tot'];
														    ?>
                            						    </small>
                            						</li>
                            						<li class="d-flex justify-content-between align-items-center">
                            						    <a href="listing_pending.php">Pending Listing</a>
                            						    <small class="sd-badge" style="background: #2594d5;">
                            						        <?php
																$list_sql = "SELECT count(event_id) as tot FROM event_post WHERE vendor_id = '$user_id' AND e_status = 1 " ;
            											        $list_res = $config->query($list_sql);
            											        $list1 = $list_res->fetch_assoc();
            											           echo  $list1['tot'];
														    ?>
                            						    </small>
                            						</li>
                            						<li class="d-flex justify-content-between align-items-center">
                            						    <a href="listing_inactive.php">Inactive Listing</a>
                            						    <small class="sd-badge" style="background: #d35e0c;">
                            						        <?php
																$list_sql = "SELECT count(event_id) as tot FROM event_post WHERE vendor_id = '$user_id' AND e_status = 3 " ;
            											        $list_res = $config->query($list_sql);
            											        $list1 = $list_res->fetch_assoc();
            											           echo  $list1['tot'];
														    ?>
                            						    </small>
                            						</li>
                            						<li class="d-flex justify-content-between align-items-center">
                            						    <a href="listing_rejected.php">Rejected Listing</a>
                            						    <small class="sd-badge" style="background: #ad0827;">
                            						        <?php
																$list_sql = "SELECT count(event_id) as tot FROM event_post WHERE vendor_id = '$user_id' AND e_status = 0 " ;
            											        $list_res = $config->query($list_sql);
            											        $list1 = $list_res->fetch_assoc();
            											           echo  $list1['tot'];
														    ?>
                            						    </small>
                            						</li>
                            					</ul>
                            				</li>	
											<!--<li>-->
											<!--	<a href="order_history.php">-->
											<!--		<i class="fas fa-hourglass-start"></i>-->
											<!--		<span>Order History</span>-->
											<!--		<small class="unread-msg">-->
													<?php 
    											     //   $his_sql = $config->query(" SELECT count(order_id) as tot FROM order_master WHERE customer_id = '$user_id' ") ;
    											     //   $his = $his_sql->fetch_assoc();
    											     //   echo $his['tot'];
    											    ?>
											<!--		</small>-->
											<!--	</a>-->
											<!--</li>-->
											<!--<li>-->
											<!--	<a href="wallet.php">-->
											<!--		<i class="fas fa-file-invoice"></i>-->
											<!--		<span>Payment Amount</span>-->
											<!--	</a>-->
											<!--</li>-->
											<li>
												<a href="wallet_request.php">
													<i class="fas fa-star"></i>
													<span>Wallet Amount</span>
												</a>
											</li>
											<li>
												<a href="wallet-swap.php">
													<i class="fas fa-star"></i>
													<span>Wallet Swap</span>
												</a>
											</li>
											<li>
												<a href="add_user.php">
													<i class="fas fa-star"></i>
													<span>Add User</span>
												</a>
											</li>
											<!--<li>-->
											<!--	<a href="#">-->
											<!--		<i class="fas fa-comments"></i>-->
											<!--		<span>Notification</span>-->
											<!--		<small class="unread-msg">23</small>-->
											<!--	</a>-->
											<!--</li>-->
											<li>
												<a href="vendor_profile.php">
													<i class="fas fa-user-cog"></i>
													<span>Profile Settings</span>
												</a>
											</li>
											<!--<li>-->
											<!--	<a href="social-media.html">-->
											<!--		<i class="fas fa-share-alt"></i>-->
											<!--		<span>Social Media</span>-->
											<!--	</a>-->
											<!--</li>-->
											<li>
												<a href="vendor_changepass.php">
													<i class="fas fa-lock"></i>
													<span>Change Password</span>
												</a>
											</li>
											<li>
												<a href="vendor_logout.php">
													<i class="fas fa-sign-out-alt"></i>
													<span>Logout</span>
												</a>
											</li>
										</ul>
									</nav>
								</div>
							</div>
							<!-- /Profile Sidebar -->
<style>
    .submenu-ul{
        display: none;
    }
    #submenu-ul li {
        padding: 12px 26px 6px;
        border-bottom: 1px solid #cfc7c791;
    }
    #submenu-ul li:last-child{
        border-bottom: unset;
    }
    #submenu-ul li a{
        color: #757575;
    }
    #submenu-ul li a:hover{
        color: #FF6600;
    }
    #sidebar-submenu{
        cursor:pointer;
        padding:16px 20px;
    }
    #sidebar-submenu i{ 
        font-size: 16px;
        margin-right: 10px;
        width: 16px;
    }
    .sd-badge{
        font-size: 12px;
        padding: 4px 5px;
        color: #fff;
        border-radius:2px;
    }
</style>							
<script>
    let sidemenu = document.getElementById("sidebar-submenu");
    let sideul = document.getElementById("submenu-ul");
    function sideshow(){
        if(sideul.style.display == "none"){
            sideul.style.display = "block" ;
        }else{
            sideul.style.display = "none" ;
        }
    }
</script>							