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


<?php echo @$erro_form ?>
<div id="containers" class="cadastro-form"style="height: auto; min-height: 80%;">
    <h1 style="margin-left: 1%"> <i class="fa fa-check-circle" aria-hidden="true"></i> Crie a sua conta</h1>
    <?php echo $this->session->flashdata('erro-cpf'); ?>
    <?php echo $this->session->flashdata('erro-email'); ?>
    <?php echo $this->session->flashdata('erro-cpf-valida'); ?>
    <?php echo $this->session->flashdata('falhageral'); ?>
    <?php echo $this->session->flashdata('maximatentativa'); ?>
    

    <div class="col-sm-12" style="margin-left: 1%">
        <div class="row">

            <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('cadastros') ?>" >
                        <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 $amazonia['nome'] ?>" placeholder="Digite o seu nome" required="" autocomplete="off">

                            </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="left" 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 set_value('nome_negocio') ?>" placeholder="Exemplo: Wildlife Cash do Fernando">
                            </div>
                        </div>
                        <div class="row">
                            <?php if ($amazonia['ddd'] != 0) { ?>
                            <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px;">
                                <label for="ddd_celular" 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 $amazonia['ddd'] ?>"  id="ddd_celular" required="" pattern="[0-9]+$" autocomplete="off" placeholder="Digite o seu DDD"> 
                            </div>
                            <?php } else { ?>
                            <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px;">
                                <label for="ddd_celular" 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=""  id="ddd_celular" required="" pattern="[0-9]+$" autocomplete="off" placeholder="Digite o seu DDD"> 
                            </div>
                            <?php } ?>
                            <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px;">
                                <label for="celular" style="color:black"><i class="fa fa-phone-square" aria-hidden="true"></i> Celular</label>
                                <input type="tel" maxlength="9" minlength="8" class="form-control" name="celular"  value="<?php echo $amazonia['telefone'] ?>"  required=""  pattern="[0-9]+$" autocomplete="off" placeholder="Digite o seu celular"> 
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px;">
                                <label for="email" 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 $amazonia['email'] ?>"  required=""  pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" autocomplete="off" placeholder="Digite o seu email"> 
                            </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 $amazonia['cep'] ?>"  name="cep"  required="" pattern="\d{5}-\d{3}" autocomplete="off" placeholder="Digite o seu CEP"> 
                            </div>
                            <div class="col-lg-3 col-md-3 col-sm-3" style="padding-bottom: 10px; ">
                                <label for="cpf" style="color:black"><i class="fa fa-sort-numeric-asc" aria-hidden="true"></i>
                                    CPF</label>
                                <input type="tel"  name="cpf" class="form-control cpf" value="<?php echo set_value('cpf') ?>"  name="cpf"  required="" pattern="\d{3}\.\d{3}\.\d{3}-\d{2}" autocomplete="off" placeholder="Digite o seu CPF"> 
                            </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 $amazonia['endereco'] ?>" required="" autocomplete="off" placeholder="Digite o seu endereço">
                            </div>
                        </div>
                        <div class="row">
                            <?php if ($amazonia['numero'] != 0) { ?>
                            <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 $amazonia['numero'] ?>"  required="" pattern="[0-9]+$" autocomplete="off"> 
                            </div>
                            <?php } else { ?>
                            <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=""  required="" pattern="[0-9]+$" autocomplete="off"> 
                            </div>
                            <?php } ?>
                            <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 set_value('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 $amazonia['bairro'] ?>"  required="" autocomplete="off" placeholder="Digite o seu bairro"> 
                            </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 $amazonia['cidade'] ?>"  required=""  id="cidade" required="" autocomplete="off" placeholder="Digite a sua cidade"> 
                            </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 $amazonia['estado'] ?>"  required="" autocomplete="off" placeholder="Digite o seu estado"> 
                            </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>
                        <input type="hidden" name="confirma" value="1">
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<br>
<?php $this->load->view('commons/rodape'); ?>

