<?php
/* Smarty version 3.1.38, created on 2025-08-12 22:33:30
  from '/home/u239538903/domains/devigris.xyz/public_html/templates/pages/admin/admin.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.38',
  'unifunc' => 'content_689beb6a0d3d84_15691339',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '367369e0c90ff0176c576760cfdeb158f7b57b4d' => 
    array (
      0 => '/home/u239538903/domains/devigris.xyz/public_html/templates/pages/admin/admin.tpl',
      1 => 1755048808,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:core/header.tpl' => 1,
    'file:core/footer.tpl' => 1,
  ),
),false)) {
function content_689beb6a0d3d84_15691339 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_subTemplateRender('file:core/header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<div class="app-main__inner">
	<div class="app-page-title app-page-title-simple">
		<div class="page-title-wrapper">
			<div class="page-title-heading">
				<div>
				<div class="page-title-head center-elem">
					<span class="d-inline-block pr-2">
						<i class="fas fa-crown opacity-6"></i>
					</span>
					<span class="d-inline-block"><?php echo $_smarty_tpl->tpl_vars['pagename']->value;?>
</span>
				</div>
				<div class="page-title-subheading opacity-10">
					<nav class="" aria-label="breadcrumb">
						<ol class="breadcrumb">
							<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['breadcrumbs']->value, 'breadcrumb');
$_smarty_tpl->tpl_vars['breadcrumb']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['breadcrumb']->value) {
$_smarty_tpl->tpl_vars['breadcrumb']->do_else = false;
?>
								<?php if ($_smarty_tpl->tpl_vars['breadcrumb']->value['url'] == '') {?>
										<li class="breadcrumb-item active"><a><?php echo $_smarty_tpl->tpl_vars['breadcrumb']->value['caption'];?>
</a></li>
								<?php } else { ?>
										<li class="breadcrumb-item"><a href="<?php echo $_smarty_tpl->tpl_vars['breadcrumb']->value['url'];?>
"><?php echo $_smarty_tpl->tpl_vars['breadcrumb']->value['caption'];?>
</a></li>
								<?php }?>
							<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
						</ol>
					</nav>
				</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<div class="main-card mb-3 card">
				<div class="card-body">
				<a class="btn btn-primary" href="index.php?act=panel" role="button">Painel de Administração</a>
				<a class="btn btn-info" href="index.php?act=logs" role="button">Logs dos usuários</a>
				<a class="btn btn-success" href="index.php?act=logsadmin" role="button">Logs dos admins</a>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<div class="main-card mb-3 card">
				<div class="card-header">Adicionar dias para todos os usuários
				</div>
				<div class="card-body">
				
				<form action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
index.php?act=admin" method="POST">
					<input type="hidden" name="form_dias" />
					<div class="position-relative row form-group">
						<label for="exampleEmail" class="col-sm-2 col-form-label">Quantidade de dias</label>
						<div class="col-sm-10">
							<input size="2" type="number" min="0" max="90" placeholder="Quantidade de dias" name="endate" class="form-control">
						</div>
					</div>
						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Modo</label>
							<div class="col-sm-10">
								<select name="modo" class="form-control">
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['versoes_select']->value, 'versao');
$_smarty_tpl->tpl_vars['versao']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['versao']->value) {
$_smarty_tpl->tpl_vars['versao']->do_else = false;
?>
    <option value="<?php echo $_smarty_tpl->tpl_vars['versao']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['versao']->value;?>
</option>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
							</div>
						</div>
					<div class="d-block text-right card-footer">
						<button type="submit" name="Submit" class="btn btn-primary btn-lg">ADICIONAR DIAS</button>
						
					</div>
				</form>
				</div>
			</div>
		</div>
	</div>


	<div class="row">
		<div class="col-md-12">
			<div class="main-card mb-3 card">
				<div class="card-header"> <Strong Style="Color:red">Remover Logins Expirados</Strong>
				</div>
				<div class="card-body">
				<form action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
index.php?act=admin" method="POST">
					<input type="hidden" name="form_dias2" />
						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Modo</label>
							<div class="col-sm-10">
								<select name="modo" class="form-control">
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['versoes_select']->value, 'versao');
$_smarty_tpl->tpl_vars['versao']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['versao']->value) {
$_smarty_tpl->tpl_vars['versao']->do_else = false;
?>
    <option value="<?php echo $_smarty_tpl->tpl_vars['versao']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['versao']->value;?>
</option>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
							</div>
						</div>
					<div class="d-block text-right card-footer">
						<button type="submit" name="Submit" class="btn btn-primary btn-lg">Remover Expirados</button>
						
					</div>
				</form>
				</div>
			</div>
		</div>
	</div>
	
<div class="row">
    <div class="col-md-12">
        <div class="main-card mb-3 card">
            <div class="card-header">
                <strong style="color:red">Pausar e Despausar Logins</strong>
            </div>
            <div class="card-body">
                <form action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
index.php?act=admin" method="POST" class="form-inline">
                    <!-- Seletor de Modo -->
                    <div class="position-relative row form-group">
                        <label for="exampleEmail" class="col-sm-2 col-form-label">Modo</label>
                        <div class="col-sm-10">
                           <select name="modo" class="form-control" id="modoSelect">
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['versoes_select']->value, 'versao');
$_smarty_tpl->tpl_vars['versao']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['versao']->value) {
$_smarty_tpl->tpl_vars['versao']->do_else = false;
?>
    <option value="<?php echo $_smarty_tpl->tpl_vars['versao']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['versao']->value;?>
</option>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
                        </div>
                    </div>
                    
                    <!-- Seletor de País -->
                    <div class="position-relative row form-group">
                        <label for="paisSelect" class="col-sm-2 col-form-label">País</label>
                        <div class="col-sm-10">
                            <select name="pais" class="form-control" id="paisSelect">
                                <option value="brazil">Brasil (Principal)</option>
                                <option value="outros">Outros (Pausar Todos)</option>
                            </select>
                        </div>
                    </div>
                    
                    <div class="d-block text-right card-footer">
                        <button type="submit" name="pauselkteam" class="btn btn-primary btn-lg">Pausar Logins</button>
                        <button type="submit" name="despauselkteam" class="btn btn-secondary btn-lg">Despausar Logins</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!-- Adicione esta seção antes do fechamento do div principal -->
<div class="row">
    <div class="col-md-12">
        <div class="main-card mb-3 card">
            <div class="card-header">Adicionar Modos</div>
            <div class="card-body">
                <!-- Formulário para adicionar versões -->
                <form action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
index.php?act=admin" method="POST">
                    <input type="hidden" name="form_versao" />
                    <div class="position-relative row form-group">
                        <label for="versaoInput" class="col-sm-2 col-form-label">Modo</label>
                        <div class="col-sm-10">
                            <input type="text" id="versaoInput" placeholder="Digite o modo aqui" name="versao" class="form-control">
                        </div>
                    </div>
                    <div class="d-block text-right card-footer">
                        <button type="submit" name="SubmitVersao" class="btn btn-primary btn-lg">ADICIONAR MODO</button>
                    </div>
                </form>
                
                <!-- Lista de versões cadastradas -->
                <div class="table-responsive">
                    <table class="align-middle mb-0 table table-borderless table-striped table-hover">
                        <thead>
                            <tr>
                                <th class="text-center">ID</th>
                                <th class="text-center">Modo</th>
                                <th class="text-center">Ações</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['versoes']->value, 'versao');
$_smarty_tpl->tpl_vars['versao']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['versao']->value) {
$_smarty_tpl->tpl_vars['versao']->do_else = false;
?>
                            <tr>
                                <td class="text-center"><?php echo $_smarty_tpl->tpl_vars['versao']->value['id'];?>
</td>
                                <td class="text-center"><?php echo $_smarty_tpl->tpl_vars['versao']->value['versao'];?>
</td>
                                <td class="text-center">
                                    <form action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
index.php?act=admin" method="POST" style="display: inline;">
                                        <input type="hidden" name="delete_versao" value="<?php echo $_smarty_tpl->tpl_vars['versao']->value['id'];?>
" />
                                        <button type="submit" class="btn btn-danger btn-sm">Excluir</button>
                                    </form>
                                </td>
                            </tr>
                            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<?php $_smarty_tpl->_subTemplateRender('file:core/footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
