info("🔍 Listing all vCenters:"); try { $vcenters = vCenter::all(); if ($vcenters->count() === 0) { $this->warn("⚠️ No vCenters found in database"); return 0; } foreach ($vcenters as $vcenter) { $status = $vcenter->status == 1 ? '✅ Active' : '❌ Inactive'; $this->info(" ID: {$vcenter->id} | Host: {$vcenter->host} | User: {$vcenter->user} | Status: {$status}"); } return 0; } catch (\Exception $e) { $this->error("❌ Exception: " . $e->getMessage()); return 1; } } }