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

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

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

<?php echo '<script'; ?>
 language="Javascript">
function confirmacao(id) {
     var resposta = confirm("Deseja realmente deletar ?");
     if (resposta == true) {
          window.location.href = "remover.php?id="+id;
     }
}
<?php echo '</script'; ?>
>
    <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="#">License</a></li>
            <li class="breadcrumb-item active" aria-current="page">List</li>
          </ol>
          <h6 class="slim-pagetitle">LICENSES</h6>
        </div><!-- slim-pageheader -->

        <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">Name</th>
                  <th class="wd-15p">ID</th>
                  <th class="wd-15p">IP</th>
                  <th class="wd-15p">HardwareID</th>
                  <th class="wd-20p">Status</th>
                  <th class="wd-25p">Version</th>
                  <th class="wd-25p">Expire</th>
                  <th class="wd-25p">Action</th>
                </tr>
              </thead>
              <tbody>
              <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['license']->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>
                  <?php $_smarty_tpl->_assignInScope('user', $_smarty_tpl->tpl_vars['userModel']->value->where('Id',$_smarty_tpl->tpl_vars['k']->value['UserID'])->findAll());?>
                  <td><?php echo $_smarty_tpl->tpl_vars['user']->value[0]['Name'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['LicenseId'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Information1'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Information2'];?>
</td>
                  <?php ob_start();
echo $_smarty_tpl->tpl_vars['k']->value['Status'] === (0);
$_prefixVariable1 = ob_get_clean();
if ($_prefixVariable1) {?><td><button style="height:25px;width:92px;padding:0px 13px;font-size:13px;" class="btn btn-oblong btn-danger active">Suspended</button></td><?php }?>
                  <?php ob_start();
echo $_smarty_tpl->tpl_vars['k']->value['Status'] === (1);
$_prefixVariable2 = ob_get_clean();
if ($_prefixVariable2) {?><td><button style="height:25px;width:66px;padding:0px 13px;font-size:13px;" class="btn btn-oblong btn-success active">Active</button></td><?php }?>
                  <td><?php echo $_smarty_tpl->tpl_vars['plans']->value[$_smarty_tpl->tpl_vars['k']->value['ProductId']];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Expire'];?>
</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/license/edit/<?php echo $_smarty_tpl->tpl_vars['k']->value['LicenseId'];?>
">Editar</a>
                  <a onclick="return confirm('Tem certeza que deseja deletar esta licensa?')" class="dropdown-item" href="<?php echo base_url();?>
/admin/license/delete/<?php echo $_smarty_tpl->tpl_vars['k']->value['LicenseId'];?>
">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'} */
}
