<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Reporte de Ventas</title>
    <link rel="stylesheet" href="css/reporte-ventas.css">
</head>
<body>
    <h1>Reporte de Ventas</h1>
    
    <form id="formReporte">
        <label for="fecha_inicio">Desde:</label>
        <input type="date" id="fecha_inicio" name="fecha_inicio" required>

        <label for="fecha_fin">Hasta:</label>
        <input type="date" id="fecha_fin" name="fecha_fin" required>

        <button type="submit">Generar Reporte</button>
        <button onclick="window.print();">Imprimir Reporte</button>
        <a href="inicio.html">
            <button type="button" class="regresar-btn">Regresar</button>
          </a>
    </form>

    <h2>Resultados:</h2>
    <table id="tablaReporte">
        <thead>
            <tr>
                <th>Fecha de Venta</th>
                <th>Evento</th>
                <th>Lugar</th>
                <th>Asiento</th>
                <th>Precio</th>
            </tr>
        </thead>
        <tbody id="resultados">
            <tr><td colspan="5">No hay datos disponibles.</td></tr>
        </tbody>
    </table>
    
    
    <script src="js/reporte-ventas.js"></script>
</body>
</html>