<?php include 'db.php'; ?>
<!DOCTYPE html>
<html>
<head>
    <title>Monthly Payment Summary</title>
</head>
<body>
    <h2>Monthly Payment Summary</h2>
    <form method="get" action="payment_summary_pdf.php" target="_blank">
        Select Month: 
        <input type="month" name="month" value="<?= date('Y-m') ?>" required>
        <button type="submit">Export PDF</button>
    </form>
    <br>
    <a href="payment_list.php">Back to Payment Logs</a> | <a href="index.php">Employee List</a>
</body>
</html>