<?php
/* Smarty version 3.1.38, created on 2025-07-31 17:46:09
  from '/home/u239538903/domains/devigris.xyz/public_html/Lk/templates/pages/admin/admin.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.38',
  'unifunc' => 'content_688bd611cb3d90_40273841',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '3c77a3c6fb66439b2d51f892e4c98f86024656b4' => 
    array (
      0 => '/home/u239538903/domains/devigris.xyz/public_html/Lk/templates/pages/admin/admin.tpl',
      1 => 1753994057,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:core/header.tpl' => 1,
    'file:core/footer.tpl' => 1,
  ),
),false)) {
function content_688bd611cb3d90_40273841 (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">
							 <option value="injetorMobile">Daemon</option>
								</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">
                                <option value="injetorMobile">Daemon</option>
								</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">
                                <option value="injetorMobile">Daemon</option>
                            </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>

	<div class="row">
		<div class="col-md-12">
			<div class="main-card mb-3 card">
				<div class="card-header">Adicionar Cheats
				</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" />
						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Imagem</label>
							<div class="col-sm-10">
								<input type="text" name="img" placeholder="Link da imagem ex: http://freefire.com/img.png" class="form-control" required>
							</div>
						</div>

						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Jogo</label>
							<div class="col-sm-10">
								<input type="text" name="gamename" placeholder="Nome do jogo" class="form-control" required>
							</div>
						</div>
						
						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Versão</label>
							<div class="col-sm-10">
								<input type="text" name="version" placeholder="1.0.0" class="form-control" required>
							</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">
								<option value="injetorMobile">Daemon</option>
								</select>
							</div>
						</div>

						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Última atualização</label>
							<div class="col-sm-10">
								<input type="text" name="last_update" value="<?php echo $_smarty_tpl->tpl_vars['date']->value;?>
" class="form-control form_datetime" required>
							</div>
						</div>
						
						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Status</label>
							<div class="col-sm-10">
								<select name="status" class="form-control">
									<option value="ON">Online</option>
									<option value="ATT">Manutenção</option>
									<option value="OFF">Offline</option>
								</select>
							</div>
						</div>

						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Tamanho do APK</label>
							<div class="col-sm-10">
								<input type="number" min="0" maxlength="10" name="size" placeholder="12345" class="form-control" required>
							</div>
						</div>
						
						<div class="position-relative row form-group">
							<label for="exampleEmail" class="col-sm-2 col-form-label">Download</label>
							<div class="col-sm-10">
								<input type="text" name="download" placeholder="Caso não ter deixe em branco" class="form-control">
							</div>
						</div>
						
						<div class="d-block text-right card-footer">
							<button type="submit" name="Submit" class="btn btn-primary btn-lg">Adicionar cheat</button>
						</div>
					</form>
					
				</div>
			</div>
			
			<div class="main-card mb-3 card">
				<div class="card-header"> Status do cheat
					<div class="btn-actions-pane-right actions-icon-btn">
						
					</div>
				</div>
				
				<div class="card-body p-2">
					
					<?php if (count($_smarty_tpl->tpl_vars['cheats']->value) > 0) {?>
					<table class="table table-hover">
						<thead class="thead-light">
							<tr>
								<th>Jogo</th>
								<th>Atualização</th>
								<th>Modo</th>
								<th>Versão</th>
								<th>Status</th>
								<th>Tamanho</th>
								<th width="10%">Ações</th>
							</tr>
						</thead>
							
						<tbody>
							<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['cheats']->value, 'cheat');
$_smarty_tpl->tpl_vars['cheat']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['cheat']->value) {
$_smarty_tpl->tpl_vars['cheat']->do_else = false;
?>
							<tr>
								
								<td><img src="<?php echo $_smarty_tpl->tpl_vars['cheat']->value['img'];?>
" class="psctcircle" style="width: 20px;">&nbsp;<?php echo $_smarty_tpl->tpl_vars['cheat']->value['gamename'];?>
</td>
								<td><?php echo $_smarty_tpl->tpl_vars['cheat']->value['update'];?>
</td>
								<td><?php if ($_smarty_tpl->tpl_vars['cheat']->value['mode'] == 'injetorMobile') {?><div class="badge badge-danger">Daemon</div>
								<?php } else { ?><div class="badge badge-pill badge-dark">MACRO</div><?php }?></td>
								<td><?php echo $_smarty_tpl->tpl_vars['cheat']->value['version'];?>
</td>
								<td>
									<?php if ($_smarty_tpl->tpl_vars['cheat']->value['status'] == 'ON') {?>
									<div class="badge badge-pill badge-success">Online</div>
									<?php } elseif ($_smarty_tpl->tpl_vars['cheat']->value['status'] == 'ATT') {?>
									<div class="badge badge-pill badge-warning">Manutenção</div>
									<?php } else { ?>
									<div class="badge badge-pill badge-danger">Offline</div>
									<?php }?>
								</td>
								<td><?php echo $_smarty_tpl->tpl_vars['cheat']->value['size'];?>
</td>
								<td>
									<div class="btn-group">
										<button type="button" class="btn btn-primary">Ações</button>
										<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
											<span class="sr-only">Toggle Dropdown</span>
										</button>
										<div class="dropdown-menu dropdown-menu-right">
											<a class="dropdown-item" href="<?php echo $_smarty_tpl->tpl_vars['script_url']->value;?>
?act=produto&id=<?php echo $_smarty_tpl->tpl_vars['cheat']->value['id'];?>
">
												<i class="fa fa-pen mr-1"></i> Editar
											</a>
											<a class="dropdown-item" href="<?php echo $_smarty_tpl->tpl_vars['script_url']->value;?>
?act=admin&remove=<?php echo $_smarty_tpl->tpl_vars['cheat']->value['id'];?>
" onClick="return confirm('Você deseja realmente remover este cheat?');">
												<i class="fa fa-trash-alt mr-1"></i> Remover
											</a>
										</div>
									</div>
								</td>
							</tr>
							<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
							
						</tbody>
					</table>
					<?php } else { ?>
						<div class="alert alert-success">
							Nenhum produto adicionado
						</div>
					<?php }?>
				</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);
}
}
