<?php
/* Smarty version 4.5.3, created on 2024-10-07 22:21:11
  from '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/managers.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_670434a7be0763_95808628',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c0635ca0760a38a5d2e9e81126dbbb72cd26249b' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/managers.tpl',
      1 => 1716650267,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_670434a7be0763_95808628 (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 class="nk-block-head-content">
    			<div class="toggle-wrap nk-block-tools-toggle">

    				    				<a href="#" class="btn btn-icon btn-trigger toggle-expand mr-n1" data-target="pageMenu">
    					<em class="icon ti ti-menu"></em>
    				</a>

    				    				<div class="toggle-expand-content" data-content="pageMenu">
    					<ul class="nk-block-tools g-3">
    						<li>
    							<a href="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['url'][0], array( array('module'=>'ManagerAdmin'),$_smarty_tpl ) );?>
" class="btn btn-secondary">
    								<em class="icon ti ti-circle-plus"></em>
    								<span>Создать менеджера</span>
    							</a>
    						</li>
    					</ul>
    				</div>
    			</div>
    		</div>
    	</div>
    </div>

        <?php if ($_smarty_tpl->tpl_vars['message_error']->value) {?>
    <div class="pb-2">
    	<div class="alert alert-fill alert-danger alert-icon">
    		<em class="icon ti ti-circle-x"></em>
    		<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['message_error']->value, ENT_QUOTES, 'UTF-8', true);?>
.
    	</div>
    </div>
    <?php }?>

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

                <?php if ($_smarty_tpl->tpl_vars['managers']->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 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['managers']->value, 'm', false, 'key');
$_smarty_tpl->tpl_vars['m']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['m']->value) {
$_smarty_tpl->tpl_vars['m']->do_else = false;
?>
        					<div class="nk-tb-item js-list-item">

                                        						<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 htmlspecialchars((string)$_smarty_tpl->tpl_vars['m']->value->login, ENT_QUOTES, 'UTF-8', true);?>
" class="custom-control-input" id="uid_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['manager']->value->login == $_smarty_tpl->tpl_vars['m']->value->login) {?>disabled<?php }?>>
                                        <label class="custom-control-label" for="uid_<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
"></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'=>'ManagerAdmin','login'=>$_smarty_tpl->tpl_vars['m']->value->login,'return'=>$_SERVER['REQUEST_URI']),$_smarty_tpl ) );?>
">
                                        <span class="tb-lead">
                                            <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['m']->value->login, ENT_QUOTES, 'UTF-8', true);?>

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

                                        						<div class="nk-tb-col tb-col-md">
                                    <div class="w-90">
                                        <p class="fs-13px">
                                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['m']->value->permissions, 'item', true, 'key');
$_smarty_tpl->tpl_vars['item']->iteration = 0;
$_smarty_tpl->tpl_vars['item']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->do_else = false;
$_smarty_tpl->tpl_vars['item']->iteration++;
$_smarty_tpl->tpl_vars['item']->last = $_smarty_tpl->tpl_vars['item']->iteration === $_smarty_tpl->tpl_vars['item']->total;
$__foreach_item_1_saved = $_smarty_tpl->tpl_vars['item'];
echo $_smarty_tpl->tpl_vars['key']->value;
if (!$_smarty_tpl->tpl_vars['item']->last) {?>, <?php }
$_smarty_tpl->tpl_vars['item'] = $__foreach_item_1_saved;
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                        </p>
                                    </div>
        						</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 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="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>
                    </div>
                </form>
                <?php } else { ?>
                <div class="card-inner">
                    <div class="nk-tb-item">
                        <p>Менеджеры не найдены.</p>
                    </div>
                </div>
                <?php }?>
    		</div>
    	</div>
    </div>

</div>
<?php }
}
