<?php
/* Smarty version 4.3.1, created on 2023-11-29 01:35:58
  from '/Users/nikolaimv/Sites/it-academy.loc/admin/templates/index.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.1',
  'unifunc' => 'content_65664f2e54ac35_09250790',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7fd21235175c4dde8aebab8442ec46fd090df780' => 
    array (
      0 => '/Users/nikolaimv/Sites/it-academy.loc/admin/templates/index.tpl',
      1 => 1700384367,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:init/date-time-pickers.tpl' => 1,
  ),
),false)) {
function content_65664f2e54ac35_09250790 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/smarty_plugins/function.script.php','function'=>'smarty_function_script',),1=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.truncate.php','function'=>'smarty_modifier_truncate',),2=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.count.php','function'=>'smarty_modifier_count',),3=>array('file'=>'/Users/nikolaimv/Sites/it-academy.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>
<!DOCTYPE html>
<html lang="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['website_language'], ENT_QUOTES, 'UTF-8', true);?>
">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<title><?php if ((isset($_smarty_tpl->tpl_vars['title']->value))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
 - <?php }?>Life Style CMS</title>

	<link rel="apple-touch-icon" sizes="57x57" href="/admin/assets/favicon/apple-icon-57x57.png">
	<link rel="apple-touch-icon" sizes="60x60" href="/admin/assets/favicon/apple-icon-60x60.png">
	<link rel="apple-touch-icon" sizes="72x72" href="/admin/assets/favicon/apple-icon-72x72.png">
	<link rel="apple-touch-icon" sizes="76x76" href="/admin/assets/favicon/apple-icon-76x76.png">
	<link rel="apple-touch-icon" sizes="114x114" href="/admin/assets/favicon/apple-icon-114x114.png">
	<link rel="apple-touch-icon" sizes="120x120" href="/admin/assets/favicon/apple-icon-120x120.png">
	<link rel="apple-touch-icon" sizes="144x144" href="/admin/assets/favicon/apple-icon-144x144.png">
	<link rel="apple-touch-icon" sizes="152x152" href="/admin/assets/favicon/apple-icon-152x152.png">
	<link rel="apple-touch-icon" sizes="180x180" href="/admin/assets/favicon/apple-icon-180x180.png">
	<link rel="icon" type="image/png" sizes="192x192"  href="/admin/assets/favicon/android-icon-192x192.png">
	<link rel="icon" type="image/png" sizes="32x32" href="/admin/assets/favicon/favicon-32x32.png">
	<link rel="icon" type="image/png" sizes="96x96" href="/admin/assets/favicon/favicon-96x96.png">
	<link rel="icon" type="image/png" sizes="16x16" href="/admin/assets/favicon/favicon-16x16.png">
	<link rel="manifest" href="/admin/assets/favicon/manifest.json">
	<meta name="msapplication-TileColor" content="#ffffff">
	<meta name="msapplication-TileImage" content="/admin/assets/favicon/ms-icon-144x144.png">
	<meta name="theme-color" content="#ffffff">


	<!-- Global stylesheets -->
	<link href="/admin/assets/fonts/inter/inter.css" rel="stylesheet" type="text/css">
	<link href="/admin/assets/icons/phosphor/styles.min.css" rel="stylesheet" type="text/css">
	<link href="/admin/assets/css/all.min.css" id="stylesheet" rel="stylesheet" type="text/css">
	<link href="/admin/assets/css/add.css" rel="stylesheet" type="text/css">
	<link href="/admin/assets/css/gallery.css" rel="stylesheet" type="text/css">
	<link href="/admin/assets/css/media.css" rel="stylesheet" type="text/css">
	<link href="/admin/assets/css/animate.min.css" id="stylesheet" rel="stylesheet" type="text/css">
	<link href="/admin/assets/icons/icomoon/styles.min.css" rel="stylesheet" type="text/css">
	<!-- /global stylesheets -->

	<!-- Core JS files -->
	<?php echo '<script'; ?>
 src="/admin/assets/js/configurator.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/bootstrap/bootstrap.bundle.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/jquery/jquery.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/jquery/jquery-ui.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/forms/selects/bootstrap_multiselect.js"><?php echo '</script'; ?>
>
	<!-- /core JS files -->

	<!-- Theme JS files -->
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/ui/moment/moment.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/ui/dragula.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/media/glightbox.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/uploaders/fileinput/fileinput.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/uploaders/dropzone.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/forms/selects/select2.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/forms/tags/tokenfield.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/forms/validation/validate.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/forms/validation/localization/messages_<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['website_language'], ENT_QUOTES, 'UTF-8', true);?>
.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/forms/inputs/passy.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/pickers/daterangepicker.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/pickers/datepicker.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/pickers/color/spectrum.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/sliders/nouislider.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/tables/datatables/datatables.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/clipboard/clipboard.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/loaders/blockui.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/notifications/bootbox.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/notifications/noty.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/vendor/ui/prism.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/admin/assets/js/app.js"><?php echo '</script'; ?>
>



	<!-- /theme JS files -->
	<?php echo '<script'; ?>
>
        var lang = [];
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['jsLang']->value, 'langVal', false, 'langKey');
$_smarty_tpl->tpl_vars['langVal']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['langKey']->value => $_smarty_tpl->tpl_vars['langVal']->value) {
$_smarty_tpl->tpl_vars['langVal']->do_else = false;
?>
            lang['<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['langKey']->value, ENT_QUOTES, 'UTF-8', true);?>
'] = '<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['langVal']->value, ENT_QUOTES, 'UTF-8', true);?>
';
        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	<?php echo '</script'; ?>
>
	<?php echo smarty_function_script(array('src'=>'/admin/assets/js/script.js'),$_smarty_tpl);?>

	<?php $_smarty_tpl->_subTemplateRender("file:init/date-time-pickers.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>



</head>


<body class="<?php if ((isset($_COOKIE['mini_sidebar'])) && $_COOKIE['mini_sidebar'] == true) {?>sidebar-xs<?php }?>">

<?php if (!empty($_smarty_tpl->tpl_vars['alert']->value)) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['alert']->value, ENT_QUOTES, 'UTF-8', true);
}?>

<!-- Main navbar -->
<div class="navbar navbar-dark navbar-expand-lg navbar-static border-bottom border-bottom-white border-opacity-10">
	<div class="container-fluid">
		<div class="d-flex d-lg-none me-2">
			<button type="button" class="navbar-toggler sidebar-mobile-main-toggle rounded-pill">
				<i class="ph-list"></i>
			</button>
		</div>

		<div class="navbar-brand flex-1 flex-lg-0">
			<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/main" class="d-inline-flex align-items-center">
				<img src="/admin/assets/images/logo_light.png" alt="Life Style CMS">
			</a>
		</div>

		<ul class="nav flex-row">

			<li class="nav-item nav-item-dropdown-lg dropdown">
				<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="navbar-nav-link navbar-nav-link-icon rounded-pill" target="_blank">
					<i class="ph-browser me-2"></i>Перейти на сайт
				</a>
			</li>

			<?php if ($_smarty_tpl->tpl_vars['config']->value['comments_enabled'] && !empty($_smarty_tpl->tpl_vars['comments']->value)) {?>
			<li class="nav-item nav-item-dropdown-lg dropdown ms-lg-2">
				<a href="javascript:void('');" class="navbar-nav-link navbar-nav-link-icon rounded-pill" data-bs-toggle="dropdown" data-bs-auto-close="outside">
					<i class="ph-chats"></i>
                    <?php if ($_smarty_tpl->tpl_vars['totalPendingComments']->value > 0) {?>
					<span class="badge bg-yellow text-black position-absolute top-0 end-0 translate-middle-top zindex-1 rounded-pill mt-1 me-1"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['totalPendingComments']->value, ENT_QUOTES, 'UTF-8', true);?>
</span>
					<?php }?>
				</a>

				<div class="dropdown-menu wmin-lg-400 p-0">
					<div class="d-flex align-items-center p-3">
						<h6 class="mb-0">Новые коментарии</h6>
						<div class="ms-auto">
						</div>
					</div>

										<div class="collapse" id="search_messages">
						<div class="px-3 mb-2">
							<div class="form-control-feedback form-control-feedback-start">
								<input type="text" class="form-control" placeholder="Search messages">
								<div class="form-control-feedback-icon">
									<i class="ph-magnifying-glass"></i>
								</div>
							</div>
						</div>
					</div>

					<div class="dropdown-menu-scrollable pb-2">
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['pendingComments']->value, 'pendingComment', false, NULL, 'pendingComments', array (
));
$_smarty_tpl->tpl_vars['pendingComment']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['pendingComment']->value) {
$_smarty_tpl->tpl_vars['pendingComment']->do_else = false;
?>
						<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/comment?action=edit&id=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['pendingComment']->value['commentId'], ENT_QUOTES, 'UTF-8', true);?>
" class="dropdown-item align-items-start text-wrap py-2">
							<div class="flex-1">
								<span class="fw-semibold"> <?php echo htmlspecialchars((string)smarty_modifier_truncate($_smarty_tpl->tpl_vars['pendingComment']->value['authorName'],20), ENT_QUOTES, 'UTF-8', true);?>
</span>
								<span class="text-muted float-end fs-sm"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['pendingComment']->value['addedOn'], ENT_QUOTES, 'UTF-8', true);?>
</span>
								<div class="text-muted"><?php echo htmlspecialchars((string)smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['pendingComment']->value['content'] ?: ''),100), ENT_QUOTES, 'UTF-8', true);?>
</div>
							</div>
						</a>
						<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
					</div>

					<div class="d-flex border-top py-2 px-3">
						<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/comments" class="text-body ms-auto">Смотреть все<i class="ph-arrow-circle-right ms-1"></i></a>
					</div>
				</div>
			</li>
			<?php }?>
		</ul>

		<div class="navbar-collapse justify-content-center flex-lg-1 order-2 order-lg-1 collapse" id="navbar_search">
					</div>

		<ul class="nav flex-row justify-content-end order-1 order-lg-2">
            <?php if (smarty_modifier_count($_smarty_tpl->tpl_vars['LANGUAGES']->value) > 1) {?>
				<li class="nav-item dropdown ms-xl-1">
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['LANGUAGES']->value, 'navLang');
$_smarty_tpl->tpl_vars['navLang']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['navLang']->value) {
$_smarty_tpl->tpl_vars['navLang']->do_else = false;
if (($_smarty_tpl->tpl_vars['SITE_LANG']->value == $_smarty_tpl->tpl_vars['navLang']->value['codename']) || (!$_smarty_tpl->tpl_vars['SITE_LANG']->value && $_smarty_tpl->tpl_vars['navLang']->value['isDefault'])) {?>
						<a href="" class="navbar-nav-link rounded dropdown-toggle" data-bs-toggle="dropdown">
							<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/admin/assets/lang/<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['navLang']->value['codename'], ENT_QUOTES, 'UTF-8', true);?>
.svg" class="w-24px h-24px rounded-pill me-2" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['navLang']->value['codename'], ENT_QUOTES, 'UTF-8', true);?>
">
                            <?php echo htmlspecialchars((string)(($tmp = $_smarty_tpl->tpl_vars['navLang']->value['languageTransName'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['navLang']->value['languageName'] ?? null : $tmp), ENT_QUOTES, 'UTF-8', true);?>

						</a>
                    <?php }
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
					<div class="dropdown-menu dropdown-menu-end" data-bs-popper="static">
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['LANGUAGES']->value, 'navLang');
$_smarty_tpl->tpl_vars['navLang']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['navLang']->value) {
$_smarty_tpl->tpl_vars['navLang']->do_else = false;
?>
							<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/admin/<?php if (!$_smarty_tpl->tpl_vars['navLang']->value['isDefault']) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['navLang']->value['codename'], ENT_QUOTES, 'UTF-8', true);?>
/<?php }
echo htmlspecialchars((string)(defined('REQUESTED_FILE') ? constant('REQUESTED_FILE') : null), ENT_QUOTES, 'UTF-8', true);?>
" class="dropdown-item
    						<?php if (($_smarty_tpl->tpl_vars['SITE_LANG']->value == $_smarty_tpl->tpl_vars['navLang']->value['codename']) || (!$_smarty_tpl->tpl_vars['SITE_LANG']->value && $_smarty_tpl->tpl_vars['navLang']->value['isDefault'])) {?>active<?php }?>">
								<img src="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['GLOBAL_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
/admin/assets/lang/<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['navLang']->value['codename'], ENT_QUOTES, 'UTF-8', true);?>
.svg" class="w-24px h-24px rounded-pill me-2" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['navLang']->value['codename'], ENT_QUOTES, 'UTF-8', true);?>
">
                                <?php echo htmlspecialchars((string)(($tmp = $_smarty_tpl->tpl_vars['navLang']->value['languageTransName'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['navLang']->value->languageName ?? null : $tmp), ENT_QUOTES, 'UTF-8', true);?>

							</a>
                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
					</div>
				</li>
            <?php }?>

            <?php if ((isset($_smarty_tpl->tpl_vars['adminManager']->value))) {?>
			<li class="nav-item nav-item-dropdown-lg dropdown ms-lg-2">
				<a href="javascript:void('');" class="navbar-nav-link align-items-center rounded-pill p-1" data-bs-toggle="dropdown">
					<div class="status-indicator-container">
						<img src="<?php if ((isset($_smarty_tpl->tpl_vars['adminManager']->value['image']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminManager']->value['image']['large'], ENT_QUOTES, 'UTF-8', true);
} else { ?>/admin/assets/img/no_images.jpg<?php }?>" class="w-32px h-32px rounded-pill" alt="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminManager']->value['fullName'], ENT_QUOTES, 'UTF-8', true);?>
">
						<span class="status-indicator bg-success"></span>
					</div>
					<span class="d-none d-lg-inline-block mx-lg-2"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminManager']->value['fullName'], ENT_QUOTES, 'UTF-8', true);?>
</span>
				</a>

				<div class="dropdown-menu dropdown-menu-end">
					<div class="dropdown-header fs-sm ">Сайт</div>
					<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['SITE_URL']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="dropdown-item" target="_blank"><i class="ph-browser me-2"></i>Перейти на сайт</a>
					<div class="dropdown-divider"></div>
					<div class="dropdown-header fs-sm">Аккаунт</div>
					<a class="dropdown-item" href="<?php if ($_smarty_tpl->tpl_vars['adminManager']->value['userType'] == Mnv\Models\Users\UserTypes::DEVELOPER) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/developer?action=edit&id=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminManager']->value['userId'], ENT_QUOTES, 'UTF-8', true);
} else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/manager?action=edit&id=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminManager']->value['userId'], ENT_QUOTES, 'UTF-8', true);
}?>"><i class="ph-gear me-2"></i>Ваш профиль</a>
					<a class="dropdown-item" href="<?php if ($_smarty_tpl->tpl_vars['adminManager']->value['userType'] == Mnv\Models\Users\UserTypes::DEVELOPER) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/developer?action=add<?php } else {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/manager?action=add<?php }?>"><i class="ph-user-circle me-2"></i>Добавить аккаунт</a>
					<a class="dropdown-item" href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/auth?action=logout"><i class="ph-sign-out me-2"></i> Выйти</a>
				</div>
			</li>
            <?php }?>
		</ul>
	</div>
</div>
<!-- /main navbar -->


<!-- Page content -->
<div class="page-content">

	<!-- Main sidebar -->
	<div class="sidebar sidebar-dark sidebar-main sidebar-expand-lg">

		<!-- Sidebar content -->
		<div class="sidebar-content">

			<!-- Sidebar header -->
			<div class="sidebar-section">
				<div class="sidebar-section-body d-flex justify-content-center">
					<h5 class="sidebar-resize-hide flex-grow-1 my-auto">Navigation</h5>

					<div>
						<button type="button" class="btn btn-flat-white btn-icon btn-sm rounded-pill border-transparent sidebar-control sidebar-main-resize d-none d-lg-inline-flex">
							<i class="ph-arrows-left-right"></i>
						</button>

						<button type="button" class="btn btn-flat-white btn-icon btn-sm rounded-pill border-transparent sidebar-mobile-main-toggle d-lg-none">
							<i class="ph-x"></i>
						</button>
					</div>
				</div>
			</div>
			<!-- /sidebar header -->


			<!-- Main navigation -->
			<div class="sidebar-section">
				<ul class="nav nav-sidebar" data-nav-type="accordion">
					<li class="nav-item-header pt-0">
						<div class="text-uppercase fs-sm lh-sm opacity-50 sidebar-resize-hide">Main</div>
						<i class="ph-dots-three sidebar-resize-show"></i>
					</li>
					<li class="nav-item">
						<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/main" class="nav-link <?php if ((isset($_smarty_tpl->tpl_vars['activeItem']->value)) && ($_smarty_tpl->tpl_vars['activeItem']->value == 'main')) {?>active<?php }?>"><i class="ph-house"></i><span data-i18n="menu.dashboard">Dashboard</span></a>
					</li>

					<!-- Main -->
                    <?php if ((isset($_smarty_tpl->tpl_vars['adminManager']->value))) {?>
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['menu']->value, 'itemMenu');
$_smarty_tpl->tpl_vars['itemMenu']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['itemMenu']->value) {
$_smarty_tpl->tpl_vars['itemMenu']->do_else = false;
if ((isset($_smarty_tpl->tpl_vars['itemMenu']->value['activeItems']))) {?>
							<li class="nav-item nav-item-submenu <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['itemMenu']->value['activeItems'], 'active');
$_smarty_tpl->tpl_vars['active']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['active']->value) {
$_smarty_tpl->tpl_vars['active']->do_else = false;
if ((isset($_smarty_tpl->tpl_vars['activeItem']->value)) && ($_smarty_tpl->tpl_vars['activeItem']->value == $_smarty_tpl->tpl_vars['active']->value)) {?>nav-item-expanded nav-item-open<?php }
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>">
								<a href="javascript:void('');" class="nav-link">
									<i class="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['itemMenu']->value['icon'], ENT_QUOTES, 'UTF-8', true);?>
"></i>
									<span data-i18n="menu.<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['itemMenu']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
"> <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['itemMenu']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</span>
								</a>
								<ul class="nav-group-sub collapse <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['itemMenu']->value['activeItems'], 'active');
$_smarty_tpl->tpl_vars['active']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['active']->value) {
$_smarty_tpl->tpl_vars['active']->do_else = false;
if ((isset($_smarty_tpl->tpl_vars['activeItem']->value)) && ($_smarty_tpl->tpl_vars['activeItem']->value == $_smarty_tpl->tpl_vars['active']->value)) {?>show<?php }
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>"
								    data-submenu-title="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['itemMenu']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
">
                                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['itemMenu']->value['children'], 'subItemMenu');
$_smarty_tpl->tpl_vars['subItemMenu']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['subItemMenu']->value) {
$_smarty_tpl->tpl_vars['subItemMenu']->do_else = false;
?>
										<li class="nav-item">
											<a class="nav-link <?php if ((isset($_smarty_tpl->tpl_vars['activeItem']->value)) && ($_smarty_tpl->tpl_vars['activeItem']->value == $_smarty_tpl->tpl_vars['subItemMenu']->value['fileName'])) {?>active<?php }?>"
											   href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['subItemMenu']->value['fileName'], ENT_QUOTES, 'UTF-8', true);?>
">
                                                <?php if ((isset($_smarty_tpl->tpl_vars['subItemMenu']->value['icon']))) {?><i class="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['subItemMenu']->value['icon'], ENT_QUOTES, 'UTF-8', true);?>
"></i><?php }?>
												<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['subItemMenu']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

											</a>
										</li>
                                    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
								</ul>
							</li>
                        <?php }?> <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                    <?php }?>
					<li class="nav-item">
						<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/about" class="nav-link <?php if ((isset($_smarty_tpl->tpl_vars['activeItem']->value)) && ($_smarty_tpl->tpl_vars['activeItem']->value == 'about')) {?>active<?php }?>"><i class="ph-coffee"></i><span data-i18n="menu.about">О проекте</span></a>
					</li>
				</ul>
			</div>
			<!-- /main navigation -->

		</div>
		<!-- /sidebar content -->

	</div>
	<!-- /main sidebar -->


	<!-- Main content -->
	<div class="content-wrapper">

		<!-- Inner content -->
		<div class="content-inner">

            <?php if ($_smarty_tpl->tpl_vars['content']->value) {?>

                <?php echo $_smarty_tpl->tpl_vars['content']->value;?>


            <?php } else { ?>
					<!-- Page header -->
					<div class="page-header page-header-light">
						<div class="page-header-content header-elements-md-inline">
							<div class="page-title d-flex">
								<h4><i class="icon-arrow-left52 mr-2"></i> <span class="font-weight-semibold"><?php if ((isset($_smarty_tpl->tpl_vars['title']->value))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);
}?></span></h4>
								<a href="#" class="header-elements-toggle text-default d-md-none"><i class="icon-more"></i></a>
							</div>

							<div class="header-elements d-none">
								<div class="d-flex justify-content-center">
									<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/overview" class="btn btn-link btn-float font-size-sm font-weight-semibold text-default legitRipple"><i class="icon-bars-alt text-pink-300"></i><span>Статистика</span></a>
								</div>
							</div>
						</div>

						<div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
						</div>
					</div>
					<!-- /page header -->
					<!-- Content area -->
					<div class="content">
						<div class="row">
							<div class="col-lg-12 col-md-12 col-sm-12 mt-1">
								<div class="boxed boxed_warning">
									<div class="heading_box">
										<h1>Такого модуля не существует</h1>
									</div>
								</div>
							</div>
						</div>
					</div>
            <?php }?>




		</div>
		<!-- /inner content -->

		<!-- Footer -->
				<div class="navbar navbar-sm navbar-footer border-top sortable_footer_navbar collapse">
			<div class="col-12">
				<div class="d-flex justify-content-center">
					<button class="btn btn-sm btn-primary sortable_save_button me-2" type="button">Применить</button>
					<button class="btn btn-sm btn-light sortable_cancel_button" type="button">Отменить</button>
				</div>
			</div>
		</div>
        
				<div class="navbar navbar-sm navbar-footer border-top footer_navbar collapse">
			<div class="col-12">
				<ul class="nav nav-pills justify-content-center">
					<li class="nav-item">
						<div class="input-group">
							<select class="form-control select content_select_action" name="group_action" data-width="250">
								<option value="0">Выбрать действие...</option>
								<option value="status"> Изменить статус</option>
								<option value="remove">Удалить выбранное</option>
							</select>
							<button class="btn btn-sm btn-primary px-3 content_save_button" type="button">Применить</button>
						</div>
					</li>
				</ul>
			</div>
		</div>
        

		<!-- /footer -->



	</div>
	<!-- /main content -->

</div>
<!-- /page content -->


<!-- Notifications -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="notifications">
	<div class="offcanvas-header py-0">
		<h5 class="offcanvas-title py-3">Activity</h5>
		<button type="button" class="btn btn-light btn-sm btn-icon border-transparent rounded-pill" data-bs-dismiss="offcanvas">
			<i class="ph-x"></i>
		</button>
	</div>

	<div class="offcanvas-body p-0">
		<div class="bg-light fw-medium py-2 px-3">New notifications</div>
		<div class="p-3">
			<div class="d-flex align-items-start mb-3">
				<a href="#" class="status-indicator-container me-3">
					<span class="status-indicator bg-success"></span>
				</a>
				<div class="flex-fill">
					<a href="#" class="fw-semibold">James</a> has completed the task <a href="#">Submit documents</a> from <a href="#">Onboarding</a> list

					<div class="bg-light rounded p-2 my-2">
						<label class="form-check ms-1">
							<input type="checkbox" class="form-check-input" checked disabled>
							<del class="form-check-label">Submit personal documents</del>
						</label>
					</div>

					<div class="fs-sm text-muted mt-1">2 hours ago</div>
				</div>
			</div>

			<div class="d-flex align-items-start mb-3">
				<div class="flex-fill">
					<a href="#" class="fw-semibold">Margo</a> has added 4 users to <span class="fw-semibold">Customer enablement</span> channel

					<div class="d-flex my-2">
						<button type="button" class="btn btn-light btn-icon d-inline-flex align-items-center justify-content-center w-32px h-32px rounded-pill p-0">
							<i class="ph-plus ph-sm"></i>
						</button>
					</div>

					<div class="fs-sm text-muted mt-1">3 hours ago</div>
				</div>
			</div>

			<div class="d-flex align-items-start">
				<div class="me-3">
					<div class="bg-warning bg-opacity-10 text-warning rounded-pill">
						<i class="ph-warning p-2"></i>
					</div>
				</div>
				<div class="flex-1">
					Subscription <a href="#">#466573</a> from 10.12.2021 has been cancelled. Refund case <a href="#">#4492</a> created
					<div class="fs-sm text-muted mt-1">4 hours ago</div>
				</div>
			</div>
		</div>

		<div class="bg-light fw-medium py-2 px-3">Older notifications</div>
		<div class="p-3">
			<div class="d-flex align-items-start mb-3">
				<a href="#" class="status-indicator-container me-3">
					<span class="status-indicator bg-success"></span>
				</a>
				<div class="flex-fill">
					<a href="#" class="fw-semibold">Nick</a> requested your feedback and approval in support request <a href="#">#458</a>

					<div class="my-2">
						<a href="#" class="btn btn-success btn-sm me-1">
							<i class="ph-checks ph-sm me-1"></i>
							Approve
						</a>
						<a href="#" class="btn btn-light btn-sm">
							Review
						</a>
					</div>

					<div class="fs-sm text-muted mt-1">3 days ago</div>
				</div>
			</div>

			<div class="d-flex align-items-start mb-3">
				<a href="#" class="status-indicator-container me-3">
					<span class="status-indicator bg-grey"></span>
				</a>
				<div class="flex-fill">
					<a href="#" class="fw-semibold">Mike</a> added 1 new file(s) to <a href="#">Product management</a> project

					<div class="bg-light rounded p-2 my-2">
						<div class="d-flex align-items-center">
							<div class="me-2">
							</div>
							<div class="flex-fill">
								new_contract.pdf
								<div class="fs-sm text-muted">112KB</div>
							</div>
							<div class="ms-2">
								<button type="button" class="btn btn-flat-dark text-body btn-icon btn-sm border-transparent rounded-pill">
									<i class="ph-arrow-down"></i>
								</button>
							</div>
						</div>
					</div>

					<div class="fs-sm text-muted mt-1">1 day ago</div>
				</div>
			</div>

			<div class="d-flex align-items-start mb-3">
				<div class="me-3">
					<div class="bg-success bg-opacity-10 text-success rounded-pill">
						<i class="ph-calendar-plus p-2"></i>
					</div>
				</div>
				<div class="flex-fill">
					All hands meeting will take place coming Thursday at 13:45.

					<div class="my-2">
						<a href="#" class="btn btn-primary btn-sm">
							<i class="ph-calendar-plus ph-sm me-1"></i>
							Add to calendar
						</a>
					</div>

					<div class="fs-sm text-muted mt-1">2 days ago</div>
				</div>
			</div>

			<div class="d-flex align-items-start mb-3">
				<a href="#" class="status-indicator-container me-3">
					<span class="status-indicator bg-danger"></span>
				</a>
				<div class="flex-fill">
					<a href="#" class="fw-semibold">Christine</a> commented on your community <a href="#">post</a> from 10.12.2021

					<div class="fs-sm text-muted mt-1">2 days ago</div>
				</div>
			</div>

			<div class="d-flex align-items-start mb-3">
				<div class="me-3">
					<div class="bg-primary bg-opacity-10 text-primary rounded-pill">
						<i class="ph-users-four p-2"></i>
					</div>
				</div>
				<div class="flex-fill">
					<span class="fw-semibold">HR department</span> requested you to complete internal survey by Friday

					<div class="fs-sm text-muted mt-1">3 days ago</div>
				</div>
			</div>

			<div class="text-center">
				<div class="spinner-border" role="status">
					<span class="visually-hidden">Loading...</span>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- /notifications -->


<!-- Demo config -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="theme_config">
	<div class="position-absolute top-50 end-100 visible">
		<button type="button" class="btn btn-primary btn-icon translate-middle-y rounded-end-0" data-bs-toggle="offcanvas" data-bs-target="#theme_config">
			<i class="ph-gear"></i>
		</button>
	</div>

	<div class="offcanvas-header border-bottom py-0">
		<h5 class="offcanvas-title py-3">Настройки темы</h5>
		<button type="button" class="btn btn-light btn-sm btn-icon border-transparent rounded-pill" data-bs-dismiss="offcanvas">
			<i class="ph-x"></i>
		</button>
	</div>

	<div class="offcanvas-body">
		<div class="fw-semibold mb-2">Color mode</div>
		<div class="list-group mb-3">
			<label class="list-group-item list-group-item-action form-check border-width-1 rounded mb-2">
				<div class="d-flex flex-fill my-1">
					<div class="form-check-label d-flex me-2">
						<i class="ph-sun ph-lg me-3"></i>
						<div>
							<span class="fw-bold">Light theme</span>
							<div class="fs-sm text-muted">Set light theme or reset to default</div>
						</div>
					</div>
					<input type="radio" class="form-check-input cursor-pointer ms-auto" name="main-theme" value="light" checked>
				</div>
			</label>

			<label class="list-group-item list-group-item-action form-check border-width-1 rounded mb-2">
				<div class="d-flex flex-fill my-1">
					<div class="form-check-label d-flex me-2">
						<i class="ph-moon ph-lg me-3"></i>
						<div>
							<span class="fw-bold">Dark theme</span>
							<div class="fs-sm text-muted">Switch to dark theme</div>
						</div>
					</div>
					<input type="radio" class="form-check-input cursor-pointer ms-auto" name="main-theme" value="dark">
				</div>
			</label>

			<label class="list-group-item list-group-item-action form-check border-width-1 rounded mb-0">
				<div class="d-flex flex-fill my-1">
					<div class="form-check-label d-flex me-2">
						<i class="ph-translate ph-lg me-3"></i>
						<div>
							<span class="fw-bold">Auto theme</span>
							<div class="fs-sm text-muted">Set theme based on system mode</div>
						</div>
					</div>
					<input type="radio" class="form-check-input cursor-pointer ms-auto" name="main-theme" value="auto">
				</div>
			</label>
		</div>


	</div>

	<div class="border-top text-center py-2 px-3">
		<ul class="nav">
			<li class="nav-item text-start">
				<span class="fs-sm">
					<i class="icon-meter-fast"></i>&nbsp; Использовано памяти : <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['debug_memory']->value, ENT_QUOTES, 'UTF-8', true);?>
 Мб (<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['debug_memusage']->value, ENT_QUOTES, 'UTF-8', true);?>
 Мб макс)<br>
					<i class="icon-history"></i>&nbsp; Время работы скрипта: <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['debug_timer']->value, ENT_QUOTES, 'UTF-8', true);?>
 мс
				</span>
			</li>
		</ul>
		<span>&copy; 2001 - <?php echo htmlspecialchars((string)smarty_modifier_date_format(time(),"%Y"), ENT_QUOTES, 'UTF-8', true);?>
. MNV by <a href="https://www.life-style.uz/" target="_blank">Life Style</a></span>
	</div>
</div>
<!-- /demo config -->



<!-- настройки таблицы -->

<?php echo '<script'; ?>
>

    /* Call an ajax entity update */
    $(document).on("click", ".ajax_action", function () {
        ajax_action($(this));
    });


    if ($(".ajax_action")) {
        /* Функция аяксового обновления полей
        * state - состояние объекта (включен/выключен)
        * id - id обновляемой сущности
        * module - типо сущности
        * action - обновляемое поле (поле в БД)
        * класс "ajax_block" у елемента - означает массовое обновление;
        * если нужно:
        * 1) добавить класс "ajax_block" к блоку в котором хотите обновить несколько полей,
        * 2) добавить класс "ajax_element" к елементам, в блоке("ajax_block"), которые хотите обновить
        * .fn_ajax_element: аттрибут "name" - поле БД; val() - значение.
        * */
        function ajax_action($this) {
            var value, module, action, id;
            // value = $this.hasClass("active_class") ? 0:1;
            id = parseInt($this.attr('data-id'));
            module = $this.attr("data-module");
            action = $this.attr("data-action");

            console.log(action);
            $.post("<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/"+module, { action: action, id: id }, function(response) {
               if (response.data === true) {
                   new Noty({ text: 'Статус изменен', type: 'success' }).show();
                   if (action === 'status') {
                       $this.closest("tr").toggleClass('table-warning');
                       if (response.status === 'V') {
                            $this.html('<i class="ph-eye me-2"></i> Статус');
                            $('#status-'+id).text('Включено');
                       } else {
	                       $this.html('<i class="ph-eye-slash me-2"></i> Статус');
	                       $('#status-'+id).text('Скрыто');
                       }
                    }
               } else {
                    new Noty({ text: 'Ошибка изменения статуса', type: 'error'}).show();
               }
           });
        }
    }

    function auto_keywords() {
        tinyMCE.triggerSave();
        var txt = document.getElementsByClassName('description')[0].value;
        $.post("<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/handlers/keywords.php", { content: txt }, function(data) {
            console.log(data.keywords);
            $('#keywords').tokenfield('setTokens', data.keywords);
        });
        return false;
    }

<?php echo '</script'; ?>
>
</body>
</html>
<?php }
}
