metricsOverview(); $memory = $overview['memory'] ?? []; } catch (\Exception $e) { return []; } $total = ($memory['total'] ?? 0) / 1024; $used = ($memory['used'] ?? 0) / 1024; $cached = ($memory['cached'] ?? 0) / 1024; $available = ($memory['available'] ?? 0) / 1024; return [ Stat::make(__('Total'), number_format($total, 1) . ' GB') ->description(__('Total memory')) ->color('gray'), Stat::make(__('Used'), number_format($used, 1) . ' GB') ->description(__('In use')) ->color('success'), Stat::make(__('Cached'), number_format($cached, 1) . ' GB') ->description(__('Cached data')) ->color('primary'), Stat::make(__('Available'), number_format($available, 1) . ' GB') ->description(__('Free to use')) ->color('warning'), ]; } }