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

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.2',
  'unifunc' => 'content_661cb05a2e3e21_73529457',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '70cb8605376fe070f88a52ef75d451309b15c8cb' => 
    array (
      0 => '/Users/nikolaimv/Sites/admin.panel.11.loc/admin/templates/components/selectors.tpl',
      1 => 1683004698,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_661cb05a2e3e21_73529457 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/Users/nikolaimv/Sites/admin.panel.11.loc/includes/composer/vendor/smarty/smarty/libs/plugins/function.html_options.php','function'=>'smarty_function_html_options',),1=>array('file'=>'/Users/nikolaimv/Sites/admin.panel.11.loc/includes/composer/vendor/smarty/smarty/libs/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
if ((isset($_smarty_tpl->tpl_vars['filter']->value)) && !empty($_smarty_tpl->tpl_vars['filter']->value) && $_smarty_tpl->tpl_vars['filter']->value == true) {?>

	<form action="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['url']->value, ENT_QUOTES, 'UTF-8', true);?>
" method="post">
		<div class="card-header bg-light py-2 d-sm-flex align-items-sm-center">
			<div class="mb-0">
				<div class="input-group">
					<input type="text" class="form-control" name="query" value="<?php if ((isset($_smarty_tpl->tpl_vars['query']->value))) {
echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['query']->value, ENT_QUOTES, 'UTF-8', true);
}?>" autocomplete="off" placeholder="Поиск по названию">
					<button type="submit" class="btn btn-sm btn-primary"><i class="icon-search4 me-2"></i>Поиск</button>
				</div>
			</div>

			<div class="ms-sm-auto">
				<ul class="list-inline list-inline-condensed mb-0">
					<li class="list-inline-item">
						<div class="input-group">
							<?php if ((isset($_smarty_tpl->tpl_vars['sections']->value)) && !empty($_smarty_tpl->tpl_vars['sections']->value)) {?>
								<?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['sections']->value,'selected'=>(($tmp = $_smarty_tpl->tpl_vars['sctn']->value ?? null)===null||$tmp==='' ? '' ?? null : $tmp),'name'=>"sctn",'class'=>"form-control select",'onchange'=>"this.form.submit()",'data-width'=>"250"),$_smarty_tpl);?>

							<?php }?>

                            <?php if ((isset($_smarty_tpl->tpl_vars['statuses']->value)) && !empty($_smarty_tpl->tpl_vars['statuses']->value)) {?>
                                <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['statuses']->value,'selected'=>(($tmp = $_smarty_tpl->tpl_vars['sts']->value ?? null)===null||$tmp==='' ? '' ?? null : $tmp),'name'=>"sts",'class'=>"form-control select",'onchange'=>"this.form.submit()",'data-width'=>"160"),$_smarty_tpl);?>

                            <?php }?>

							<?php if ((isset($_smarty_tpl->tpl_vars['filterDate']->value)) && !empty($_smarty_tpl->tpl_vars['filterDate']->value)) {?>
								<span class="input-group-text"><i class="icon-calendar3 mr-2"></i></span>
								<button type="button" class="btn btn-light daterange-predefined"> <?php echo htmlspecialchars((string)smarty_modifier_date_format($_smarty_tpl->tpl_vars['dateStart']->value,"%Y-%m-%d"), ENT_QUOTES, 'UTF-8', true);?>
 - <?php echo htmlspecialchars((string)smarty_modifier_date_format($_smarty_tpl->tpl_vars['dateEnd']->value,"%Y-%m-%d"), ENT_QUOTES, 'UTF-8', true);?>
</button>
							<?php }?>
						</div>
						<input type="hidden" class="form-control" name="newDateStart" value="">
						<input type="hidden" class="form-control" name="newDateEnd" value="">
						<button class="btn btn-sm btn-primary daterange-btn" type="submit" style="display: none">Показать</button>
					</li>
				</ul>
			</div>
		</div>
	</form>

<?php } else { ?>
	<form method="post" action="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['action']->value, ENT_QUOTES, 'UTF-8', true);?>
">
	<div class="card-header bg-light py-2 d-sm-flex align-items-sm-center">
		<div class="mb-0"></div>
		<div class="ms-sm-auto">
			<ul class="list-inline list-inline-condensed mb-0">
				<li class="list-inline-item text-muted">Выберите дату или временной период: </li>
				<li class="list-inline-item">
					<div class="input-group">
						<?php if ((isset($_smarty_tpl->tpl_vars['action']->value)) && !empty($_smarty_tpl->tpl_vars['action']->value)) {?>
							<?php if (!empty($_smarty_tpl->tpl_vars['select']->value) && $_smarty_tpl->tpl_vars['select']->value == 'errors') {?>
								<?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['filterErrorCodeOptions']->value,'selected'=>(($tmp = $_smarty_tpl->tpl_vars['filterErrorCode']->value ?? null)===null||$tmp==='' ? '' ?? null : $tmp),'name'=>"filterErrorCode",'onchange'=>"this.form.submit()",'class'=>"form-control select",'data-width'=>"200"),$_smarty_tpl);?>

							<?php } else { ?>
								<?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['filterTypeOptions']->value,'selected'=>(($tmp = $_smarty_tpl->tpl_vars['filterTypeId']->value ?? null)===null||$tmp==='' ? '' ?? null : $tmp),'name'=>"filterTypeId",'onchange'=>"this.form.submit()",'class'=>"form-control select",'data-width'=>"200"),$_smarty_tpl);?>

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


						<span class="input-group-text"><i class="icon-calendar3 mr-2"></i></span>
						<button type="button" class="btn btn-light daterange-predefined"> <?php echo htmlspecialchars((string)smarty_modifier_date_format($_smarty_tpl->tpl_vars['dateStart']->value,"%Y-%m-%d"), ENT_QUOTES, 'UTF-8', true);?>
 - <?php echo htmlspecialchars((string)smarty_modifier_date_format($_smarty_tpl->tpl_vars['dateEnd']->value,"%Y-%m-%d"), ENT_QUOTES, 'UTF-8', true);?>
</button>

					</div>
					<input type="hidden" class="form-control" name="newDateStart" value="">
					<input type="hidden" class="form-control" name="newDateEnd" value="">
					<button class="btn btn-sm btn-primary daterange-btn" type="submit" style="display: none">Показать</button>
				</li>
			</ul>
		</div>
	</div>
	</form>
<?php }?>

<style>
    .daterangepicker.auto-apply .drp-buttons, .daterangepicker.single .drp-selected {
        display: none !important;
    }
</style>




<?php }
}
