<?php
/* Smarty version 4.5.2, created on 2024-05-17 14:57:21
  from '/Users/nikolaimv/Sites/admin.panel.11.loc/admin/templates/views/auth/index.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_66472a010cd746_93287562',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2b50f640089fdb657eb249226c356de71b85fc1a' => 
    array (
      0 => '/Users/nikolaimv/Sites/admin.panel.11.loc/admin/templates/views/auth/index.tpl',
      1 => 1679630384,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_66472a010cd746_93287562 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('wrapper', '' ,false ,32);?>
<!DOCTYPE html>
<html lang="en">
<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>Вход в админ-панель - Life Style CMS</title>
	<!-- 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">
	<!-- /global stylesheets -->

	<!-- Core JS files -->
	<!-- /core JS files -->

	<!-- Theme JS files -->

</head>

<body>
	<div class="page-content login-cover">
		<div class="content-wrapper">
			<div class="content d-flex justify-content-center align-items-center">
				<?php if ((isset($_smarty_tpl->tpl_vars['isRemembered']->value)) && $_smarty_tpl->tpl_vars['isRemembered']->value == 1) {?>
					<!-- Unlock form -->
					<form class="login-form " method="post" action="" id="login_unlock" accept-charset=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['charset'], ENT_QUOTES, 'UTF-8', true);?>
>
						<div class="card mb-0">
							<div class="card-body">
								<div class="text-center">
									<div class="card-img-actions d-inline-block mb-3" style="height: 160px">
										<img class="rounded-circle" src="<?php if ((isset($_smarty_tpl->tpl_vars['adminManager']->value->manager->image))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminManager']->value->manager->image->medium, ENT_QUOTES, 'UTF-8', true);
} else { ?>/admin/assets/images/demo/users/face11.jpg<?php }?>" width="160" height="160" alt="">
										<div class="card-img-actions-overlay card-img rounded-circle">
											<a href="" class="btn btn-outline bg-white text-white border-white border-2 btn-icon rounded-round">
												<i class="icon-question7"></i>
											</a>
										</div>
									</div>
								</div>
								<?php if ((isset($_smarty_tpl->tpl_vars['IS_BANNED_USER']->value)) && !empty($_smarty_tpl->tpl_vars['IS_BANNED_USER']->value)) {?>
									<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['IS_BANNED_USER']->value, ENT_QUOTES, 'UTF-8', true);?>
</div>
								<?php } else { ?>
									<?php if ((isset($_smarty_tpl->tpl_vars['errors']->value))) {?>
										<?php if ((isset($_smarty_tpl->tpl_vars['message_limit']->value))) {?>
											<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['message_limit']->value, ENT_QUOTES, 'UTF-8', true);?>
</div>
										<?php } else { ?>
											<?php if ((isset($_smarty_tpl->tpl_vars['errors']->value))) {?>
												<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['errors']->value, 'error', false, 'key');
$_smarty_tpl->tpl_vars['error']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->do_else = false;
?>
													<?php if (!empty($_smarty_tpl->tpl_vars['error']->value)) {?><div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['error']->value, ENT_QUOTES, 'UTF-8', true);?>
</div><?php }?>
												<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
											<?php }?>
										<?php }?>
									<?php }?>
									<?php if ((isset($_smarty_tpl->tpl_vars['limit_cnt']->value))) {?>
										<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;">Осталось <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['limit_cnt']->value, ENT_QUOTES, 'UTF-8', true);?>
 <?php echo htmlspecialchars((string)call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'plural' ][ 0 ], array( $_smarty_tpl->tpl_vars['limit_cnt']->value,'попытка','попыток','попытки' )), ENT_QUOTES, 'UTF-8', true);?>
</div>
									<?php }?>
									<?php if ((isset($_smarty_tpl->tpl_vars['isBanned']->value))) {?>
										<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;">Вы исчерпали количество попыток на сегодня.</div>
									<?php } else { ?>
										<div class="text-center mb-3">
											<h6 class="font-weight-semibold mb-0"><?php if ((isset($_smarty_tpl->tpl_vars['adminManager']->value)) && !empty($_smarty_tpl->tpl_vars['adminManager']->value)) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminManager']->value->manager->fullName, ENT_QUOTES, 'UTF-8', true);
}?></h6>
											<span class="d-block text-muted">Unlock your account</span>
										</div>

										<div class="form-group form-group-feedback form-group-feedback-right <?php if ((isset($_smarty_tpl->tpl_vars['errors']->value['enter_password'])) || (isset($_smarty_tpl->tpl_vars['errors']->value['wrong_username_password'])) || (isset($_smarty_tpl->tpl_vars['errors']->value['enter_username_password']))) {?>error<?php }?>">
											<input type="password" class="form-control" id="adpass" type="password" name="login[password]" placeholder="Пароль" autocomplete="on">
											<div class="form-control-feedback">
												<i class="icon-user-lock text-muted"></i>
											</div>
										</div>

										<button type="submit" name="action" value="login_unlock" class="btn btn-primary btn-block"><i class="icon-unlocked mr-2"></i> Unlock</button>
									<?php }?>
								<?php }?>
							</div>
						</div>
					</form>
					<!-- /unlock form -->
				<?php } else { ?>

					<form class="login-form " method="post" action="" id="login" accept-charset=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['config']->value['charset'], ENT_QUOTES, 'UTF-8', true);?>
>
						<div class="card mb-0">
							<div class="card-body">
								<div class="text-center mb-3">
									<i class="icon-reading icon-2x text-slate-300 border-slate-300 border-3 rounded-round p-3 mb-3 mt-1"></i>
									<h5 class="mb-0">Войдите в свой аккаунт</h5>
									<span class="d-block text-muted">Ваши учетные данные</span>
								</div>
	                            <?php if ((isset($_smarty_tpl->tpl_vars['Unknown']->value)) && !empty($_smarty_tpl->tpl_vars['Unknown']->value)) {?>
								<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['Unknown']->value, ENT_QUOTES, 'UTF-8', true);?>
</div>
								<?php }?>
								<?php if ((isset($_smarty_tpl->tpl_vars['IS_BANNED_USER']->value)) && !empty($_smarty_tpl->tpl_vars['IS_BANNED_USER']->value)) {?>
									<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['IS_BANNED_USER']->value, ENT_QUOTES, 'UTF-8', true);?>
</div>
								<?php } else { ?>
									<?php if ((isset($_smarty_tpl->tpl_vars['errors']->value))) {?>
										<?php if ((isset($_smarty_tpl->tpl_vars['message_limit']->value))) {?>
											<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;"><?php echo $_smarty_tpl->tpl_vars['message_limit']->value;?>
</div>
										<?php } else { ?>
											<?php if ((isset($_smarty_tpl->tpl_vars['errors']->value))) {?>
												<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['errors']->value, 'error', false, 'key');
$_smarty_tpl->tpl_vars['error']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->do_else = false;
?>
													<?php if (!empty($_smarty_tpl->tpl_vars['error']->value)) {?><div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['error']->value, ENT_QUOTES, 'UTF-8', true);?>
</div><?php }?>
												<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
											<?php }?>
										<?php }?>
									<?php }?>
									<?php if ((isset($_smarty_tpl->tpl_vars['limit_cnt']->value))) {?>
										<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;">Осталось <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['limit_cnt']->value, ENT_QUOTES, 'UTF-8', true);?>
 попыт<?php echo htmlspecialchars((string)call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'plural' ][ 0 ], array( $_smarty_tpl->tpl_vars['limit_cnt']->value,'ка','ок','ки' )), ENT_QUOTES, 'UTF-8', true);?>
</div>
									<?php }?>
									<?php if ((isset($_smarty_tpl->tpl_vars['isBanned']->value))) {?>
										<div class="alert alert-danger" role="alert" style="position: relative;margin-bottom: 10px;">Вы исчерпали количество попыток на сегодня.</div>
									<?php } else { ?>
										<div class="mb-3">
											<label class="form-label <?php if ((isset($_smarty_tpl->tpl_vars['errors']->value['enter_username']))) {?>error<?php }?>">Пользователь</label>
											<div class="form-control-feedback form-control-feedback-start">
												<input type="text" class="form-control" name="login[loginName]" value="<?php if ((isset($_smarty_tpl->tpl_vars['login']->value['loginName']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['login']->value['loginName'], ENT_QUOTES, 'UTF-8', true);
}?>" placeholder="john@doe.com">
												<div class="form-control-feedback-icon">
													<i class="ph-user-circle text-muted"></i>
												</div>
											</div>
										</div>

										<div class="mb-3">
											<label class="form-label <?php if ((isset($_smarty_tpl->tpl_vars['errors']->value['enter_password'])) || (isset($_smarty_tpl->tpl_vars['errors']->value['wrong_username_password'])) || (isset($_smarty_tpl->tpl_vars['errors']->value['enter_username_password']))) {?>error<?php }?>">Пароль</label>
											<div class="form-control-feedback form-control-feedback-start">
												<input type="password" class="form-control" name="login[password]" value="<?php if ((isset($_smarty_tpl->tpl_vars['login']->value['password']))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['login']->value['password'], ENT_QUOTES, 'UTF-8', true);
}?>" placeholder="•••••••••••">
												<div class="form-control-feedback-icon">
													<i class="ph-lock text-muted"></i>
												</div>
											</div>
										</div>

										<div class="d-flex align-items-center mb-3">
											<label class="form-check">
												<input id="remember_check" type="checkbox" name="login[remember]" class="form-check-input remember_check" checked>
												<span class="form-check-label">Запомнить меня</span>
											</label>

										</div>

										<div class="mb-3">
											<button type="submit" name="action" value="login" class="btn btn-primary w-100">Вход в админ-панель</button>
										</div>


									<?php }?>
								<?php }?>

							</div>
						</div>
					</form>
				<?php }?>
			</div>
		</div>
	</div>

	<!-- Demo config -->







	<!-- /demo config -->
	<?php echo '<script'; ?>
>
        // const checkbox = document.querySelector('#remember_check')
        // if (checkbox) {
        //     checkbox.addEventListener('input', (e) => {
        //         e.currentTarget.checked ? (checkbox.value = 1) : (checkbox.value = 0)
        //     })
        // }

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