option('month') ?: Carbon::now()->format('Y-m'); if ($this->option('current')) { $targetMonth = Carbon::now()->format('Y-m'); } $updatedCount = Payroll::where('period_month', $targetMonth) ->where('is_paid', IsPaid::NOT_PAID) ->update(['is_paid' => IsPaid::PAID]); if ($updatedCount === 0) { $this->warn("Tidak ada payroll yang perlu ditutup untuk bulan {$targetMonth}."); return; } $this->info("Payroll untuk bulan {$targetMonth} berhasil ditandai selesai. Total: {$updatedCount}"); } }