<?php
/* Smarty version 4.5.2, created on 2024-04-15 09:43:06
  from '/Users/nikolaimv/Sites/admin.panel.11.loc/admin/templates/views/stats/overview.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_661cb05a124936_55529237',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e473436d01184323a71e04dae30134c4784578b5' => 
    array (
      0 => '/Users/nikolaimv/Sites/admin.panel.11.loc/admin/templates/views/stats/overview.tpl',
      1 => 1711430835,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:init/echarts-init.tpl' => 1,
    'file:components/page-header.tpl' => 1,
    'file:components/selectors.tpl' => 2,
  ),
),false)) {
function content_661cb05a124936_55529237 (Smarty_Internal_Template $_smarty_tpl) {
?>

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

<!-- Page header -->
<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, "buttons", null, null);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>

<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, "breadcrumb", null, null);?>
	<a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/overview" class="breadcrumb-item"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
</a>
<?php $_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>

<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, "showBy", null, null);
$_smarty_tpl->smarty->ext->_capture->close($_smarty_tpl);?>

<?php $_smarty_tpl->_subTemplateRender("file:components/page-header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('buttons'=>$_smarty_tpl->smarty->ext->_capture->getBuffer($_smarty_tpl, 'buttons'),'breadcrumb'=>$_smarty_tpl->smarty->ext->_capture->getBuffer($_smarty_tpl, 'breadcrumb'),'showBy'=>$_smarty_tpl->smarty->ext->_capture->getBuffer($_smarty_tpl, 'showBy')), 0, false);
?>
<!-- /page header -->

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

	<div class="content">
		<div class="row">
			<div class="col-md-12">
				<div class="card border shadow-sm">
					<?php $_smarty_tpl->_subTemplateRender("file:components/selectors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('action'=>'','select'=>''), 0, false);
?>
				</div>
			</div>
		</div>

	</div>
	<div class="content d-flex justify-content-center align-items-center">
		<div class="flex-fill">
			<div class="text-center mb-3">
				<h1 class="error-title offline-title">Statistics is empty </h1>
				<div class="row">
					<div class="col-md-6 offset-md-3">
						<div class="alert bg-info text-white alert-styled-left alert-dismissible">
							<span class="font-weight-semibold">Сбор статистики!</span> Нужно включить в настройках.
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

<?php } else { ?>

	<div class="content">
		<div class="row">
			<div class="col-md-12">
				<div class="card border shadow-sm">
                    <?php $_smarty_tpl->_subTemplateRender("file:components/selectors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('action'=>'','select'=>''), 0, true);
?>
				</div>

				<div class="card border shadow-sm">
					<div class="card-body">
						<div class="chart-container">
							<div class="chart has-fixed-height" id="stats_users"></div>
						</div>
					</div>
				</div>

				<div class="card border shadow-sm">
					<div class="card-body">
						<div class="chart-container">
							<div class="chart has-fixed-height" id="stats_content"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

<?php }?>

<?php }
}
