<?php include "Views/templates/header.php"; ?>

<a class="btn btn-outline-primary mb-2" href="<?php echo base_url; ?>compras"><i class="fas fa-plus"></i></a>
<button class="btn btn-danger mb-2 btn-toolbar-status" disabled type="button" onclick="btnPDF(active_row);"><i class="fas fa-file-pdf"></i></button>
<button class="btn btn-warning mb-2 btn-toolbar-status" disabled type="button" onclick="btnAnular(active_row);"><i class="fas fa-ban"></i></button>

<div class="card">
    <div class="card-body">
        <div class="row">
            <div class="col-md-4">
                <label for="">Desde</label>
                <input class="form-control" id="min" type="date" name="compra_desde">
            </div>
            <div class="col-md-4">
                <label for="">Hasta</label>
                <input class="form-control" id="max" type="date" name="compra_hasta">
            </div>
            <div class="col-md-4">
                <div class="form-group">
                    <label for="my-input">Registros</label><br>
                    <button class="btn btn-primary btn-block" type="button" name="historial_compras" onclick="mostrarTodo(event)">Mostrar Todo</button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="table-responsive">
    <table class="table table-bordered table-hover display responsive nowrap" id="t_compras" style="width: 100%;">
        <thead>
            <tr>
                <th>Id</th>
                <th>Proveedor</th>
                <th>Total</th>
                <th>Fecha</th>
                <th>Hora</th>
                <th>Metodo</th>
                <th>Estado</th>
            </tr>
        </thead>
        <tbody>
        </tbody>
        <tfoot>
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
        </tfoot>
    </table>
</div>
<?php include "Views/templates/footer.php"; ?>