option('days')); $cutoff = now()->subDays($days); $updated = DB::table('settlement_bills') ->whereIn('status', ['confirmed', 'partial_paid']) ->where('unpaid_amount', '>', 0) ->where('updated_at', '<', $cutoff) ->update([ 'status' => 'overdue', 'updated_at' => now(), ]); $this->info("Marked {$updated} bill(s) overdue."); return self::SUCCESS; } }