	<div class="left-side-bar">
		<div class="brand-logo">
			<a href="index.php">
				<?php 
					$loggedin_company = $_SESSION['company'];
					
				
				?>
				<h4 style="font-weight:700;"><?php echo $loggedin_company['c_shortname']?></h4>
				<!-- <img src="vendors/images/deskapp-logo.png" alt=""> -->

			</a>
		</div>
		<?php
				$csadded=$_SESSION['murgibhai'];
				$getlog=f(q("SELECT * FROM tbl_login WHERE l_uid='$csadded'"));
				$ltype=$getlog['l_type'];
				$limitedMenu = [
					['label'=>'Cable Customer List','href'=>'cablecust.php','icon'=>'fa fa-users'],
					['label'=>'Generate Bills','href'=>'generatebill.php','icon'=>'fa fa-file-text'],
					['label'=>'Bill List','href'=>'dtbilllist.php','icon'=>'fa fa-list-alt'],
					['label'=>'Customer Payments','href'=>'customer-payments.php','icon'=>'fa fa-money'],
					['label'=>'Add New Ticket','href'=>'new-ticket.php','icon'=>'fa fa-ticket'],
					['label'=>'Ticket List','href'=>'ticket-list.php','icon'=>'fa fa-list'],
				];
		?>
		<div class="menu-block customscroll">
			<div class="sidebar-menu">
			<form action="custgist.php?action=search" method="POST">
							<div class="row">
								<div class="col-9">
								<input type="text" class="form-control" placeholder="A/C No Search" name="userdet">

								</div>
								<div class="col-3">
									<button type="submit" class="btn btn-danger"><i class="fa fa-search"></i></button>
								</div>
							</div>
							
							
							</form>
						<br><br>
				<ul id="accordion-menu">
					
					<?php if($ltype!='1'){ ?>
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-home"></span><span class="mtext">Home</span>
						</a>
						<ul class="submenu">
							<li><a href="index.php">Dashboard</a></li>
							<!-- <li><a href="index2.php">Dashboard style 2</a></li> -->
						</ul>
					</li>
						<?php foreach($limitedMenu as $item){ ?>
							<li>
								<a href="<?php echo $item['href']; ?>" class="dropdown-toggle no-arrow">
									<span class="<?php echo $item['icon']; ?>"></span><span class="mtext"><?php echo $item['label']; ?></span>
								</a>
							</li>
						<?php } ?>
						<li>
							<a href="logout.php" class="dropdown-toggle no-arrow">
								<span class="fa fa-sitemap"></span><span class="mtext">Logout</span>
							</a>
						</li>
					<?php } else { ?>
					
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-home"></span><span class="mtext">Home</span>
						</a>
						<ul class="submenu">
							<li><a href="index.php">Dashboard</a></li>
							<!-- <li><a href="index2.php">Dashboard style 2</a></li> -->
						</ul>
					</li>
					<?php if($ltype=='1'){ ?>
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-pencil famenu"></span><span class="mtext">Masters</span>
						</a>
						
						<ul class="submenu">
							<?php $ret=getaccess("company-master.php",$ltype); if($ret==1){ ?><li><a href="company-master.php">Company Master</a></li><?php } ?>
							<?php $ret=getaccess("msomaster.php",$ltype); if($ret==1){ ?><li><a href="msomaster.php">MSO Master</a></li><?php } ?>
							<?php $ret=getaccess("package.php",$ltype); if($ret==1){ ?><li><a href="package.php">Package Master</a></li><?php } ?>
							<!-- <?php $ret=getaccess("package.php",$ltype); if($ret==1){ ?><li><a href="import-channel-master.php" style="background-color: #28a745; color: white;">Import Channel Master</a></li><?php } ?> -->
							<?php $ret=getaccess("areamaster.php",$ltype); if($ret==1){ ?><li><a href="areamaster.php">Area Master</a></li><?php } ?>
							<!-- <?php $ret=getaccess("areamaster.php",$ltype); if($ret==1){ ?><li><a href="import-area-master.php" style="background-color: #28a745; color: white;">Import Area Master</a></li><?php } ?> -->
							<?php $ret=getaccess("financial-year-master.php",$ltype); if($ret==1){ ?><li><a href="financial-year-master.php">Financial Year Master</a></li><?php } ?>
							<!-- <li><a href="lanemaster.php">Lane Master</a></li>
							<li><a href="manufacturer.php">Manufacturers</a></li>
							<li><a href="product-master.php">Product Master</a></li>
							<li><a href="liftman.php">Liftman Master</a></li> -->
							<?php $ret=getaccess("ledger-master.php",$ltype); if($ret==1){ ?><li><a href="ledger-master.php">Expense Head</a></li><?php } ?>
							<?php $ret=getaccess("usertype.php",$ltype); if($ret==1){ ?><li><a href="usertype.php">User Type</a></li><?php } ?>
							<!-- <li><a href="pagenames.php">Page Names</a></li>
							<li><a href="access.php">User Type Access</a></li> -->
							<?php $ret=getaccess("usermaster.php",$ltype); if($ret==1){ ?><li><a href="usermaster.php">User Master</a></li><?php } ?>
							<?php $ret=getaccess("lineman_master.php",$ltype); if($ret==1){ ?><li><a href="lineman_master.php">Lineman Master</a></li><?php } ?>
							<!-- <li><a href="imvc.php">Import STB/VC</a></li> -->
							<?php $ret=getaccess("imvc.php",$ltype); if($ret==1){ ?>
								<!-- <li><a href="imvc.php">Import STB/VC</a></li> -->
								<?php } ?>

							<!-- <?php $ret=getaccess("imvc.php",$ltype); if($ret==1){ ?><li><a href="sender-ids.php">SMS IDs</a></li><?php } ?> -->

						</ul>
						
					</li>
				<?php } ?>
					
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-users"></span><span class="mtext">Customers</span>
						</a>
						<ul class="submenu">

						
							
							<?php $ret=getaccess("addcuser.php",$ltype); if($ret==1){ ?><li><a href="addcuser.php">Add Cable Customer</a></li><?php } ?>
							<!-- <li><a href="addiuser.php">Add Internet Customer</a></li> -->
							<?php $ret=getaccess("cablecust.php",$ltype); if($ret==1){ ?><li><a href="cablecust.php">Customer List</a></li><?php } ?>

							<?php $ret=getaccess("deactcust.php",$ltype); if($ret==1){ ?><li><a href="deactcust.php">Deactive Customer List</a></li><?php } ?>
							<!-- <li><a href="internetcust.php">Internet List</a></li> -->
							
							<!-- <li><a href="cablebarcode.php" target="_blank">Customer Barcode List</a></li> -->
						</ul>
					</li>
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-table"></span><span class="mtext">Transactions</span>
						</a>
						<ul class="submenu">
							<?php $ret=getaccess("generatebill.php",$ltype); if($ret==1){ ?><li><a href="generatebill.php">Generate Bills</a></li><?php } ?>
							<?php $ret=getaccess("generatebill.php",$ltype); if($ret==1){ ?>
								<!-- <li><a href="generatebill_area_wise.php">Generate Bill Lineman Wise</a></li> -->
								<?php } ?>
							<?php $ret=getaccess("dtbilllist.php",$ltype); if($ret==1){ ?><li><a href="dtbilllist.php">Bill List</a></li><?php } ?>
							<?php $ret=getaccess("area_wise.php",$ltype); if($ret==1){ ?><li><a href="areawise-print.php" style="background-color: #217091;color:white;">Lineman Wise Bill Print</a></li><?php } ?>
							<!-- <?php $ret=getaccess("area_wise.php",$ltype); if($ret==1){ ?><li><a href="deletebill_area_wise.php" style="background-color: #891a1a;color:white;">Lineman Wise Bill Delete</a></li><?php } ?> -->
							<?php $ret=getaccess("otherbills.php",$ltype); if($ret==1){ ?><li><a href="linemanbills.php">Lineman Bill List</a></li><?php } ?>
							<?php $ret=getaccess("otherbills.php",$ltype); if($ret==1){ ?><li><a href="nobillcustomer.php">No Bill List</a></li><?php } ?>
							<?php $ret=getaccess("otherbills.php",$ltype); if($ret==1){ ?><li><a href="otherbills.php">Generate Other Bills</a></li><?php } ?>
							<?php $ret=getaccess("odtbilllist.php",$ltype); if($ret==1){ ?><li><a href="odtbilllist.php">Other Bill list</a></li><?php } ?>
							<?php $ret=getaccess("customer-payments.php",$ltype); if($ret==1){ ?><li><a href="customer-payments.php">Customer Payments</a></li><?php } ?>
							<?php $ret=getaccess("add-expense.php",$ltype); if($ret==1){ ?><li><a href="add-expense.php">Add Expenses</a></li><?php } ?>
							<?php $ret=getaccess("dtexpense.php",$ltype); if($ret==1){ ?><li><a href="dtexpense.php">Expenses List</a></li><?php } ?>
							<?php $ret=getaccess("dtpayment.php",$ltype); if($ret==1){ ?><li><a href="dtpayment.php">Payment List</a></li><?php } ?>
							<!-- <li><a href="rbsales-list.php">Readybird Sale List</a></li>
							<li><a href="rbpayment-list.php">Readybird Payments List</a></li> -->
						</ul>
					</li>
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-life-bouy"></span><span class="mtext">Tickets</span>
						</a>
						<ul class="submenu">
							<?php $ret=getaccess("problem_master.php",$ltype); if($ret==1){ ?><li><a href="problem_master.php">Problem Master</a></li><?php } ?>
							<?php $ret=getaccess("new-ticket.php",$ltype); if($ret==1){ ?><li><a href="new-ticket.php"> Add New Ticket</a></li><?php } ?>
							<?php $ret=getaccess("ticket-list.php",$ltype); if($ret==1){ ?><li><a href="ticket-list.php">Ticket List</a></li><?php } ?>
							
							
							<!-- <li><a href="rbsales-list.php">Readybird Sale List</a></li>
							<li><a href="rbpayment-list.php">Readybird Payments List</a></li> -->
						</ul>
					</li>
					<!-- <li>
						<a href="calendar.php" class="dropdown-toggle no-arrow">
							<span class="fa fa-calendar-o"></span><span class="mtext">Calendar</span>
						</a>
					</li> -->
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-file-o"></span><span class="mtext"> Reports </span>
						</a>
						<ul class="submenu">
						<?php $ret=getaccess("companywise.php",$ltype); if($ret==1){ ?><li><a href="companywise.php" style="background-color: chartreuse;">Company Wise Customers</a></li><?php } ?>
						<?php $ret=getaccess("areawise.php",$ltype); if($ret==1){ ?><li><a href="areawise.php" style="">Area Wise Customers</a></li><?php } ?>
						<?php $ret=getaccess("linemanwise.php",$ltype); if($ret==1){ ?><li><a href="linemanwise.php" style="">Lineman Wise Customers</a></li><?php } ?>
							<?php $ret=getaccess("area_wise.php",$ltype); if($ret==1){ ?><li><a href="area_wise.php">Area Wise Bills</a></li><?php } ?>
							<?php $ret=getaccess("bill_generate.php",$ltype); if($ret==1){ ?><li><a href="bill_generate.php" style="background-color: chartreuse;">Bill Generate Report</a></li><?php } ?>
							<?php $ret=getaccess("bill_generate.php",$ltype); if($ret==1){ ?><li><a href="billgen_start.php" style="background-color: chartreuse;">Bill Generate Report(Start Date)</a></li><?php } ?>
							<?php $ret=getaccess("customer_wise.php",$ltype); if($ret==1){ ?><li><a href="customer_wise.php">Customer Wise Report</a></li><?php } ?>
							<?php $ret=getaccess("date_wise.php",$ltype); if($ret==1){ ?><li><a href="date_wise.php">Date Wise Bill Generate</a></li><?php } ?>
							<?php $ret=getaccess("mso_payment.php",$ltype); if($ret==1){ ?><li><a href="mso_payment.php">MSO Payment List</a></li><?php } ?>
							<?php $ret=getaccess("enddate.php",$ltype); if($ret==1){ ?><li><a href="enddate.php">End Date Wise Customer</a></li><?php } ?>
							<?php $ret=getaccess("enddate.php",$ltype); if($ret==1){ ?><li><a href="daterenewal.php">Date Wise Renewals</a></li><?php } ?>
							<?php $ret=getaccess("nonpaydatewise.php",$ltype); if($ret==1){ ?><li><a href="nonpaydatewise.php">No Pay Customer Reports</a></li><?php } ?>
							
							<?php $ret=getaccess("datewisepayment.php",$ltype); if($ret==1){ ?><li><a href="datewisepayment.php">Date to Date Payment</a></li><?php } ?>
							<?php $ret=getaccess("total_payment.php",$ltype); if($ret==1){ ?><li><a href="total_payment.php">Area Payment List</a></li><?php } ?>

							
							<?php $ret=getaccess("duereport.php",$ltype); if($ret==1){ ?><li><a href="duereport.php" target="_blank">Due Report</a></li><?php } ?>
							<?php $ret=getaccess("linemandue.php",$ltype); if($ret==1){ ?><li><a href="linemandue.php">Lineman Due Report</a></li><?php } ?>
							
							

								<?php $ret=getaccess("lineman_payment.php",$ltype); if($ret==1){ ?><li><a href="lineman_payment.php">Lineman wise Payment</a></li><?php } ?>
							<?php if($ltype=='1'){ ?> 
							<?php $ret=getaccess("total-gst.php",$ltype); if($ret==1){ ?><li><a href="total-gst.php">Input GST Report</a></li><?php } ?>
							<?php $ret=getaccess("outgst.php",$ltype); if($ret==1){ ?><li><a href="outgst.php">Output GST Report</a></li><?php } ?>
							<?php $ret=getaccess("expense-report.php",$ltype); if($ret==1){ ?><li><a href="expense-report.php">Expense Report</a></li><?php } ?>
							<?php $ret=getaccess("profitloss.php",$ltype); if($ret==1){ ?><li><a href="profitloss.php">Profit &amp; Loss Report</a></li><?php } ?>
							<?php } ?>
							<?php $ret=getaccess("ticket-report.php",$ltype); if($ret==1){ ?><li><a href="ticket-report.php">Ticket Report</a></li><?php } ?> 

							
							<!-- <li><a href="ui-modals.php">Modals</a></li>
							<li><a href="ui-tabs.php">Tabs</a></li>
							<li><a href="ui-tooltip-popover.php">Tooltip &amp; Popover</a></li>
							<li><a href="ui-sweet-alert.php">Sweet Alert</a></li>
							<li><a href="ui-notification.php">Notification</a></li>
							<li><a href="ui-timeline.php">Timeline</a></li>
							<li><a href="ui-progressbar.php">Progressbar</a></li>
							<li><a href="ui-typography.php">Typography</a></li>
							<li><a href="ui-list-group.php">List group</a></li>
							<li><a href="ui-range-slider.php">Range slider</a></li>
							<li><a href="ui-carousel.php">Carousel</a></li> -->
						</ul>
					</li>
					<!-- <li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-table"></span><span class="mtext">Settings</span>
						</a>
						<ul class="submenu">
							
							<li><a href="imexcel.php">Import Cable Customer</a></li>
							<li><a href="imcbills.php">Import Cable Bills</a></li>
							<li><a href="iminternet.php">Import Internet Customer</a></li>
							<li><a href="imipack.php">Import Internet Package</a></li>
							<li><a href="imcpack.php">Import Channel</a></li>
							
						</ul>
					</li> -->
				

					<li>
						<a href="logout.php" class="dropdown-toggle no-arrow">
							<span class="fa fa-sitemap"></span><span class="mtext">Logout</span>
						</a>
					</li>
					

					<!-- <li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-paint-brush"></span><span class="mtext">Icons</span>
						</a>
						<ul class="submenu">
							<li><a href="font-awesome.php">FontAwesome Icons</a></li>
							<li><a href="foundation.php">Foundation Icons</a></li>
							<li><a href="ionicons.php">Ionicons Icons</a></li>
							<li><a href="themify.php">Themify Icons</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-plug"></span><span class="mtext">Additional Pages</span>
						</a>
						<ul class="submenu">
							<li><a href="video-player.php">Video Player</a></li>
							<li><a href="login.php">Login</a></li>
							<li><a href="forgot-password.php">Forgot Password</a></li>
							<li><a href="reset-password.php">Reset Password</a></li>
							<li><a href="403.php">403</a></li>
							<li><a href="404.php">404</a></li>
							<li><a href="500.php">500</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-pie-chart"></span><span class="mtext">Charts</span>
						</a>
						<ul class="submenu">
							<li><a href="highchart.php">Highchart</a></li>
							<li><a href="knob-chart.php">jQuery Knob</a></li>
							<li><a href="jvectormap.php">jvectormap</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-clone"></span><span class="mtext">Extra Pages</span>
						</a>
						<ul class="submenu">
							<li><a href="blank.php">Blank</a></li>
							<li><a href="contact-directory.php">Contact Directory</a></li>
							<li><a href="blog.php">Blog</a></li>
							<li><a href="blog-detail.php">Blog Detail</a></li>
							<li><a href="product.php">Product</a></li>
							<li><a href="product-detail.php">Product Detail</a></li>
							<li><a href="faq.php">FAQ</a></li>
							<li><a href="profile.php">Profile</a></li>
							<li><a href="gallery.php">Gallery</a></li>
							<li><a href="pricing-table.php">Pricing Tables</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a href="javascript:;" class="dropdown-toggle">
							<span class="fa fa-list"></span><span class="mtext">Multi Level Menu</span>
						</a>
						<ul class="submenu">
							<li><a href="javascript:;">Level 1</a></li>
							<li><a href="javascript:;">Level 1</a></li>
							<li><a href="javascript:;">Level 1</a></li>
							<li class="dropdown">
								<a href="javascript:;" class="dropdown-toggle">
									<span class="fa fa-plug"></span><span class="mtext">Level 2</span>
								</a>
								<ul class="submenu child">
									<li><a href="javascript:;">Level 2</a></li>
									<li><a href="javascript:;">Level 2</a></li>
								</ul>
							</li>
							<li><a href="javascript:;">Level 1</a></li>
							<li><a href="javascript:;">Level 1</a></li>
							<li><a href="javascript:;">Level 1</a></li>
						</ul>
					</li>
					<li>
						<a href="sitemap.php" class="dropdown-toggle no-arrow">
							<span class="fa fa-sitemap"></span><span class="mtext">Sitemap</span>
						</a>
					</li>
					<li>
						<a href="chat.php" class="dropdown-toggle no-arrow">
							<span class="fa fa-comments-o"></span><span class="mtext">Chat <span class="fi-burst-new text-danger new"></span></span>
						</a>
					</li> -->
					<!-- <li>
						<a href="invoice.php" class="dropdown-toggle no-arrow">
							<span class="fa fa-map-o"></span><span class="mtext">Invoice</span>
						</a>
					</li> -->
					<?php } ?>
				</ul>

				<center style="margin-top:10%;"><a href="#" class="btn btn-warning">
							CABLE
						</a></center>
			</div>
		</div>
	</div>
