<?php

$title = "ventas";
$MODULO = $title;
require_once "../../config/init.php";

?>
<!DOCTYPE html>
<html lang="es">
<head>
    <?php include("head.php"); ?> 
    <title><?= $title ?></title>
    <?php include("styles.php"); ?>
</head>
<body>
    <?php include("navbar.php"); ?>
<div class="container">

    <!-- Tarjeta Filtros -->
    <?php include("body_tienda.php"); ?>

    <!-- FILA Creditos -->
    <div class="row mt-3">
        <div class="col-md-6 mb-3">
            <div class="card shadow-sm card-productos h-100">
                <div class="card-body p-2">

                    <h6 class="mb-2 text-center fw-bold" style="font-size: 14px;">
                        📈 Comprobantes de Venta
                    </h6>

                    <div class="table-responsive compact-table">
                        <table class="table table-sm table-borderless align-middle">
                            <thead>
                                <tr class="bg-light">
                                    <th class="text-start" style="width: 10%;">Fecha</th>
                                    <th class="text-center" style="width: 15%;">Comprobante</th>
                                    <th class="text-center" style="width: 50%;">Nombre/Razón Social</th>
                                    <th class="text-end" style="width: 35%;">Importe</th>
                                </tr>
                            </thead>
                            <tbody id="tablaVentaActivos">
                                <tr><td colspan="3" class="text-center">Cargando...</td></tr>
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
        </div>
    </div>

</div><!-- /container -->
    <!-- Librerías locales -->
    <script src="../../public/assets/js/chart.js"></script>
    <script src="../../public/assets/js/jquery-3.6.0.min.js"></script>
    <script src="../views/scripts/constante.js"></script>
    <script src="../views/scripts/venta.js?v=<?= time() ?>"></script>
</body>
</html>
