
<!--Cabecalho -->
<?php $this->load->view('commons/cabecalho'); ?>
<!--Header -->
<?php $this->load->view('commons/header'); ?>


<?php echo $this->session->flashdata('erro-saldo'); ?>
<?php echo $this->session->flashdata('erro-id'); ?>
<?php echo $this->session->flashdata('erro-limite'); ?>

<div id="containers" style="height: auto; min-height: 80%;">
<div class="col-md-3" >
    <div class="box box-solid">
        <div class="box-header with-border">
            <h3 class="box-title">Menu</h3>

        </div>
        <div class="box-body no-padding">
            <ul class="nav nav-pills nav-stacked">
                <li><a href="<?php echo base_url('saldo'); ?>"><i class="fa fa-usd" aria-hidden="true"></i> Saldo</a></li>
                <li><a href="<?php echo base_url('adicionarsaldo'); ?>"><i class="fa fa-plus-square" aria-hidden="true"></i>Adicionar Saldo</a></li>
                <li><a href="<?php echo base_url('transferencia'); ?>"><i class="fa fa-money" aria-hidden="true"></i>Realizar Transferência</a></li>
                <li><a href="<?php echo base_url('extrato'); ?>"><i class="fa fa-bar-chart" aria-hidden="true"></i> Minhas Transações</a></li>
                <li><a href="<?= base_url('termo') ?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i>Termo de Uso</a></li>
                <li><a href="<?= base_url('logout') ?>"><i  class="fa fa-sign-out"></i>Sair</a></li>
            </ul>
        </div>
    </div>
</div>

<div class="container">
<div class="col-md-9">
    <?php echo validation_errors(); ?> 
    <?php echo $this->session->flashdata('erro-id-2'); ?>

    <div class="panel panel-primary">
        <div class="panel-heading">
            <h2 class="panel-title"><i class="fa fa-money" aria-hidden="true"></i> Realizar Transferência</h2>
        </div>
        <div class="panel-body">
            
            <form method="POST" action="<?= base_url('realizartransferencia') ?>" >
                <label for="idnegocio">ID de Negócio (Conta-Destino)</label>
                <input type="text" class="form-control" autofocus=""id="idnegocio" name="idnegocio" value="" placeholder="Digite o ID de Negócio da conta-destino. Somente números" autocomplete="off"  OnKeyPress="formatar('####-####', this)" maxlength="9"> 
                <br>
                <label for="valor">Saldo</label>
                <input type="tel" class="form-control valor" id="valor" name="valor" value="" placeholder="Digite o valor que você deseja transferir. Exemplo: 1,00" autocomplete="off" pattern="[0-9]{1,3}+$"> 
                <hr>
            <button  class="btn btn btn-primary" data-loading-text="<i class='fa fa-spinner fa-spin '></i> Aguarde " autocomplete="off"><i class="fa fa-check-circle"></i> Realizar Transferência</button>
            </form>    
        </div>
    </div>
            
<!--
  <div class="panel panel-primary">
      <div class="panel-heading"></div>
      <div class="panel-body">
          <ul class="list-inline">
              <li><i class="fa fa-certificate fa-2x" aria-hidden="true" style="color: #f1af08;"></i></li>
              <?php foreach ($saldos as $saldo) { ?>
              <li><p style="font-size: 20pt;">Você ganha <?php echo $saldo->bonificacao ?>% de bonificação por cada transferência realizada  </p></li>
              <?php } ?>
          </ul>
      </div>
    </div>-->
    <div class="box box-success alert-deslize">
    <div class="box-header with-border">
        <p class="box-title" style="font-size: 12px;"> Você pode transferir saldo a partir de: <strong> R$ 1,00</strong></p>

        <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool btn-alert-deslize" data-widget="remove"><i class="fa fa-times"></i></button>
        </div>
        <!-- /.box-tools -->
    </div>

</div>
</div>
</div>
</div>
<?php $this->load->view('commons/rodape'); ?>
</body>
</html>

