<?php
/* Smarty version 4.1.1, created on 2022-07-03 19:01:32
  from 'C:\xampp\htdocs\app\Views\Templates\default\admin\licenses.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.1.1',
  'unifunc' => 'content_62c22ddc32d7f5_02553644',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c3364c5b48e2693f0e384d3c40c4f5289d5f2b5c' => 
    array (
      0 => 'C:\\xampp\\htdocs\\app\\Views\\Templates\\default\\admin\\licenses.tpl',
      1 => 1656882208,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_62c22ddc32d7f5_02553644 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_68775377162c22ddba00218_02708101', 'main');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, "layout/layout.tpl");
}
/* {block 'main'} */
class Block_68775377162c22ddba00218_02708101 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'main' => 
  array (
    0 => 'Block_68775377162c22ddba00218_02708101',
  ),
);
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="#">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">
        
          <div class="table-wrapper">
            <table id="datatable1" class="table display responsive nowrap">
              <thead>
                <tr>
                  <th class="wd-15p">UserID</th>
                  <th class="wd-15p">IP</th>
                  <th class="wd-20p">HardwareID</th>
                  <th class="wd-15p">Status</th>
                  <th class="wd-10p">Update</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>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['UserID'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Information1'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Information2'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['Status'] === 1 ? 'Ativada' : 'Desativada';?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['k']->value['PackageIndex'];?>
</td>
                  <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><a href="/admin/license/edit/<?php echo $_smarty_tpl->tpl_vars['k']->value['UserID'];?>
" class="btn btn-success">Editar</button></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'} */
}
