<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <title>Reporte de Ventas por Vendedor</title>
    <style>
        body {
            font-family: sans-serif;
        }
        table {
            width: 100%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid #dddddd;
            text-align: left;
            padding: 8px;
        }
        th {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
    <h1>Reporte de Ventas por Vendedor</h1>
    <table>
        <thead>
            <tr>
                <th>Vendedor</th>
                <th>Nro. de Ventas</th>
                <th>Total Vendido</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($salesBySeller as $sale): ?>
                <tr>
                    <td><?php echo $sale['username']; ?></td>
                    <td><?php echo $sale['sale_count']; ?></td>
                    <td>Q<?php echo $sale['total_sales']; ?></td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</body>
</html>