<?php require_once "Views/templates/header.php";?>
<!-- Begin Page Content -->
    <div class="container-fluid">

<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
    <h1 class="h3 mb-0 text-gray-800">Opciones Avanzadas</h1>
    
</div>
<div class="d-sm-flex align-items-center justify-content-between mb-4">
    <h2 class="h4 mb-0 text-gray-800">Facturas en Estado Pendiente</h2>    
</div>
<div class="d-sm-flex align-items-center justify-content-between mb-4">
    <form method="POST" id="frmEventosTerminados">
    <div class="form-group">
    <input type="hidden" name="id_evento" id="id_evento" value="0">
            
    <label for="codigoRecepcion" class="col-form-label">Codigo de Recepcion:</label>
        <select name="codigoRecepcion" id="codigoRecepcion" class="form-control">
            <?php foreach($data['validaciones'] as $r){ ?>
                <option value="<?=$r['codigoRecepcion']?>"><?=$r['codigoRecepcion'] ?></option>
            <?php } ?>
            
        </select>
        <div class="input-group-append">
        <button class="btn btn-outline-secondary" type="button" onclick="buscarFaturasP()"><i class="fas fa-search"></i></button>
            
        </div>
    </div>
        
        
    </form>
    
</div>


<br>
<table class="table" id="tblPedidosSCP">
    <thead class="thead-dark">
        <tr>
            <th>Nro.</th>
            <th>Fecha</th>
            <th>Razon social</th>
            <th>NIT/CI</th>
            <th>Email</th>
            <th>Total</th>
            <th>Descuento</th>
            <th>Estado</th>
            <th></th>
        </tr>
    </thead>
</table>


</div>
<!-- /.container-fluid -->
<div class="modal-footer">
        <button type="submit" class="btn btn-primary" onclick="comprobarEstado(event);" id="btnAccion">Comprobar Estado</button>
      </div>
</div>

<?php require_once "Views/templates/footer.php";?>
<script src="<?= base_url?>Assets/js/facturacion.js"></script>