<?php
/**
 * Kirim reminder H-3 sebelum jatuh tempo
 * Jalankan: 0 8 * * * /usr/bin/php /path/to/cron/send_reminder_h3.php
 * (Setiap hari jam 08:00 pagi)
 */
require_once __DIR__ . '/../includes/db.php';
require_once __DIR__ . '/../includes/functions.php';
require_once __DIR__ . '/../classes/Bill.php';

$count = Bill::sendReminders();
echo "[" . date('Y-m-d H:i:s') . "] Sent $count reminder notifications\n";