<div class="tab-pane active" id="tabdadosbasico" role="tabpanel">
    <div class="p-20">
        <form action="<?php echo base_url(); ?>manutencao/editarPagamento" method="post" name="formeditarPagamento"
              id="formeditarnota"
              class="floating-labels m-t-40">

            <div class="form-body">
                <input type="hidden" id="editarIDPagamento" name="editarIDPagamento" value="<?php echo $pagamento->ID_PAGAMENTO?>">
                <div class="row p-t-20 ">


                    <div class="form-group col-lg-4">
                        <input type="text" class="form-control" id="editarnomeCliente" name="editarnomeCliente"
                               value="<?php echo $pagamento->NM_CLIENTE?>"
                        >
                        <span class="bar"></span>
                        <label for="input1">Nome do Cliente <span style="color: red">*</span>
                            <!--                            <i class="fa fa-search"></i>-->
                        </label>
                    </div>

                    <div class="form-group col-lg-3">
                        <select name="editarFormaPagamento" id="editarFormaPagamento" class="form-control" required>
                            <option value="<?php echo $pagamento->DS_FORMA_PAGAMENTO?>" selected><?php echo $pagamento->DS_FORMA_PAGAMENTO?></option>
                            <option value="Cheques" selected>Cheques</option>
                            <option value="Boleto" >Boleto</option>
                        </select>
                        <span class="bar"></span>
                        <label for="input1">Forma PGTO <span style="color: red">*</span></label>
                    </div>

                    <div class="form-group col-lg-2">
                        <select name="editarSituacaoPagamento" id="editarSituacaoPagamento" class="form-control" required>
                            <option value="<?php echo $pagamento->DS_SITUACAO?>" selected><?php echo $pagamento->DS_SITUACAO?></option>
                            <option value="Pendente" selected>Pendente</option>
                            <option value="Quitado" >Quitado</option>
                        </select>
                        <span class="bar"></span>
                        <label for="input1">Situacao <span style="color: red">*</span></label>
                    </div>

                    <div class="form-group col-lg-3">
                        <input type="date" class="form-control text-center" id="editardataprevisaopgto"
                               name="editardataprevisaopgto"
                               value="<?php echo $pagamento->DT_PAGAMENTO?>"
                        >
                        <span class="bar"></span>
                        <label for="input1">Data PGTO <span style="color: red">*</span></label>
                    </div>

                </div>
                <div class="modal-footer">
                    <a href="<?php echo base_url().'manutencao/listarPagamentos/' ?>" class="btn btn-default"><i
                                class="icon-arrow-left"></i> Voltar</a>

                    <button type="submit" id="btnCadastarManutencao" class="btn btn-warning"><i class="fa fa-save"></i>
                        Editar
                    </button>
                </div>
            </div>

        </form>
    </div>

    <div class="p-20">
        <div class="col-12">
            <div class="card">
                <div class="card-block">
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th width="10">#</th>
                                <th>Pedido</th>
                                <th>Data</th>
                                <th>Cliente</th>
                                <th>Valor R$</th>
                                <th>Produto</th>
                                <th>Vendedor</th>
                                <th width="30">Situação</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($pagamentoComNotas as $r) {?>
                                <tr>
                                    <td><?php echo $r->ID_NOTA ?></td>
                                    <td><?php echo $r->NU_PEDIDO ?></td>
                                    <td><?php echo date('d/m/Y', strtotime($r->DT_NOTA)) ?></td>
                                    <td><?php echo $r->CLIENTE_ID ?></td>
                                    <td><?php echo number_format($r->VL_PEDIDO, 2, ',', '.') ?></td>
                                    <td><?php echo $r->NM_PRODUTO ?></td>
                                    <td><?php echo $r->NM_VENDEDOR ?></td>
                                    <td><?php echo $r->DT_QUITADO ? "Quitado" : "Em Aberto" ?></td>

                                </tr>
                            <?php }?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>