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

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_661cb0f997b677_40036369',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '3d75b6de9d0156291d8da3245819da38eb71e8c2' => 
    array (
      0 => '/Users/nikolaimv/Sites/admin.panel.11.loc/admin/templates/views/stats/bots.tpl',
      1 => 1711430906,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:module/show-by.tpl' => 1,
    'file:components/page-header.tpl' => 1,
    'file:components/selectors.tpl' => 1,
    'file:module/pagination.tpl' => 1,
  ),
),false)) {
function content_661cb0f997b677_40036369 (Smarty_Internal_Template $_smarty_tpl) {
?>
	<!-- Page header -->
	<?php $_smarty_tpl->smarty->ext->_capture->open($_smarty_tpl, "buttons", null, null);?>
	<?php $_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);?>
/bots" 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);?>
	    <?php $_smarty_tpl->_subTemplateRender("file:module/show-by.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('url'=>((string)$_smarty_tpl->tpl_vars['adminUrl']->value)."/bots"), 0, false);
?>
	<?php $_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 -->

	<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'=>((string)$_smarty_tpl->tpl_vars['adminUrl']->value)."/bots",'select'=>''), 0, false);
?>
				</div>

			    <div class="card border shadow-sm">
				    <div class="card-header d-flex flex-wrap">
					    <h6 class="mb-0"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['title']->value, ENT_QUOTES, 'UTF-8', true);?>
</h6>
					    <div class="d-inline-flex ms-auto">
						    <a class="text-body" data-card-action="collapse"><i class="ph-caret-down"></i></a>
					    </div>
				    </div>
				    <div class="collapse show">
			            <table class="table table-xs table-striped table-actions table-hover">
				            <thead>
				            <tr>
				                <th class="text-left">Агенты</th>
				                <th class="text-center">Просмотры</th>
				            </tr>
				            </thead>
				            <?php if ((isset($_smarty_tpl->tpl_vars['visitors']->value)) && !empty($_smarty_tpl->tpl_vars['visitors']->value)) {?>
				                <tbody>
				                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['visitors']->value, 'visitor');
$_smarty_tpl->tpl_vars['visitor']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['visitor']->value) {
$_smarty_tpl->tpl_vars['visitor']->do_else = false;
?>
				                    <tr class="">
				                        <td class="text-nowrap" width="100%"><?php if ((isset($_smarty_tpl->tpl_vars['visitor']->value['botName']))) {
echo (($tmp = $_smarty_tpl->tpl_vars['visitor']->value['botName'] ?? null)===null||$tmp==='' ? $_smarty_tpl->tpl_vars['visitor']->value['userAgent'] ?? null : $tmp);
}?></td>
				                        <td class="text-center"><a href="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['adminUrl']->value, ENT_QUOTES, 'UTF-8', true);?>
/bot?visitorId=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['visitor']->value['visitorId'], ENT_QUOTES, 'UTF-8', true);
if ((isset($_smarty_tpl->tpl_vars['filterTypeId']->value))) {?>&filterTypeId=<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['filterTypeId']->value, ENT_QUOTES, 'UTF-8', true);
}?>"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['visitor']->value['totalVisits'], ENT_QUOTES, 'UTF-8', true);?>
</a></td>
				                    </tr>
				                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
				                </tbody>
				            <?php } else { ?>
				                <tbody> <tr class="odd"><td class="text-center" colspan="2">- Не найдено -</td></tr></tbody>
				            <?php }?>

				        </table>
				    </div>
	                <?php ob_start();
if ((isset($_smarty_tpl->tpl_vars['filterTypeId']->value))) {
echo "&filterTypeId=";
echo (string)$_smarty_tpl->tpl_vars['filterTypeId']->value;
}
$_prefixVariable1=ob_get_clean();
$_smarty_tpl->_subTemplateRender("file:module/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('url'=>((string)$_smarty_tpl->tpl_vars['adminUrl']->value)."/bots",'params'=>$_prefixVariable1), 0, false);
?>
			    </div>
			</div>
		</div>
	</div>
	<!-- /content area -->
<?php }
}
