	<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">

    <div class="menu_section">

    <h3>General</h3>
		<?php if(isset($_SESSION['admin']['a_auth'])==1 || isset($_SESSION['admin']['a_auth'])==2){ ?>
        <ul class="nav side-menu">
			<li><a><i class="fa fa-home"></i> HOME <span class="fa fa-chevron-down"></span></a>
			<ul class="nav child_menu">
				<li><a href="index.php?pagecontent=dashboard">Dashboard</a></li>
				<li><a href="index.php?pagecontent=profits">Profits</a></li>
                <li><a href="index.php?pagecontent=reservations">Reservation List</a></li>
                <li><a href="index.php?pagecontent=guestlist">Guest List</a></li>
                <li><a href="index.php?pagecontent=rooms">Rooms</a></li>
                <li><a href="index.php?pagecontent=owners">Owners</a></li>
                <li><a href="index.php?pagecontent=sms_activity">SMS Activity</a></li>
                <li><a href="index.php?pagecontent=deposit_activity">Deposit Activity</a></li>
                <li><a href="index.php?pagecontent=guest_activity">Guest Activity</a></li>
                <!--<li><a href="index3.html">Dashboard3</a></li>-->

			</ul>
            </li>
            <li><a><i class="fa fa-edit"></i> DETAILS <span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
					<li><a href="index.php?pagecontent=reservations">Reservations</a></li>
					<li><a href="index.php?pagecontent=admins">Admins</a></li>
					<li><a href="index.php?pagecontent=users">Users</a></li>
					<li><a href="index.php?pagecontent=staffs">Staffs</a></li>
					<li><a href="index.php?pagecontent=properties">Properties</a></li>
					<li><a href="index.php?pagecontent=rooms">Rooms</a></li>
					<li><a href="index.php?pagecontent=cards">Cards</a></li>
                    <?php if($_SESSION['admin']['a_auth'] == 2){ ?>
					<li><a href="index.php?pagecontent=property_admin">Property Admin</a></li>
					<li><a href="index.php?pagecontent=room_admin">Room Admin</a></li>
					<li><a href="index.php?pagecontent=teams">Teams</a></li>
					<li><a href="index.php?pagecontent=maintenance">Maintenance</a></li>
                    <?php } ?>
					<li><a href="index.php?pagecontent=router_apartment">Router Apartment</a></li>
					<li><a href="index.php?pagecontent=room_types">Room Type</a></li>
					<li><a href="index.php?pagecontent=items">Items</a></li>
					<li><a href="index.php?pagecontent=platform">Platform</a></li>
					<li><a href="index.php?pagecontent=expenses_type">Expenses Type</a></li>
					<li><a href="index.php?pagecontent=utility_type">Utility Type</a></li>
					<li><a href="index.php?pagecontent=facilities">Facilities</a></li>
					<li><a href="index.php?pagecontent=bills">Bills</a></li>
					<li><a href="index.php?pagecontent=inventories">Inventories</a></li>
                </ul>
			</li>

            <li><a><i class="fa fa-edit"></i> RESERVATIONS <span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
					<li><a href="index.php?pagecontent=user_new&redirect=reservation_new">New Guest</a></li>
					<li><a href="index.php?pagecontent=reservation_new">New Reservation</a></li>
					<li><a href="?pagecontent=reservations">Reservations</a></li>
					<li><a href="?pagecontent=deposit">Deposit</a></li>
                </ul>
			</li>

            <li><a><i class="fa fa-edit"></i> MANAGEMENT <span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
                    <li><a href="?pagecontent=expenses">Expenses</a></li>
                    <li><a href="?pagecontent=utility&type=6">Rental</a></li>
                    <li><a href="?pagecontent=utility&type=1">TNB</a></li>
                    <li><a href="?pagecontent=utility&type=2">Water Bill</a></li>
                    <li><a href="?pagecontent=utility&type=3">Internet</a></li>
                    <li><a href="?pagecontent=utility&type=8">Netflix</a></li>
                    <li><a href="?pagecontent=utility&type=5">Indah Water</a></li>
                    <li><a href="?pagecontent=utility&type=7">Maintaince Fee</a></li>
                </ul>
            </li>

            <li><a><i class="fa fa-edit"></i> PLATFORM <span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
                    <li><a href="?pagecontent=platform_income">Income</a></li>
                </ul>
            </li>

			<li><a><i class="fa fa-edit"></i> REPORT <span class="fa fa-chevron-down"></span></a>
				<ul class="nav child_menu">
					<li><a href="index.php?pagecontent=report_availability">Availability (Daily)</a></li>
					<li><a href="index.php?pagecontent=report_availability_monthly">Availability (Monthly)</a></li>
					<li><a href="index.php?pagecontent=claims">Claim</a></li>
					<li><a href="index.php?pagecontent=report_profit">Monthly</a></li>
					<li><a href="index.php?pagecontent=overall_report">Overall</a></li>
					<li><a href="index.php?pagecontent=report_profit">Room</a></li>
					<li><a href="index.php?pagecontent=report">Investor</a></li>
				</ul>
			</li>

			<li><a><i class="fa fa-edit"></i> PAYOUT <span class="fa fa-chevron-down"></span></a>
				<ul class="nav child_menu">
					<li><a href="index.php?pagecontent=payout_by_month">BY MONTH</a></li>
					<li><a href="index.php?pagecontent=payout_upload">UPLOAD</a></li>
				</ul>
			</li>

            <li><a><i class="fa fa-edit"></i>CLAIM<span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
					<li><a href="?pagecontent=expenses_claim">Manage</a></li>
					<li><a href="?pagecontent=expenses_report">Report</a></li>
                </ul>

			</li>

            <li><a><i class="fa fa-edit"></i> EMAIL PARSER <span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
					<li><a href="index.php?pagecontent=ep_apartments">Apartments</a></li>
					<!-- <button class="btn btn-default source" onclick="new PNotify({
                                  title: 'Regular Success',
                                  text: 'That thing that you were trying to do worked!',
                                  type: 'success',
                                  styling: 'bootstrap3'
                              });">Success</button> -->
                </ul>

			</li>

			<li><a><i class="fa fa-edit"></i>HOUSEKEEPING<span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
					<li><a href="index.php?pagecontent=cleaninglist&search=">Cleaning</a></li>
					<li><a href="index.php?pagecontent=housekeep_room_list">Request</a></li>
					<li><a href="index.php?pagecontent=room_housekeeper">Housekeeper</a></li>
					<li><a href="index.php?pagecontent=housekeeping_report">Report</a></li>
					<li><a href="index.php?pagecontent=stocks">Stocks</a></li>
					<li><a href="index.php?pagecontent=room_list">Shortage</a></li>
					<!--<li><a href="form_wizards.html">Form Wizard</a></li>
					<li><a href="form_upload.html">Form Upload</a></li>
					<li><a href="form_buttons.html">Form Buttons</a></li>-->
                </ul>
			</li>

			<li><a a href="?pagecontent=url_shortener"><i class="fa fa-edit"></i>URL SHORTENER</a></li>

			<!--<li><a><i class="fa fa-desktop"></i> UI Elements <span class="fa fa-chevron-down"></span></a>

				<ul class="nav child_menu">

					<li><a href="general_elements.html">General Elements</a></li>

					<li><a href="media_gallery.html">Media Gallery</a></li>

					<li><a href="typography.html">Typography</a></li>

					<li><a href="icons.html">Icons</a></li>

					<li><a href="glyphicons.html">Glyphicons</a></li>

					<li><a href="widgets.html">Widgets</a></li>

					<li><a href="invoice.html">Invoice</a></li>

					<li><a href="inbox.html">Inbox</a></li>

					<li><a href="calendar.html">Calendar</a></li>

                </ul>

            </li>

            <li><a><i class="fa fa-table"></i> Tables <span class="fa fa-chevron-down"></span></a>

				<ul class="nav child_menu">

					<li><a href="tables.html">Tables</a></li>

					<li><a href="tables_dynamic.html">Table Dynamic</a></li>

                </ul>

            </li>

            <li><a><i class="fa fa-bar-chart-o"></i> Data Presentation <span class="fa fa-chevron-down"></span></a>

                <ul class="nav child_menu">

					<li><a href="chartjs.html">Chart JS</a></li>

					<li><a href="chartjs2.html">Chart JS2</a></li>

					<li><a href="morisjs.html">Moris JS</a></li>

					<li><a href="echarts.html">ECharts</a></li>

					<li><a href="other_charts.html">Other Charts</a></li>

                </ul>

            </li>

            <li><a><i class="fa fa-clone"></i>Layouts <span class="fa fa-chevron-down"></span></a>

				<ul class="nav child_menu">

					<li><a href="fixed_sidebar.html">Fixed Sidebar</a></li>

					<li><a href="fixed_footer.html">Fixed Footer</a></li>

                </ul>

            </li>-->

		</ul>
		<?php } ?>
		
		<?php if(isset($_SESSION['owner']['o_id'])){ 
			$partnerRoomId = getRoomId($_SESSION['owner']['o_id']);
		?>
        <ul class="nav side-menu">
			
			<?php $ownerId = $_SESSION['owner']['o_id'];
			$result = mysqli_query($conn,"SELECT * FROM rooms WHERE o_id=$ownerId");
			while($row = mysqli_fetch_assoc($result)){?>
			
			<!-- <li><a href="?pagecontent=report_profit_room&room=<?php echo $row['r_id']; ?>"><i class="fa fa-home"></i> REPORT (<?php echo roomNo($row['r_id'])['pty_code']; ?> <?php echo roomNo($row['r_id'])['r_no']; ?>)</a></li> -->
			
			<li><a href="?pagecontent=o_utility_view&room=<?php echo $row['r_id']; ?>&type=6"><i class="fa fa-home"></i> RENTAL (<?php echo roomNo($row['r_id'])['pty_code']; ?> <?php echo roomNo($row['r_id'])['r_no']; ?>)</a></li>
			
			<?php } ?>
			
			
			<li><a href="?pagecontent=report_profit_room&room=<?php echo $partnerRoomId; ?>"><i class="fa fa-home"></i> AGREEMENT</a></li>

		</ul>
		<?php } ?>
		
		<?php if(isset($_SESSION['staff'])){ 
			$partnerRoomId = getRoomId($_SESSION['owner']['o_id']);
		?>
        <ul class="nav side-menu">
			
			<li><a href="?pagecontent=housekeep_cleaning_list"><i class="fa fa-home"></i>CLEANING</a></li>
			<li><a href="?pagecontent=expenses"><i class="fa fa-home"></i>EXPENSES</a></li>
			<li><a href="?pagecontent=room_list"><i class="fa fa-home"></i>SHORTAGE</a></li>

            <li><a><i class="fa fa-edit"></i> MANAGEMENT <span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
                    <li><a href="?pagecontent=expenses">Expenses</a></li>
                    <li><a href="?pagecontent=utility&type=6">Rental</a></li>
                    <li><a href="?pagecontent=utility&type=1">TNB</a></li>
                    <li><a href="?pagecontent=utility&type=2">Water Bill</a></li>
                    <li><a href="?pagecontent=utility&type=3">Internet</a></li>
                    <li><a href="?pagecontent=utility&type=8">Netflix</a></li>
                    <li><a href="?pagecontent=utility&type=5">Indah Water</a></li>
                    <li><a href="?pagecontent=utility&type=7">Maintaince Fee</a></li>
                </ul>
            </li>

			<li><a><i class="fa fa-edit"></i>HOUSEKEEPING<span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
					<li><a href="index.php?pagecontent=housekeep_room_list">Request</a></li>
                </ul>
			</li>

		</ul>
		<?php } ?>
    </div>

    <!--<div class="menu_section">

        <h3>Live On</h3>

        <ul class="nav side-menu">

			<li><a><i class="fa fa-bug"></i> Additional Pages <span class="fa fa-chevron-down"></span></a>

				<ul class="nav child_menu">

					<li><a href="e_commerce.html">E-commerce</a></li>

					<li><a href="projects.html">Projects</a></li>

					<li><a href="project_detail.html">Project Detail</a></li>

					<li><a href="contacts.html">Contacts</a></li>

					<li><a href="profile.html">Profile</a></li>

				</ul>

			</li>

			<li><a><i class="fa fa-windows"></i> Extras <span class="fa fa-chevron-down"></span></a>

				<ul class="nav child_menu">

					<li><a href="page_403.html">403 Error</a></li>

					<li><a href="page_404.html">404 Error</a></li>

					<li><a href="page_500.html">500 Error</a></li>

					<li><a href="plain_page.html">Plain Page</a></li>

					<li><a href="login.html">Login Page</a></li>

					<li><a href="pricing_tables.html">Pricing Tables</a></li>

				</ul>

			</li>

			<li><a><i class="fa fa-sitemap"></i> Multilevel Menu <span class="fa fa-chevron-down"></span></a>

				<ul class="nav child_menu">

					<li><a href="#level1_1">Level One</a>

						<li><a>Level One<span class="fa fa-chevron-down"></span></a>

							<ul class="nav child_menu">

								<li class="sub_menu"><a href="level2.html">Level Two</a>

								</li>

								<li><a href="#level2_1">Level Two</a>

								</li>

								<li><a href="#level2_2">Level Two</a>

								</li>

							</ul>

						</li>

						<li><a href="#level1_2">Level One</a>

						</li>

					</li>

				</ul>

			</li>                  

            <li><a href="javascript:void(0)"><i class="fa fa-laptop"></i> Landing Page <span class="label label-success pull-right">Coming Soon</span></a></li>

        </ul>

    </div>-->

</div>