<?php
require_once __DIR__ . '/../../includes/auth.php';
requireLogin();

require_once __DIR__ . '/../../includes/layout.php';
?>

<div class="container">
    <h2>Manual Settlement Upload</h2>

    <div class="card">
        <div class="card-body">

            <form action="process.php" method="POST" enctype="multipart/form-data">

                <div class="form-group">
                    <label for="settlement_file">Upload CSV File</label>
                    <input type="file"
                           name="settlement_file"
                           id="settlement_file"
                           accept=".csv"
                           required
                           class="form-control">
                </div>

                <br>
                <div class="form-group">
    <label>Settlement Period</label>
    <input type="month" name="period" required class="form-control">
</div>

                <button type="submit" class="btn btn-primary">
                    Process Settlement
                </button>

            </form>

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

<?php require_once __DIR__ . '/../../includes/layout_footer.php'; ?>