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

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_670feaa0a99222_66709590',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '9e147ea7dbf6f1bcae1978b30604a7869edfc9e7' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/comments.tpl',
      1 => 1716650267,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:pagination.tpl' => 1,
  ),
),false)) {
function content_670feaa0a99222_66709590 (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['comments_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['comments_count']->value,'нашелся','нашлось','нашлись' ));?>
 <?php echo $_smarty_tpl->tpl_vars['comments_count']->value;?>
 <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'plural' ][ 0 ], array( $_smarty_tpl->tpl_vars['comments_count']->value,'комментарий','комментариев','комментария' ));?>

            					<?php } elseif ($_smarty_tpl->tpl_vars['comments_count']->value) {?>
                                    <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'plural' ][ 0 ], array( $_smarty_tpl->tpl_vars['comments_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['comments']->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 }?>


            				</ul>
            			</div>

            			            			<?php if ($_smarty_tpl->tpl_vars['comments']->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="CommentsAdmin">
            						<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['comments']->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">Email</span>
                                </div>
                                <div class="nk-tb-col tb-col-lg">
                                    <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 is-compact js-list">

                                                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['comments']->value, 'comment');
$_smarty_tpl->tpl_vars['comment']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['comment']->value) {
$_smarty_tpl->tpl_vars['comment']->do_else = false;
?>
                            <div class="nk-tb-item js-list-item comment-item <?php if (!$_smarty_tpl->tpl_vars['comment']->value->approved) {?>approved<?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['comment']->value->id;?>
" class="custom-control-input" id="uid_<?php echo $_smarty_tpl->tpl_vars['comment']->value->id;?>
">
                                        <label class="custom-control-label" for="uid_<?php echo $_smarty_tpl->tpl_vars['comment']->value->id;?>
"></label>
                                    </div>
                                </div>

                                                                <div class="nk-tb-col">
                                    <a href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'CommentAdmin','id'=>$_smarty_tpl->tpl_vars['comment']->value->id,'return'=>$_SERVER['REQUEST_URI']),$_smarty_tpl ) );?>
">
                                        <span class="tb-lead">
                                            <?php echo $_smarty_tpl->tpl_vars['comment']->value->name;?>

                                        </span>
                                    </a>
                                </div>

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

                                        </a>
                                        <?php } else { ?>
                                        <span class="sub-text">
                                            <?php echo 'No value';?>

                                        </span>
                                        <?php }?>
                                    </span>
                                </div>

                                                                <div class="nk-tb-col tb-col-lg">
                                    <span class="sub-text">
                                    	<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'date' ][ 0 ], array( $_smarty_tpl->tpl_vars['comment']->value->date ));?>

                                    </span>
                                </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="comment" data-mark-type="approved" data-mark-toogle-class="approved" data-toggle="tooltip" data-placement="top" data-original-title="Активность">
                                                <em class="icon ti ti-eye"></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="approve">Сделать видимыми</option>
                                            <option value="unapprove">Сделать невидимыми</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'=>'CommentsAdmin'), 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 }
}
