<style>
	.text-right img{
		height: 35px;
	}
</style>
<main class="app-content-footer" id="footer-height">
	<div class="app-title-footer">
		<div>
			<p style="font: 12px 'Poppins'; font-weight:bold"><span style="font-size: 12px; fonr-weight:bold; text-transform:uppercase"><?php echo $_SESSION["footerCaption"]; ?></span><br><span style="color: #e60073; font-size: 10px; text-transform:uppercase"><?php echo $_SESSION["systemVersion"]; ?></span></p>
		</div>
		<ul class="app-breadcrumb breadcrumb">
			<p class="text-right"><a href="https://hirgal.so" target="_blank"><img src="img/hirgal-logo.png"/></a></p>
		</ul>
	</div>
</main>
<script type="text/javascript">

// 	let currentMenu = window.location.href.split("/")[3];
	let currentMenu = window.location.href.split("/")[3];
	let allMainmenus = document.querySelectorAll(".no_child_menu");
	// console.log(allMainmenus)

	allMainmenus.forEach((main_menu) => {
		if (currentMenu == main_menu.attributes[1].nodeValue) {
			// console.log("Same")
			main_menu.style.backgroundColor = "#FFF"
			main_menu.style.color = "#0329a9"
		} else {
			let allSubmenus = document.querySelectorAll(".treeview-menu");
			allSubmenus.forEach( (menu) => {
				Array.from(menu.children).forEach( (submenu) => {
					if (currentMenu == submenu.children[0].attributes[1].nodeValue) {
						submenu.children[0].style.backgroundColor = "#FFF"
						submenu.children[0].style.color = "#0329a9"
						// console.log("child",submenu.children[0].style.backgroundColor = "#313e44");
						submenu.parentElement.parentElement.classList= "treeview is-expanded"
					}
				})
			})
		}

	})


// 	let currentMenu = window.location.href.split("/")[3];
// // 	let currentMenu = window.location.href.split("/")[4];
// 	let allSubmenus = document.querySelectorAll(".treeview-menu");
// 	// alert(currentMenu)
// 	allSubmenus.forEach( (menu) => {
// 		Array.from(menu.children).forEach( (submenu) => {
// 			if ((currentMenu == submenu.children[0].attributes[1].nodeValue)) {
// 				submenu.children[0].style.backgroundColor = "#0329a9"
// 				submenu.children[0].style.color = "#FFF"
// 				// console.log("child",submenu.children[0].style.backgroundColor = "#313e44");
// 				submenu.parentElement.parentElement.classList= "treeview is-expanded"
// 			}
// 		})
// 	})
</script>