<aside class="left-sidebar">
	<!-- Sidebar scroll-->
	<div class="scroll-sidebar">
		<!-- Sidebar navigation-->
		<nav class="sidebar-nav idebar-collapse">
			<?php if ($userData->userlevel == 9) { ?> 
				<ul id="sidebarnav">
					<!-- User Profile-->
					<li>
						<!-- User Profile-->
						<div class="user-profile d-flex no-block dropdown m-t-20">
							<div class="user-pic">
								<img src="assets/<?php echo ($userData->avatar) ? $userData->avatar : "blank.png"; ?>" class="rounded-circle" width="50" />
							</div>
							<?php
							date_default_timezone_set("" . $core->timezone . "");
							$t = date("H");

							if ($t < 12) {
								$mensaje = '' . $lang['message1'] . '';
							} else if ($t < 18) {
								$mensaje = '' . $lang['message2'] . '';
							} else {
								$mensaje = '' . $lang['message3'] . '';
							}
							?>

							<div class="user-content hide-menu m-l-10">
								<a href="javascript:void(0)" class="" id="Userdd" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
									<h5 class="m-b-0 user-name font-medium"><?php echo $mensaje; ?>,&nbsp;&nbsp;</h5>
									<span class="op-5 user-email"><?php echo $userData->fname; ?></span>
								</a>
							</div>
						</div>
						<!-- End User Profile-->
					</li>

					<li class="p-15 m-t-10"><a href="courier_add.php" class="btn btn-block create-btn text-white no-block d-flex align-items-center"><i class="ti-package"></i> <span class="hide-menu m-l-5"> <?php echo $lang['left1'] ?> </span> </a></li>
					<!-- User Profile-->
					<li class="nav-small-cap"> <span class="hide-menu"></span></li>

					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="index.php" aria-expanded="false"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['dashboard'] ?> </span></a></li>

					<li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu">App Management</span></li>


					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-widgets"></i><span class="hide-menu">All Shipments</span></a>
						<ul aria-expanded="false" class="collapse  first-level">

							<!-- Module online shopping-->
							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-cart-outline"></i><span class="hide-menu"><?php echo $lang['leftnew01'] ?></span></a>
								<ul aria-expanded="false" class="collapse  first-level">

									<li class="sidebar-item"><a href="dashboard_admin_packages_customers.php" class="sidebar-link"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['leftnew02'] ?></span></a></li>


									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="prealert_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left3'] ?> </span></a></li>


									<li class="sidebar-item"><a href="customer_packages_add.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['create_customer_packages'] ?> </span></a></li>

									<li class="sidebar-item"><a href="customer_packages_multiple.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['createpackages_multiple'] ?> </span></a></li>


									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="customer_packages_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['list_customer_packages'] ?> </span></a></li>

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

								</ul>
							</li>



							<!-- Module shipment-->
							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-package-variant"></i><span class="hide-menu"> <?php echo $lang['shipment'] ?></span></a>
								<ul aria-expanded="false" class="collapse  first-level">

									<li class="sidebar-item"><a href="dashboard_admin_shipments.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['leftnew04'] ?></span></a></li>

									<li class="sidebar-item"><a href="courier_add.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['createshipment'] ?> </span></a></li>

									<li class="sidebar-item"><a href="courier_add_multiple.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['createshipment_multiple'] ?> </span></a></li>

									<li class="sidebar-item"><a href="courier_list.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['shipmentlist'] ?> </span></a></li>

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_courier_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>



								</ul>
							</li>

							<!-- Module pickup-->
							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-run-fast"></i><span class="hide-menu"> Pickup</span></a>
								<ul aria-expanded="false" class="collapse  first-level">

									<li class="sidebar-item"><a href="dashboard_admin_pickup.php" class="sidebar-link"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['leftnew05'] ?> </span></a></li>


									<?php if ($userData->userlevel == 9 || $userData->userlevel == 3) { ?>

										<li class="sidebar-item"><a href="pickup_add_full.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left702'] ?> </span></a></li>
									<?php

									} else { ?>

										<li class="sidebar-item"><a href="pickup_add.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left702'] ?> </span></a></li>

									<?php
									}
									?>


									<li class="sidebar-item"><a href="pickup_list.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left5'] ?> </span></a></li>
								</ul>
							</li>

							<!-- Module consolidate-->
							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="fas fas fa-boxes" style="color:#6610f2"></i><span class="hide-menu"> <?php echo $lang['conso-lidate'] ?></span></a>
								<ul aria-expanded="false" class="collapse  first-level">
									<li class="sidebar-item"><a href="dashboard_admin_consolidated.php" class="sidebar-link"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['leftnew06'] ?></span></a></li>

									<li class="sidebar-item"><a href="consolidate_list.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left10'] ?> </span></a></li>

									<li class="sidebar-item"><a href="consolidate_add.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left11'] ?> </span></a></li>

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_consolidate_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

								</ul>
							</li>

						</ul>

					</li>


					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="reports.php" aria-expanded="false"><i class="mdi mdi-book-multiple"></i><span class="hide-menu"> <?php echo $lang['left22'] ?></span></a>

					</li>

					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-wallet"></i><span class="hide-menu"> <?php echo $lang['left25'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">
							<li class="sidebar-item"><a href="dashboard_admin_account.php" class="sidebar-link"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['leftnew07'] ?></span></a></li>


							<li class="sidebar-item"><a href="accounts_receivable.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['accounts_receivable'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="global_payments_gateways.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

						</ul>
					</li>

					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-account-multiple-plus"></i><span class="hide-menu"> <?php echo $lang['left608'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">
							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="customers_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left23'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="drivers_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left24'] ?></span></a></li>
						</ul>
					</li>


					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="fas fa-users"></i><span class="hide-menu"> <?php echo $lang['left28'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">
							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="users_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['usermanage'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="users_add.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['usermanagecreate'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="newsletter.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['newsletter'] ?></span></a></li>
						</ul>
					</li>


					<li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu"><?php echo $lang['configutarions'] ?></span></li>

					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="fas fa-cog" style="color:#89D91B"></i><span class="hide-menu"> Settings</span></a>

						<ul aria-expanded="false" class="collapse  first-level">

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="tools.php" aria-expanded="false"><i class="fas fa-code-branch"></i><span class="hide-menu"> <?php echo $lang['tool'] ?> </span></a>
							</li>


							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="fas fas fa-dolly"></i><span class="hide-menu"> <?php echo $lang['leftshipping'] ?></span></a>
								<ul aria-expanded="false" class="collapse  first-level">

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="taxesadnfees.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left29'] ?> </span></a>
									</li>

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="track_invoice.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left600'] ?></span></a></li>

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="info_ship_default.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['leftorder88'] ?></span></a></li>

								</ul>

							</li>


							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="fas fa-donate"></i><span class="hide-menu"> Settings Payments</span></a>
								<ul aria-expanded="false" class="collapse  first-level">

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark sidebar-link" href="payment_mode_list.php" aria-expanded="false"><i class="mdi mdi-credit-card-multiple"></i><span class="hide-menu"> Payments Settings</span></a></li>

									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="payment_methods_list.php"><i class="fas fa-hand-holding-usd" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['paymode'] ?></span></a></li>

								</ul>

							</li>

							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"> <i class="ti ti-list"></i> <span class="hide-menu"> <?php echo $lang['left606'] ?></span></a>
								<ul aria-expanded="false" class="collapse  first-level">
									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="offices_list.php"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['officegroup'] ?></span></a>
									</li>
									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="branchoffices_list.php"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left30'] ?></span></a>
									</li>
									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="courier_company_list.php"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left31'] ?></span></a>
									</li>
									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="delivery_time_list.php"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left609'] ?></span></a>
									</li>
									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="shipping_mode_list.php"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['shipmode'] ?></span></a>
									</li>
									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="status_courier_list.php"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['stylestatus'] ?></span></a>
									</li>
									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="packaging_list.php"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['packatype'] ?></span></a>
									</li>
									<li class="sidebar-item"><a class="sidebar-link waves-effect waves-dark" href="category_list.php"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['itemlogistics'] ?></span></a></li>
								</ul>
							</li>
						</ul>

					</li>


					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="verify_update.php" aria-expanded="false"><i class="ti-info-alt"></i> Help</a>



					</li>

				</ul>

			<?php } else if ($userData->userlevel == 2) { ?>

				<ul id="sidebarnav">
					<!-- User Profile-->
					<li>
						<!-- User Profile-->
						<div class="user-profile d-flex no-block dropdown m-t-20">
							<div class="user-pic">
								<img src="assets/<?php echo ($userData->avatar) ? $userData->avatar : "uploads/blank.png"; ?>" class="rounded-circle" width="50" />
							</div>
							<?php
							date_default_timezone_set("" . $core->timezone . "");
							$t = date("H");

							if ($t < 12) {
								$mensaje = '' . $lang['message1'] . '';
							} else if ($t < 18) {
								$mensaje = '' . $lang['message2'] . '';
							} else {
								$mensaje = '' . $lang['message3'] . '';
							}
							?>

							<div class="user-content hide-menu m-l-10">
								<a href="javascript:void(0)" class="" id="Userdd" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
									<h5 class="m-b-0 user-name font-medium"><?php echo $mensaje; ?>,&nbsp;&nbsp;</h5>
									<span class="op-5 user-email"><?php echo $userData->fname; ?><br></span>
									<span class="op-5 user-email"><?php echo $lang['left37'] ?>: <strong><?php echo $userData->name_off; ?></strong></span>
								</a>
							</div>
						</div>
						<!-- End User Profile-->
					</li>


					<li class="p-15 m-t-10"><a href="courier_add.php" class="btn btn-block create-btn text-white no-block d-flex align-items-center"><i class="ti-package"></i> <span class="hide-menu m-l-5"> <?php echo $lang['left1'] ?> </span> </a></li>
					<!-- User Profile-->
					<li class="nav-small-cap"> <span class="hide-menu"></span></li>

					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="index.php" aria-expanded="false"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['dashboard'] ?> </span></a></li>

					<li class="nav-small-cap"><i class="mdi mdi-dots-horizontal"></i> <span class="hide-menu">App Management</span></li>


					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-widgets"></i><span class="hide-menu">All Shipments</span></a>
						<ul aria-expanded="false" class="collapse  first-level">

							<!-- Module online shopping-->
							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-cart-outline"></i><span class="hide-menu"><?php echo $lang['leftnew01'] ?></span></a>
								<ul aria-expanded="false" class="collapse  first-level">

									<li class="sidebar-item"><a href="dashboard_admin_packages_customers.php" class="sidebar-link"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['leftnew02'] ?></span></a></li>


									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="prealert_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left3'] ?> </span></a></li>


									<li class="sidebar-item"><a href="customer_packages_add.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['create_customer_packages'] ?> </span></a></li>

									<li class="sidebar-item"><a href="customer_packages_multiple.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['createpackages_multiple'] ?> </span></a></li>


									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="customer_packages_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['list_customer_packages'] ?> </span></a></li>

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

								</ul>
							</li>



							<!-- Module shipment-->
							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-package-variant"></i><span class="hide-menu"> <?php echo $lang['shipment'] ?></span></a>
								<ul aria-expanded="false" class="collapse  first-level">

									<li class="sidebar-item"><a href="dashboard_admin_shipments.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['leftnew04'] ?></span></a></li>

									<li class="sidebar-item"><a href="courier_add.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['createshipment'] ?> </span></a></li>

									<li class="sidebar-item"><a href="courier_add_multiple.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['createshipment_multiple'] ?> </span></a></li>

									<li class="sidebar-item"><a href="courier_list.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['shipmentlist'] ?> </span></a></li>

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_courier_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

								</ul>
							</li>

							<!-- Module pickup-->
							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-run-fast"></i><span class="hide-menu"> Pickup</span></a>
								<ul aria-expanded="false" class="collapse  first-level">

									<li class="sidebar-item"><a href="dashboard_admin_pickup.php" class="sidebar-link"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['leftnew05'] ?> </span></a></li>


									<?php if ($userData->userlevel == 9 || $userData->userlevel == 3) { ?>

										<li class="sidebar-item"><a href="pickup_add_full.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left702'] ?> </span></a></li>
									<?php

									} else { ?>

										<li class="sidebar-item"><a href="pickup_add.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left702'] ?> </span></a></li>

									<?php
									}
									?>


									<li class="sidebar-item"><a href="pickup_list.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left5'] ?> </span></a></li>
								</ul>
							</li>

							<!-- Module consolidate-->
							<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="fas fas fa-boxes" style="color:#6610f2"></i><span class="hide-menu"> <?php echo $lang['conso-lidate'] ?></span></a>
								<ul aria-expanded="false" class="collapse  first-level">
									<li class="sidebar-item"><a href="dashboard_admin_consolidated.php" class="sidebar-link"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['leftnew06'] ?></span></a></li>

									<li class="sidebar-item"><a href="consolidate_list.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left10'] ?> </span></a></li>

									<li class="sidebar-item"><a href="consolidate_add.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left11'] ?> </span></a></li>

									<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_consolidate_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>


								</ul>
							</li>

						</ul>

					</li>


					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="reports.php" aria-expanded="false"><i class="mdi mdi-book-multiple"></i><span class="hide-menu"> <?php echo $lang['left22'] ?></span></a>

					</li>

					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="fas fa-hand-holding-usd"></i><span class="hide-menu"> <?php echo $lang['left25'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">
							<li class="sidebar-item"><a href="dashboard_admin_account.php" class="sidebar-link"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['leftnew07'] ?></span></a></li>


							<li class="sidebar-item"><a href="accounts_receivable.php" class="sidebar-link"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['accounts_receivable'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="global_payments_gateways.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

						</ul>
					</li>

					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-account-multiple-plus"></i><span class="hide-menu"> <?php echo $lang['left608'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">
							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="customers_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left23'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="drivers_list.php" aria-expanded="false"><i class="ti ti-check" style="color:#975EF7"></i><span class="hide-menu"> <?php echo $lang['left24'] ?></span></a></li>
						</ul>
					</li>
					
				</ul>

			<?php } else if ($userData->userlevel == 1) { ?>

				<ul id="sidebarnav">
					<!-- User Profile-->
					<li>
						<!-- User Profile-->
						<div class="user-profile d-flex no-block dropdown m-t-20">
							<div class="user-pic">
								<img src="assets/<?php echo ($userData->avatar) ? $userData->avatar : "uploads/blank.png"; ?>" class="rounded-circle" width="50" />
							</div>
							<?php
							date_default_timezone_set("" . $core->timezone . "");
							$t = date("H");

							if ($t < 12) {
								$mensaje = '' . $lang['message1'] . '';
							} else if ($t < 18) {
								$mensaje = '' . $lang['message2'] . '';
							} else {
								$mensaje = '' . $lang['message3'] . '';
							}
							?>

							<div class="user-content hide-menu m-l-10">
								<a href="javascript:void(0)" class="" id="Userdd" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
									<h5 class="m-b-0 user-name font-medium"><?php echo $mensaje; ?>,&nbsp;&nbsp;</h5>
									<span class="op-5 user-email"><?php echo $userData->fname; ?></span>
									<br><?php echo $lang['left38'] ?> <b><?php echo $userData->locker; ?></b>
								</a>
							</div>
						</div>
						<!-- End User Profile-->
					</li>


					<li class="p-15 m-t-10"><a href="pickup_add.php" class="btn btn-block create-btn text-white no-block d-flex align-items-center"><i class="mdi mdi-cube-send" style="font-size: 20px"></i> <span class="hide-menu"> &nbsp; <?php echo $lang['left509'] ?></span> </a></li>
					<!-- User Profile-->


					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="index.php" aria-expanded="false"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['dashboard'] ?> </span></a></li>


					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-codepen"></i><span class="hide-menu"><?php echo $lang['leftnew01'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">

							<li class="sidebar-item"><a href="prealert_add.php" class="sidebar-link"><i class="mdi mdi-bell"></i><span class="hide-menu"> <?php echo $lang['left4'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="prealert_list.php" aria-expanded="false"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['left3'] ?> </span></a></li>




							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="customer_packages_list.php" aria-expanded="false"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['list_customer_packages'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_list.php" aria-expanded="false"><i class="fas fa-dollar-sign"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>


						</ul>
					</li>

					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-package"></i><span class="hide-menu"> <?php echo $lang['shipment'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">

							<li class="sidebar-item"><a href="courier_add_client.php" class="sidebar-link"><i class="ti-package" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['createshipment'] ?> </span></a></li>

							<li class="sidebar-item"><a href="courier_list.php" class="sidebar-link"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['shipmentlist'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_courier_list.php" aria-expanded="false"><i class="fas fa-dollar-sign"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>
						</ul>
					</li>


					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-cube-send"></i><span class="hide-menu"> <?php echo $lang['leftnew08'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">

							<li class="sidebar-item"><a href="pickup_add.php" class="sidebar-link"><i class="mdi mdi-cube-send" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['left702'] ?> </span></a></li>


							<li class="sidebar-item"><a href="pickup_list.php" class="sidebar-link"><i class="mdi mdi-clock-fast"></i><span class="hide-menu"> <?php echo $lang['left5'] ?> </span></a></li>
						</ul>
					</li>


					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="fas fas fa-boxes" style="color:#6610f2"></i><span class="hide-menu"> <?php echo $lang['conso-lidate'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">
							<li class="sidebar-item"><a href="consolidate_list.php" class="sidebar-link"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['left10'] ?> </span></a></li>

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="payments_gateways_consolidate_list.php" aria-expanded="false"><i class="fas fa-dollar-sign"></i><span class="hide-menu"><?php echo $lang['leftnew03'] ?> </span></a></li>

						</ul>
					</li>


					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="recipients_list.php" aria-expanded="false"><i class="fas fa-users"></i><span class="hide-menu"> <?php echo $lang['custom_left-01'] ?> </span></a></li>



					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="users_edit.php?user=<?php echo $userData->id; ?>" aria-expanded="false"><i class="mdi mdi-account"></i><span class="hide-menu"> <?php echo $lang['left43'] ?> </span></a></li>

				</ul>
			<?php } else if ($userData->userlevel == 3) { ?>
				<ul id="sidebarnav">
					<!-- User Profile-->
					<li>
						<!-- User Profile-->
						<div class="user-profile d-flex no-block dropdown m-t-20">
							<div class="user-pic">
								<img src="assets/<?php echo ($userData->avatar) ? $userData->avatar : "uploads/blank.png"; ?>" class="rounded-circle" width="50" />
							</div>
							<?php
							date_default_timezone_set("" . $core->timezone . "");
							$t = date("H");

							if ($t < 12) {
								$mensaje = '' . $lang['message1'] . '';
							} else if ($t < 18) {
								$mensaje = '' . $lang['message2'] . '';
							} else {
								$mensaje = '' . $lang['message3'] . '';
							}
							?>

							<div class="user-content hide-menu m-l-10">
								<a href="javascript:void(0)" class="" id="Userdd" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
									<h5 class="m-b-0 user-name font-medium"><?php echo $mensaje; ?>,&nbsp;&nbsp;</h5>
									<span class="op-5 user-email"><?php echo $userData->fname; ?></span>
								</a>
							</div>
						</div>
						<!-- End User Profile-->
					</li>


					<li class="p-15 m-t-10"><a href="courier_add.php" class="btn btn-block create-btn text-white no-block d-flex align-items-center"><i class="ti-package"></i> <span class="hide-menu m-l-5"> <?php echo $lang['left1'] ?> </span> </a></li>

					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="index.php" aria-expanded="false"><i class="mdi mdi-view-dashboard"></i><span class="hide-menu"> <?php echo $lang['dashboard'] ?> </span></a></li>

					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-codepen"></i><span class="hide-menu"><?php echo $lang['leftnew01'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">

							<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="customer_packages_list.php" aria-expanded="false"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['list_customer_packages'] ?> </span></a></li>

						</ul>
					</li>


					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="ti-package"></i><span class="hide-menu"> <?php echo $lang['shipment'] ?></span></a>
						<ul aria-expanded="false" class="collapse  first-level">
							<li class="sidebar-item"><a href="courier_add.php" class="sidebar-link"><i class="ti-package" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['createshipment'] ?> </span></a></li>

							<li class="sidebar-item"><a href="courier_list.php" class="sidebar-link"><i class="mdi mdi-check"></i><span class="hide-menu"> <?php echo $lang['shipmentlist'] ?> </span></a></li>
						</ul>
					</li>


					<li class="sidebar-item"> <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false"><i class="mdi mdi-cube-send"></i><span class="hide-menu">Pickup</span></a>
						<ul aria-expanded="false" class="collapse  first-level">

							<?php if ($userData->userlevel == 9 || $userData->userlevel == 3) { ?>

								<li class="sidebar-item"><a href="pickup_add_full.php" class="sidebar-link"><i class="mdi mdi-cube-send" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['left702'] ?> </span></a></li>
							<?php

							} else { ?>

								<li class="sidebar-item"><a href="pickup_add.php" class="sidebar-link"><i class="mdi mdi-clock-fast" style="color:#f62d51"></i><span class="hide-menu"> <?php echo $lang['left702'] ?> </span></a></li>

							<?php
							}
							?>

							<li class="sidebar-item"><a href="pickup_list.php" class="sidebar-link"><i class="mdi mdi-clock-fast"></i><span class="hide-menu"> <?php echo $lang['left5'] ?> </span></a></li>
						</ul>
					</li>

					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="consolidate_list.php" aria-expanded="false"><i class="ti ti-gift"></i><span class="hide-menu"> <?php echo $lang['left41'] ?> </span></a></li>

					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="reports.php" aria-expanded="false"><i class="mdi mdi-book-multiple" style="color:#fb8c00"></i><span class="hide-menu"> <?php echo $lang['left22'] ?></span></a>

					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark" href="users_edit.php?user=<?php echo $userData->id; ?>" aria-expanded="false"><i class="mdi mdi-account"></i><span class="hide-menu"> <?php echo $lang['left43'] ?> </span></a></li>


					<li class="sidebar-item"> <a class="sidebar-link waves-effect waves-dark sidebar-link" href="logout.php" aria-expanded="false"><i class="fa fa-power-off m-r-5 m-l-5"></i><span class="hide-menu"><?php echo $lang['wout'] ?></span></a></li>
				</ul>
			<?php } ?>
		</nav>
		<!-- End Sidebar navigation -->
	</div>
	<!-- End Sidebar scroll-->
</aside>