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

<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 class="active"><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">
        <div class="panel panel-primary">
            <div class="panel-heading"><h2 class="panel-title"><i class="fa fa-money" aria-hidden="true"></i>  Confirmação de Transferência</h2></div>
            <div class="panel-body">
                <ul class="list-inline">
                   
                    <li><p class="saldo">Conta Destino</p></li>
                     <hr>
                   
                    <?php foreach ($contas as $contadestino) { ?>
                        <li><p class="saldo">Nome:</p></li>
                        <li><p class="saldo"><?php echo $contadestino->nome . '.' ?></p></li>
                        <li><p class="saldo">ID de Negócio:</p></li>
                        <li><p class="id_negocio2"><?php echo $contadestino->id_negocio ?></p></li>

                    <?php } ?>
                    <br>
                    <li><p class="saldo">Valor a ser transferido:</p></li>
                    <li><p class="dinheiro2">R$ <?php echo number_format($valor, 2, ',', '.');  ?></p></li>
                    <hr>
                    <ul class="list-inline">
                    <li><a href="<?= base_url('transferencia') ?>" class="btn-group  btn btn-danger scroll" type="text">&nbsp;<i class="fa fa-times" aria-hidden="true"></i>&nbsp;Cancelar&nbsp;</a></li>                
                    <li><a href="<?= base_url('confirmatransferencia') ?>"  class="btn btn btn-primary" data-loading-text="<i class='fa fa-spinner fa-spin '></i> Aguarde " autocomplete="off">&nbsp;<i class="fa fa-check-circle"></i> Confirmar&nbsp;</a></li>
                    </ul>
                </ul>
            </div>
        </div>
    </div>
</div>
<br><br>
<?php $this->load->view('commons/rodape'); ?>

