<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Task Summary</title>
</head>
<body>
    <h1>Task Summary</h1>
    <table border="1">
        <thead>
            <tr>
                <th>Employee</th>
                <th>Number of Tasks</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($summary as $item): ?>
                <tr>
                    <td><?= esc($item['employee']) ?></td>
                    <td><?= esc($item['tasks']) ?></td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</body>
</html>
