<!-- Modal -->
<div class="modal fade" id="editarSaldoModal" tabindex="-1" aria-labelledby="adicionarSaldoModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="editarSaldoModalLabel">Editar Saldo</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Fechar"></button>
      </div>
      <div class="modal-body">
        <!-- Formulário para adicionar saldo -->
        <form method="post" action="<?php echo site_url('usuarios/updateSaldo/'.$user->id); ?>">
        <div class="mb-3">
            <label for="saldo" class="form-label">Valor a editar</label>
            <div class="input-group">
                <span class="input-group-text"><i class="fa-solid fa-dollar-sign"></i></span>
                <input type="text" class="form-control" id="saldo" name="saldo">
            </div>
        </div>
       
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fechar</button>
        <button type="submit" class="btn btn-primary">Salvar</button> 
    </form>
      </div>
    </div>
  </div>
</div>


<!-- Modal -->
<div class="modal fade" id="alterarSenhaModal" tabindex="-1" aria-labelledby="adicionarSaldoModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="editarSaldoModalLabel">Editar Senha</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Fechar"></button>
      </div>
      <div class="modal-body">
        <!-- Formulário para adicionar saldo -->
        <form method="post" action="<?php echo site_url('usuarios/senhaUpdate/'.$user->id); ?>">
        <div class="mb-3">
            <label for="saldo" class="form-label">Nova senha</label>
            <div class="input-group">
                <span class="input-group-text"><i class="fa-solid fa-key"></i></span>
                <input type="text" class="form-control" id="senha" name="senha">
            </div>
        </div>
       
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fechar</button>
        <button type="submit" class="btn btn-primary">Salvar</button> 
    </form>
      </div>
    </div>
  </div>
</div>


<!-- Modal -->
<div class="modal fade" id="ganhoModal" tabindex="-1" aria-labelledby="ganhoModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="editarSaldoModalLabel"><i class="fa-solid fa-gamepad"></i> Manipular Jogo</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Fechar"></button>
      </div>
      <div class="modal-body">
        <!-- Formulário para adicionar saldo -->
        <p>Aqui você pode criar sessão de vitoria nos jogos ex: dar vitoria para alguém</p>
        <form method="post" action="<?php echo site_url('usuarios/rtp/'.$user->id); ?>">
        <div class="mb-3">
            <label for="saldo" class="form-label">Jogo</label>
            <div class="input-group">
                <select class="form-select" data-show-subtext="true" data-live-search="true" id="game_code" name="game_code" >
                            <?php foreach ($resultados as $row): ?>
                                <option value="<?= $row->game_code ?>"><?= $row->game_name ?></option>
                            <?php endforeach; ?>
                </select>
            </div>
        </div>
        <div class="mb-3">
            <label for="saldo" class="form-label">Ganho</label>
            <div class="input-group">
                <span class="input-group-text"><i class="fa-solid fa-dollar-sign"></i></span>
                <input type="number" class="form-control" id="call_rtp" name="call_rtp">
            </div>
        </div>
       
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fechar</button>
        <button type="submit" class="btn btn-primary">Salvar</button> 
    </form>
      </div>
    </div>
  </div>
</div>