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

<div class="alert alert-warning" role="alert">
    <span class="glyphicon glyphicon-exclamation-sign login-span"></span> Por favor confirme os seus dados
</div>

<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 class="active"><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 Transferências</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>
<?php echo $this->session->flashdata('erro-cpf'); ?>
<?php echo $this->session->flashdata('erro-celular'); ?>

<div class="container">
    <!-- DADOS PESSOAIS-->
    <?php foreach ($clientes as $cliente) { ?>
            <div class="row">    
                <fieldset class="col-md-9">
                    <?php echo $this->session->flashdata('erro-email'); ?>
                    <?php echo @$erro_form ?> 

                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h2 class="panel-title"><i class="fa fa-user-circle" aria-hidden="true"></i> Dados Pessoais</h2>
                        </div>

                        <div class="panel-body">
                            <form method="POST" action="<?= base_url('confirmacao') ?>" >
                                <div class="row">
                                    <div class="col-lg-8 col-md-8 col-sm-8" style="padding-bottom: 10px;">
                                        <label for="nome"><i class="fa fa-address-book" aria-hidden="true"></i> Nome Completo</label>
                                        <input type="text" class="form-control" id="nome" name="nome" value="<?php echo $cliente->nome ?>" placeholder="Digite o seu nome" required="" readonly="">
                                    </div>

                                    <div class="col-lg-4 col-md-4 col-sm-4" style="padding-bottom: 10px;">
                                        <label for="nome_negocio" data-toggle="tooltip" data-placement="right" title="O nome de negócio é um nome fictício"><i class="fa fa-ravelry" aria-hidden="true" ></i> Nome do Negócio</label>
                                        <input type="text" class="form-control" id="nome" name="nome_negocio" value="<?php echo $cliente->nome_negocio ?>" placeholder="Wildlife Cash do Fernando">
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px;">
                                        <label for="ddd" style="color:black"> <i class="fa fa-phone" aria-hidden="true"></i> DDD</label>
                                        <input type="tel"  name="ddd_celular" class="form-control"  maxlength="2" minlength="2" value="<?php echo $cliente->ddd_celular ?>"  id="ddd_celular" required="" pattern="[0-9]+$" autocomplete="off"> 
                                    </div>
                                    <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px;">
                                        <label for="tel" style="color:black"><i class="fa fa-phone-square" aria-hidden="true"></i> Celular</label>
                                        <input type="tel" maxlength="9" minlength="9" class="form-control" name="celular"  value="<?php echo $cliente->celular ?>"  required=""  pattern="[0-9]+$" autocomplete="off"> 
                                    </div>
                                    <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px;">
                                        <label for="tel" style="color:black"><i class="fa fa-envelope-o" aria-hidden="true"></i> Email</label>
                                        <input type="email"  class="form-control" name="email"  value="<?php echo $cliente->email ?>"  required=""  pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" autocomplete="off"> 
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px; ">
                                        <label for="cep" style="color:black"><i class="fa fa-map-marker" aria-hidden="true"></i>
                                            CEP</label>
                                        <input type="tel"  name="cep" class="form-control cep-curso ceps" value="<?php echo $cliente->cep ?>"  name="cep"  required="" pattern="\d{5}-\d{3}" autocomplete="off"> 
                                    </div>
                                    <div class="col-lg-8 col-md-8 col-sm-8" style="padding-bottom: 10px; ">
                                        <label for="endereco" style="color:black"><i class="fa fa-map" aria-hidden="true" style="color:black"></i> Endereço</label>
                                        <input type="text" class="form-control"  id="rua" name="endereco" value="<?php echo $cliente->endereco ?>" required="" autocomplete="off">
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px; ">
                                        <label for="numero" style="color:black"><i class="fa fa-sort-numeric-asc" aria-hidden="true"></i>
                                            Número</label>
                                        <input type="tel" name="numero" class="form-control" placeholder="Digite o seu número" value="<?php echo $cliente->numero ?>"  required="" pattern="[0-9]+$" autocomplete="off"> 
                                    </div>
                                    <div class="col-lg-4 col-md-4 col-sm-4" style="padding-bottom: 10px; ">
                                        <label for="complemento" style="color:black"><i class="fa fa-comments" aria-hidden="true"></i>
                                            Complemento</label>
                                        <input type="text"  placeholder="Digite o seu complemento"class="form-control" name="complemento"  value="<?php echo $cliente->complemento ?>" autocomplete="off"> 
                                    </div>
                                    <div class="col-lg-5 col-md-5 col-sm-5" style="padding-bottom: 10px; ">
                                        <label for="bairro" style="color:black"><i class="fa fa-globe" aria-hidden="true"></i> Bairro</label>
                                        <input type="text"   class="form-control" name="bairro"  id="bairro"  value="<?php echo $cliente->bairro ?>"  required="" autocomplete="off"> 
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px; ">
                                        <label for="cidade" style="color:black"><i class="fa fa-building" aria-hidden="true"></i>
                                            Cidade</label>
                                        <input type="text" name="cidade" class="form-control" value="<?php echo $cliente->cidade ?>"  required=""  id="cidade" required="" autocomplete="off"> 
                                    </div>
                                    <div class="col-lg-4 col-md-4 col-sm-4" style="padding-bottom: 10px; ">
                                        <label for="estado" style="color:black"><i class="fa fa-globe" aria-hidden="true"></i> Estado</label>
                                        <input type="text" class="form-control" name="estado" id="uf" value="<?php echo $cliente->estado ?>"  required="" autocomplete="off"> 
                                    </div>

                                </div>
                                <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> Confirmar</button>
                            </form>
                        </div>
                    </div>
                </fieldset>
            <?php } ?>     
            <!-- FIM DOS DADOS PESSOAIS--> 
        </div>
</div>
<?php $this->load->view('commons/rodape'); ?>

