<div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
        <div class="nano">
            <div class="nano-content">
                <ul>
				
				
	
				
				
                    <li><a href="dashboard.php"><i class="ti-home"></i>Booking Details</a></li>
					 <li class="label">Events</li>
					 
					<?php
					
					$sqlSelectedLG = "SELECT t1.id,t2.name FROM `events` as t1 left join event_types as t2 on t1.type=t2.id WHERE `temp_id` = '$temp_id' ORDER BY TIMESTAMP(t1.date,t1.time)";

$sqlSelectedLG = mysqli_query($connection, $sqlSelectedLG);
while ($list = mysqli_fetch_object($sqlSelectedLG)) {

                                    
                                   
                                    $ev_id = $list->id;
								    $ev_name = $list->name;
								    
										 	
											   
                                  
								
                                    
                                   
                                ?>
					   <li><a href="event.php?id=<?php echo $ev_id; ?>"><i class="ti-calendar"></i> <?php echo $ev_name; ?> </a></li>
					 
					  
<?php } ?>
	  <?php
				$tkt_notification=" SELECT * FROM `tickets` WHERE booking_temp_id='$temp_id' AND (last_reply_by='Staff' AND status='Open') ";
				$tkt_notification = mysqli_query($connection,$tkt_notification);
                $tkt_notification = mysqli_num_rows($tkt_notification);
				
				?>
				  <li><a href="tickets.php?status=1"><i class="ti-comments"></i>Tickets
				  
				   <?php if ($tkt_notification>0) { ?>
					  <span class="badge badge-primary"><?php echo $tkt_notification; ?></span> 
					  
					  <?php } ?>
				  
				  </a></li>
                   
                </ul>
            </div>
        </div>
    </div>
	
	