<form method="GET" class="row g-3 mb-3">
    <div class="col-auto">
        <label class="form-label">From</label>
        <input type="date" name="from" class="form-control form-control-sm" value="<?= e($_GET['from'] ?? date('Y-m-01')) ?>">
    </div>
    <div class="col-auto">
        <label class="form-label">To</label>
        <input type="date" name="to" class="form-control form-control-sm" value="<?= e($_GET['to'] ?? date('Y-m-d')) ?>">
    </div>
    <div class="col-auto d-flex align-items-end">
        <button type="submit" class="btn btn-gold btn-sm me-2"><i class="fas fa-filter me-1"></i>Filter</button>
        <a href="<?= url('reports/' . ($report ?? '')) ?>" class="btn btn-ghost btn-sm">Clear</a>
    </div>
</form>
