<?php
/* Smarty version 4.1.1, created on 2022-09-26 14:29:33
  from '/home/hanzel/public_html/igsdev.net/authserver/Templates/white/admin/users.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.1.1',
  'unifunc' => 'content_6331e17db921a0_20126933',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '39352743adf80b1544c4cd8e4f4410f121ef1b21' => 
    array (
      0 => '/home/hanzel/public_html/igsdev.net/authserver/Templates/white/admin/users.tpl',
      1 => 1664213370,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6331e17db921a0_20126933 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_16262451066331e17db8ce86_11092848', 'main');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, "layout/layout.tpl");
}
/* {block 'main'} */
class Block_16262451066331e17db8ce86_11092848 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'main' => 
  array (
    0 => 'Block_16262451066331e17db8ce86_11092848',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

    <div class="slim-mainpanel">
      <div class="container">
        <div class="slim-pageheader">
          <ol class="breadcrumb slim-breadcrumb">
            <li class="breadcrumb-item"><a href="#">Admin</a></li>
            <li class="breadcrumb-item"><a href="#">Users</a></li>
            <li class="breadcrumb-item active" aria-current="page">List</li>
          </ol>
          <h6 class="slim-pagetitle">USERS</h6>
        </div>
        <div class="section-wrapper">
          <?php if ($_smarty_tpl->tpl_vars['msg']->value) {?>
          <div class="alert alert-success mg-b-0" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
            <strong>[SUCCESS]</strong> <?php echo $_smarty_tpl->tpl_vars['msg']->value;?>

          </div><br>
          <?php }?>    
          <div class="table-wrapper">
            <table id="datatable1" class="table display responsive nowrap">
              <thead>
                <tr>
                  <th class="wd-15p">UserID</th>
                  <th class="wd-20p">Username</th>
                  <th class="wd-20p">Email</th>
                  <th class="wd-20p">Nivel</th>
                  <th class="wd-20p">Status</th>
                  <th class="wd-25p">Criada</th>
                  <th class="wd-20p">Action</th>
                </tr>
              </thead>
              <tbody>
                 <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['users']->value, 'k', false, 'i');
$_smarty_tpl->tpl_vars['k']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['k']->value) {
$_smarty_tpl->tpl_vars['k']->do_else = false;
?>
                <tr>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Id'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Name'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Mail'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Nivel'] === 1 ? 'Cliente' : 'Administrador';?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Status'] === 1 ? 'Ativada' : 'Desativada';?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Date_Create'];?>
</td>
                  <td><div class="dropdown">
                  <button style="height:30px;width:92px;padding:0px 13px;font-size:13px;" class="btn btn-oblong btn-primary bd-0 dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Gerenciar</button>
                  <div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; transform: translate3d(0px, 42px, 0px); top: 0px; left: 0px; will-change: transform;">
                  <a class="dropdown-item" href="<?php echo base_url();?>
/admin/user/edit/<?php echo $_smarty_tpl->tpl_vars['k']->value['Id'];?>
">Editar</a>
                  <a onclick="return confirm('Tem certeza que deseja deletar <?php echo $_smarty_tpl->tpl_vars['k']->value['Name'];?>
?')" class="dropdown-item" href="<?php echo base_url();?>
/admin/user/delete/<?php echo $_smarty_tpl->tpl_vars['k']->value['Id'];?>
">Deletar</a>
                  </div><!-- dropdown-menu -->
                 </div></td>
                </tr>
               <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
              </tbody>
            </table>
          </div><!-- table-wrapper -->
        </div><!-- section-wrapper -->
      </div><!-- container -->
    </div><!-- slim-mainpanel -->
    <?php
}
}
/* {/block 'main'} */
}
