<?php
/* Smarty version 4.5.3, created on 2024-10-16 19:32:33
  from '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/feedbacks.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_670feaa15809b2_36374759',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '75bccfbcd059574284afcde3985bee93ccb742b9' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/feedbacks.tpl',
      1 => 1716650267,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:pagination.tpl' => 1,
  ),
),false)) {
function content_670feaa15809b2_36374759 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('meta_title', 'Заявки' ,false ,8);?>

<div class="container-fluid">

        <div class="nk-block-head nk-block-head-sm">
        <div class="nk-block-between">
            <div class="nk-block-head-content">
                <h3 class="nk-block-title page-title">Заявки</h3>
                <div class="nk-block-des text-soft">
                    <p>Управление заявками с форм.</p>
                </div>
            </div>
        </div>
    </div>

        <div class="nk-block js-list-footer-fixed">
        <div class="card card-bordered card-stretch">
            <div class="card-inner-group">

            	            	<div class="card-inner">
            		<div class="card-title-group">

            			            			<div class="card-title">
            				<h5 class="title">
            					<?php if ($_smarty_tpl->tpl_vars['keyword']->value && $_smarty_tpl->tpl_vars['feedbacks_count']->value) {?>
                                    По запросу "<?php echo $_smarty_tpl->tpl_vars['keyword']->value;?>
" <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'plural' ][ 0 ], array( $_smarty_tpl->tpl_vars['feedbacks_count']->value,'нашлась','нашлись','нашлось' ));?>
 <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'plural' ][ 0 ], array( $_smarty_tpl->tpl_vars['feedbacks_count']->value,'заявка','заявок','заявки' ));?>

            					<?php } elseif ($_smarty_tpl->tpl_vars['feedbacks_count']->value) {?>
                                    <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'plural' ][ 0 ], array( $_smarty_tpl->tpl_vars['feedbacks_count']->value,'заявка','заявок','заявки' ));?>

            					<?php } else { ?>
            						Нет заявок.
            					<?php }?>
            				</h5>
            			</div>

            			            			<div class="card-tools mr-n1">
            				<ul class="btn-toolbar gx-1">

            					            					<?php if ($_smarty_tpl->tpl_vars['feedbacks']->value || $_smarty_tpl->tpl_vars['keyword']->value) {?>
            					<li>
            						<a href="#" class="search-toggle toggle-search btn btn-icon" data-target="search">
            							<em class="icon ti ti-search"></em>
            						</a>
            					</li>
            					<?php if (!empty($_smarty_tpl->tpl_vars['keyword']->value)) {?>
            					<li>
            						<a href="#" class="btn btn-icon js-list-search-reset" data-toggle="tooltip" data-placement="top" data-original-title="Сбросить поиск">
            							<em class="icon ti ti-x"></em>
            						</a>
            					</li>
            					<?php }?>
            					<?php }?>

            					            					<li class="btn-toolbar-sep"></li>
            					<li>
            						<div class="dropdown">
            							<a href="#" class="btn btn-trigger btn-icon dropdown-toggle" data-toggle="dropdown">
            								<em class="icon ti ti-filter"></em>
            							</a>
            							<div class="dropdown-menu dropdown-menu-md dropdown-menu-right">
                                            <ul class="link-check">
            									<li><span>Группировать</span></li>
            									<li <?php if (!$_smarty_tpl->tpl_vars['filter']->value) {?>class="active"<?php }?>>
            										<a href='<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'FeedbacksAdmin','type'=>null),$_smarty_tpl ) );?>
'>Все группы</a>
            									</li>
            									<li <?php if ($_smarty_tpl->tpl_vars['filter']->value == 'contact') {?>class="active"<?php }?>>
            										<a href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'FeedbacksAdmin','type'=>'contact'),$_smarty_tpl ) );?>
">Обратная связь</a>
            									</li>
            									<li <?php if ($_smarty_tpl->tpl_vars['filter']->value == 'callback') {?>class="active"<?php }?>>
            										<a href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'FeedbacksAdmin','type'=>'callback'),$_smarty_tpl ) );?>
">Обратный звонок</a>
            									</li>
            									<li <?php if ($_smarty_tpl->tpl_vars['filter']->value == 'lowprice') {?>class="active"<?php }?>>
            										<a href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'FeedbacksAdmin','type'=>'lowprice'),$_smarty_tpl ) );?>
">Нашли дешевле</a>
            									</li>
            								</ul>
            								<ul class="link-check">
            									<li><span>Сортировать</span></li>
            									<li <?php if ($_smarty_tpl->tpl_vars['sort']->value == 'date') {?>class="active"<?php }?>>
            										<a href='<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'FeedbacksAdmin','sort'=>'added'),$_smarty_tpl ) );?>
'>По дате</a>
            									</li>
            									<li <?php if ($_smarty_tpl->tpl_vars['sort']->value == 'name') {?>class="active"<?php }?>>
            										<a href='<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'FeedbacksAdmin','sort'=>'name'),$_smarty_tpl ) );?>
'>По имени</a>
            									</li>
            								</ul>
            							</div>
            						</div>
            					</li>

            				</ul>
            			</div>

            			            			<?php if ($_smarty_tpl->tpl_vars['feedbacks']->value || $_smarty_tpl->tpl_vars['keyword']->value) {?>
            			<div class="card-search search-wrap" data-search="search">
            				<div class="search-content">
            					<a href="#" class="search-back btn btn-icon toggle-search" data-target="search">
            						<em class="icon ti ti-arrow-left"></em>
            					</a>
            					<form class="js-list-search" method="get">
            						<input type="hidden" name="module" value="FeedbacksAdmin">
            						<input type="text" name="keyword" value="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['keyword']->value, ENT_QUOTES, 'UTF-8', true);?>
" class="form-control border-transparent form-focus-none" placeholder="Поиск по имени, телефону, email или содержанию..">
            						<button class="search-submit btn btn-icon"><em class="icon ti ti-search"></em></button>
            					</form>
            				</div>
            			</div>
                		<?php }?>

            		</div>
            	</div>

            	                <?php if ($_smarty_tpl->tpl_vars['feedbacks']->value) {?>
                <form class="js-list-form" method="post">
                    <div class="card-inner p-0">

                                                <div class="nk-tb-list nk-tb-ulist">
                            <div class="nk-tb-item nk-tb-head">

                                                                <div class="nk-tb-col nk-tb-col-check">
                                    <div class="custom-control custom-control-sm custom-checkbox notext">
                                        <input type="checkbox" class="custom-control-input js-check-all" id="checkall">
                                        <label class="custom-control-label" for="checkall"></label>
                                    </div>
                                </div>

                                <div class="nk-tb-col">
                                    <span class="sub-text">Заявка</span>
                                </div>
                                <div class="nk-tb-col tb-col-md">
                                    <span class="sub-text">Контактные данные</span>
                                </div>
                                <div class="nk-tb-col tb-col-xxl w-440px">
                                    <span class="sub-text">Сообщение</span>
                                </div>

                                <div class="nk-tb-col nk-tb-col-tools text-right">Действие</div>
                            </div>
                        </div>

                                                <div class="nk-tb-list nk-tb-ulist js-list">

                                                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['feedbacks']->value, 'feedback');
$_smarty_tpl->tpl_vars['feedback']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['feedback']->value) {
$_smarty_tpl->tpl_vars['feedback']->do_else = false;
?>
                            <div class="nk-tb-item js-list-item feedback-item <?php if (!$_smarty_tpl->tpl_vars['feedback']->value->visible) {?>invisible<?php }?>">

                                                                <div class="nk-tb-col nk-tb-col-check">
                                    <div class="custom-control custom-control-sm custom-checkbox notext">
                                        <input type="checkbox" name="check[]" value="<?php echo $_smarty_tpl->tpl_vars['feedback']->value->id;?>
" class="custom-control-input" id="uid_<?php echo $_smarty_tpl->tpl_vars['feedback']->value->id;?>
">
                                        <label class="custom-control-label" for="uid_<?php echo $_smarty_tpl->tpl_vars['feedback']->value->id;?>
"></label>
                                    </div>
                                </div>

                                                                <div class="nk-tb-col">
                                    <div class="user-card">
                                        <div class="user-info">

                                                                                        <span class="tb-lead text-primary">
                                                Заявка №<?php echo $_smarty_tpl->tpl_vars['feedback']->value->id;?>

                                            </span>

                                                                                        <span class="sub-text">
                                                Дата: <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'date' ][ 0 ], array( $_smarty_tpl->tpl_vars['feedback']->value->date ));?>
 в <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'time' ][ 0 ], array( $_smarty_tpl->tpl_vars['feedback']->value->date ));?>

                                            </span>

                                                                                        <span class="sub-text ff-italic">IP: <?php echo $_smarty_tpl->tpl_vars['feedback']->value->ip;?>
</span>

                                                                                        <span class="badge badge-dim badge-feedback-<?php echo $_smarty_tpl->tpl_vars['feedback']->value->type;?>
">
                                                <?php if ($_smarty_tpl->tpl_vars['feedback']->value->type == "contact") {?>Обратная связь<?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['feedback']->value->type == "callback") {?>Обратный звонок<?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['feedback']->value->type == "lowprice") {?>Нашли дешевле<?php }?>
                                            </span>
                                        </div>
                                    </div>
                                </div>

                                                                <div class="nk-tb-col">
                                	<span class="sub-text">
                                        <?php if ($_smarty_tpl->tpl_vars['feedback']->value->name) {?>
                                        <span class="tb-lead">
                                        	Имя:
                                        	<span class="text-reset fw-normal"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['feedback']->value->name, ENT_QUOTES, 'UTF-8', true);?>
</span>
                                        </span>
                                        <?php }?>

                                        <?php if ($_smarty_tpl->tpl_vars['feedback']->value->email) {?>
                                    	<span class="tb-lead">
                                    		Email:
                                    		<span class="text-reset fw-normal">
                                    			<a href="mailto:<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['feedback']->value->email, ENT_QUOTES, 'UTF-8', true);?>
?subject=<?php echo $_smarty_tpl->tpl_vars['settings']->value->site_name;?>
" data-toggle="tooltip" data-placement="top" data-original-title="Написать email"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['feedback']->value->email, ENT_QUOTES, 'UTF-8', true);?>
</a>
                                    		</span>
                                    	</span>
                                    	<?php }?>

                                    	<?php if ($_smarty_tpl->tpl_vars['feedback']->value->phone) {?>
                                    	<span class="tb-lead">
                                    		Телефон:
                                    		<span class="text-reset fw-normal">
                                    			<a href="tel:<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['feedback']->value->phone, ENT_QUOTES, 'UTF-8', true);?>
" data-toggle="tooltip" data-placement="top" data-original-title="Позвонить"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['feedback']->value->phone, ENT_QUOTES, 'UTF-8', true);?>
</a>
                                    		</span>
                                    	</span>
                                    	<?php }?>
                                    </span>
                                </div>

                                                                <div class="nk-tb-col tb-col-xxl w-440px">

                                    <?php if ($_smarty_tpl->tpl_vars['feedback']->value->message) {?>
                                    <span class="sub-text mb-2">
                                        <span class="tb-lead">Сообщение:</span>
                                    	<p><?php echo nl2br((string) htmlspecialchars((string)$_smarty_tpl->tpl_vars['feedback']->value->message, ENT_QUOTES, 'UTF-8', true), (bool) 1);?>
</p>
                                    </span>
                                    <?php }?>

                                    <?php if ($_smarty_tpl->tpl_vars['feedback']->value->url) {?>
                                    <span class="sub-text <?php if ($_smarty_tpl->tpl_vars['feedback']->value->type == "lowprice" && $_smarty_tpl->tpl_vars['feedback']->value->link) {?>mb-2<?php }?>">
                                        <span class="tb-lead">Отправлено со страницы:</span>
                                        <span class="text-reset fw-normal">
                                            <a href="<?php echo $_smarty_tpl->tpl_vars['feedback']->value->url;?>
" target="_blank" data-toggle="tooltip" data-placement="top" data-original-title="Перейти"><?php echo $_smarty_tpl->tpl_vars['feedback']->value->url;?>
</a>
                                        </span>
                                    </span>
                                    <?php }?>

                                    <?php if ($_smarty_tpl->tpl_vars['feedback']->value->type == "lowprice" && $_smarty_tpl->tpl_vars['feedback']->value->link) {?>
                                    <span class="sub-text">
                                        <span class="tb-lead">Ссылка на товар другого магазина:</span>
                                        <span class="text-reset fw-normal">
                                            <a href="<?php echo $_smarty_tpl->tpl_vars['feedback']->value->link;?>
" target="_blank" data-toggle="tooltip" data-placement="top" data-original-title="Перейти"><?php echo $_smarty_tpl->tpl_vars['feedback']->value->link;?>
</a>
                                        </span>
                                    </span>
                                    <?php }?>

                                </div>

                                                                <div class="nk-tb-col nk-tb-col-tools">
                                    <ul class="nk-tb-actions gx-1">

                                                                                <li>
                                            <button type="button" class="btn btn-trigger btn-icon js-list-mark" data-mark-object="feedback" data-mark-type="visible" data-mark-toogle-class="invisible" data-toggle="tooltip" data-placement="top" data-original-title="Обработка">
                                                <em class="icon ti ti-circle"></em>
                                            </button>
                                        </li>

                                                                                <li>
                                            <button type="button" class="btn btn-trigger btn-icon text-danger js-list-delete" data-toggle="tooltip" data-placement="top" title="Удалить">
                                                <em class="icon ti ti-trash"></em>
                                            </button>
                                        </li>

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

                        </div>
                    </div>

                                        <div class="card-inner js-list-footer card-inner-footer-fixed">
                        <div class="nk-block-between-md g-3">

                                                        <div class="g">
                                <div class="center form-inline flex-nowrap gx-3">
                                    <div class="form-wrap w-200px">
                                        <select name="action" class="form-select form-select-sm" data-placeholder="Массовые действия">
                                            <option value="">Массовые действия</option>
                                            <option value="disable">Пометить как "Не обработанное"</option>
                                            <option value="enable">Пометить как "Обработанное"</option>
                                            <option value="delete">Удалить</option>
                                        </select>
                                    </div>
                                    <div class="btn-wrap">
                                        <span class="d-none d-md-block">
                                            <button type="submit" class="btn btn-dim btn-outline-light">Применить</button>
                                        </span>
                                        <span class="d-md-none">
                                            <button type="submit" class="btn btn-dim btn-outline-light btn-icon">
                                                <em class="icon ti ti-arrow-right"></em>
                                            </button>
                                        </span>
                                    </div>
                                </div>
                            </div>

                                                        <div class="g">
                                <?php $_smarty_tpl->_subTemplateRender('file:pagination.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('module'=>'FeedbacksAdmin'), 0, false);
?>
                            </div>

                        </div>
                    </div>
                </form>
                <?php } else { ?>
                <div class="card-inner">
                    <div class="nk-tb-item">
                        <p>Заявки не найдены.</p>
                    </div>
                </div>
                <?php }?>
            </div>
        </div>
    </div>

</div>
<?php }
}
