<?php
/**
 * Cek & suspend pelanggan yang sudah lewat masa tenggang
 * Jalankan: 0 1 * * * /usr/bin/php /path/to/cron/disable_overdue_customers.php
 * (Setiap hari jam 01:00)
 */
require_once __DIR__ . '/../includes/db.php';
require_once __DIR__ . '/../includes/functions.php';
require_once __DIR__ . '/../classes/Bill.php';

$count = Bill::checkAndSuspendOverdue();
echo "[" . date('Y-m-d H:i:s') . "] Suspended $count customers\n";