option('days'); $this->components->info("Recalculating service uptime over a {$days}-day window…"); $statusService->refreshAllServiceUptime($days); $services = $statusService->getEnabledServices(); $rows = $services->map(fn ($s) => [ $s->name, $s->status->label(), number_format((float) $s->uptime_percentage, 2).'%', $s->last_checked_at?->diffForHumans() ?? 'never', ])->all(); $this->table(['Service', 'Status', 'Uptime', 'Checked'], $rows); return self::SUCCESS; } }