	<header class="topbar">
		<nav class="navbar top-navbar navbar-expand-md navbar-dark">
			<div class="navbar-header">
				<!-- This is for the sidebar toggle which is visible on mobile only -->
				<a class="nav-toggler waves-effect waves-light d-block d-md-none" href="javascript:void(0)">
					<i class="ri-close-line fs-6 ri-menu-2-line"></i>
				</a>
				<!-- -------------------------------------------------------------- -->
				<!-- Logo -->
				<!-- -------------------------------------------------------------- -->
				<a class="navbar-brand" href="view.php">
					<span class="logo-text">
						<!-- dark Logo text -->
						<?php echo ($core->logo) ? '<img src="assets/' . $core->logo . '" alt="' . $core->site_name . '" width="' . $core->thumb_w . '" height="' . $core->thumb_h . '"/>' : $core->site_name; ?>
					</span>
				</a>
				<!-- -------------------------------------------------------------- -->
				<!-- End Logo -->
				<!-- -------------------------------------------------------------- -->
				<!-- -------------------------------------------------------------- -->
				<!-- Toggle which is visible on mobile only -->
				<!-- -------------------------------------------------------------- -->
				<a class="topbartoggler d-block d-md-none waves-effect waves-light" href="javascript:void(0)" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><i class="ri-more-line fs-6"></i></a>
			</div>
			<!-- -------------------------------------------------------------- -->
			<!-- End Logo -->
			<!-- -------------------------------------------------------------- -->
			<div class="navbar-collapse collapse" id="navbarSupportedContent">
				<!-- -------------------------------------------------------------- -->
				<!-- toggle and nav items -->
				<!-- -------------------------------------------------------------- -->
				<ul class="navbar-nav me-auto">
					<li class="nav-item d-none d-md-block"><a class="nav-link sidebartoggler waves-effect waves-light" href="javascript:void(0)" data-sidebartype="mini-sidebar"><i data-feather="menu" class="feather-sm"></i></a></li>
					<!-- -------------------------------------------------------------- -->
					<!-- mega menu -->
					<!-- -------------------------------------------------------------- -->
					<li class="nav-item dropdown mega-dropdown"></li>

					<li class="nav-item dropdown"></li>
				</ul>
				<!-- -------------------------------------------------------------- -->
				<!-- Right side toggle and nav items -->
				<!-- -------------------------------------------------------------- -->
				<ul class="navbar-nav">
					<!-- -------------------------------------------------------------- -->
					<!-- create new -->
					<!-- -------------------------------------------------------------- -->
					<li class="nav-item dropdown">
						<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							<?php if ($core->language == "en") { ?>
								<img src="assets/icon-flag/us.png" width="34" />
							<?php } else if ($core->language == "es") { ?>
								<img src="assets/icon-flag/es.png" width="34" />
							<?php } else if ($core->language == "he") { ?>
								<img src="assets/icon-flag/he.png" width="34" />
							<?php } ?>
						</a>
					</li>

					<!-- -------------------------------------------------------------- -->
					<!-- Notification new -->
					<!-- -------------------------------------------------------------- -->
					<li class="nav-item dropdown">
						<a class="nav-link dropdown-toggle waves-effect waves-dark" href="" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i data-feather="bell" class="feather-sm"></i>
							<span class="badge badge-notify badge-sm up badge-light pull-top-xs" id="countNotifications">0</span>

						</a>
						<div class="dropdown-menu dropdown-menu-end mailbox dropdown-menu-animate-up">
							<span class="with-arrow"><span class="bg-primary"></span></span>
							<div id="ajax_response"></div>
						</div>
					</li>

					<!-- -------------------------------------------------------------- -->
					<!-- End Notification -->
					<!-- -------------------------------------------------------------- -->
					<!-- -------------------------------------------------------------- -->
					<!-- User profile and search -->
					<!-- -------------------------------------------------------------- -->
					<li class="nav-item dropdown">
						<a class="nav-link dropdown-toggle text-muted waves-effect waves-dark pro-pic" href="" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img src="assets/<?php echo ($userData->avatar) ? $userData->avatar : "uploads/blank.png"; ?>" class="rounded-circle" width="31" /></a>
						<div class="dropdown-menu dropdown-menu-end user-dd animated flipInY">
							<span class="with-arrow"><span class="bg-primary"></span></span>
							<div class="d-flex no-block align-items-center p-3 bg-primary text-white mb-2">
								<div class=""><img src="assets/<?php echo ($userData->avatar) ? $userData->avatar : "uploads/blank.png"; ?>" class="rounded-circle" width="60" /></div>
								<div class="ms-2">
									<h4 class="mb-0"><?php echo $userData->username; ?></h4>
									<p class=" mb-0"><?php echo $userData->email; ?></p>
								</div>
							</div>

							<!-- User super admin -->

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

								<a class="dropdown-item" href="users_edit.php?user=<?php echo $userData->id; ?>"><i data-feather="user" class="feather-sm text-info me-1 ms-1"></i> <?php echo $lang['miprofile'] ?></a>
								<a class="dropdown-item" href="accounts_receivable.php"><i data-feather="credit-card" class="feather-sm text-primary me-1 ms-1"></i>
									<?php echo $lang['leftorder193'] ?></a>

								<a class="dropdown-item" href="newsletter.php"><i data-feather="mail" class="feather-sm text-success me-1 ms-1"></i>
									<?php echo $lang['newsletter'] ?></a>

								<div class="dropdown-divider"></div>

								<a class="dropdown-item" href="users_list.php"><i data-feather="settings" class="feather-sm text-warning me-1 ms-1"></i>
									<?php echo $lang['leftorder194'] ?></a>
							<?php } ?>

							<div class="dropdown-divider"></div>
							<a class="dropdown-item" href="logout.php"><i data-feather="log-out" class="feather-sm text-danger me-1 ms-1"></i> <?php echo $lang['logoouts'] ?></a>

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

								<div class="dropdown-divider"></div>

								<div class="pl-4 p-2">
									<a href="users_edit.php?user=<?php echo $userData->id; ?>" class="btn d-block w-100 btn-primary rounded-pill"><?php echo $lang['leftorder195'] ?></a>
								</div>
							<?php } ?>



							<!-- User Customer -->

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

								<div class="dropdown-divider"></div>

								<div class="pl-4 p-2">
									<a href="users_edit.php?user=<?php echo $userData->id; ?>" class="btn d-block w-100 btn-primary rounded-pill"><?php echo $lang['leftorder195'] ?></a>
								</div>
							<?php } ?>


							<!-- User employee manager -->

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

								<div class="dropdown-divider"></div>

								<div class="pl-4 p-2">
									<a href="users_edit.php?user=<?php echo $userData->id; ?>" class="btn d-block w-100 btn-primary rounded-pill"><?php echo $lang['leftorder195'] ?></a>
								</div>
							<?php } ?>

							<!-- User driver -->

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

								<div class="dropdown-divider"></div>

								<div class="pl-4 p-2">
									<a href="users_edit.php?user=<?php echo $userData->id; ?>" class="btn d-block w-100 btn-primary rounded-pill"><?php echo $lang['leftorder195'] ?></a>
								</div>
							<?php } ?>
						</div>
					</li>



					<!-- -------------------------------------------------------------- -->
					<!-- User profile and search -->
					<!-- -------------------------------------------------------------- -->
				</ul>
			</div>
		</nav>
	</header>


	<audio id="chatAudio">
		<source src="assets/notify.mp3" type="audio/mpeg">
	</audio>