<?php
					
	if(is_right('site_mail')){
		$new_msgs=dbNum("read","site_mail","read=0");
	}else{
		$new_msgs=0;
	}
		$notifys=$new_msgs+0;
?>


<!DOCTYPE html>
<html lang="en" dir="rtl"> 
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title><?=$title?> - <?=lang('cp')?></title>
		<link rel="icon" href="img/favicon.ico">
		<!-- CSS FILES -->
<link href="<?=base_url(sett('web_style_assets_dir'));?>/fonts/font-awesome/css/font-awesome.min.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="<?=base_url(sett('web_style_assets_dir'));?>/css/uikit-rtl.min.css">
		<link rel="stylesheet" type="text/css" href="<?=base_url(sett('cp_style_assets_dir'))?>/dashboard.css">

		<?php 
		$head_str[]=null;
		foreach( $head_str as $head){
			echo $head;
		}
	?>
	</head>
	<body>
		<div class="uk-offcanvas-content">
			<!--HEADER-->
			<header id="top-head" class="uk-position-fixed">
				<div class="uk-container uk-container-expand uk-background-primary"  style="background: <?=stt('style_cp_navbar_bg_color')?>;">
					<nav class="uk-navbar uk-light" data-uk-navbar="mode:click">
						<div class="uk-navbar-right">
							<ul class="uk-navbar-nav uk-hidden@m">
								<li><a class="uk-navbar-toggle" data-uk-toggle data-uk-navbar-toggle-icon href="#offcanvas-nav"></a></li>	
							</ul>
							<a class="uk-navbar-item uk-logo" href="<?=site_url("admin")?>"><img src="<?=soft_image(stt("mktb_navbar_logo"),'logo-light.png')?>" style="max-height:70px;"  ></a>
							<ul class="uk-navbar-nav">
								<li class="uk-active"><a href="<?=site_url('front')?>"><i data-uk-icon="icon:world"></i><span class=" uk-visible@m uk-margin-small-right"> <?=lang('front')?> </span></a></li>
								<li class="uk-active"><a href="<?=site_url('')?>"><i data-uk-icon="icon:home"></i><span class=" uk-visible@m uk-margin-small-right">  <?=lang('welcome_page')?> </span></a></li>
								<?php if(is_right_starts('settings')): ?>
								<li class="uk-active"><a href="<?=site_url('admin/settings')?>"><i data-uk-icon="icon:settings" ></i><span class=" uk-visible@m uk-margin-small-right"> <?=lang('settings')?> </span></a></li>
								<?php endif; ?>
								
							</ul>
							
						</div>
						<div class="uk-navbar-left">
							<ul class="uk-navbar-nav">
								
								<li>
									<a href="#"><?=login('full_name_or_name')?>  <span data-uk-icon="icon: user"></span> </a>
									<div class="uk-navbar-dropdown">
										<ul class="uk-nav uk-navbar-dropdown-nav">
											<li class="uk-nav-header"><?=login('full_name_or_name')?> </li>
											
											<li><a href="<?=site_url("admin/users/home/show/".login("id"))?>"><span data-uk-icon="icon: refresh"></span> <?=lang('my_profile')?></a></li>
											
											<li class="uk-nav-divider"></li>
											
											<li><a href="<?=site_url("accounts/log/out")?>"><span data-uk-icon="icon: sign-out"></span> <?=lang('logout')?></a></li>
											
										</ul>
									</div>
								</li>
							</ul>
						</div>
					</nav>
				</div>
			</header>
			<!--/HEADER-->
			<!-- right BAR -->
			<aside id="right-col" class="uk-light uk-visible@m" style="background: <?=stt('style_cp_sidebar_bg_color')?>;">
				
				<div class="bar-content uk-position-relative">
				<?=$this->view(sett('cp_view_dir').'/'.'header_nav',null,true)?>
				</div>
				
			</aside>
			<!-- /right BAR -->
			<!-- CONTENT -->
			<div id="content" data-uk-height-viewport="expand: true">
				<div class="uk-container uk-container-expand">
				

