$value) { $timezone[$value] = $value . ' (UTC ' . now($value)->format('P') . ')'; } return collect($timezone)->sortKeys(); }); } public static function getUserTimeZone() { return auth()->user()?->timezone ?? config('app.user_timezone'); } public static function isDemoMode(): bool { return config('app.demo_mode', false); } public static function isDemoModeAndUserDenyUpdate(User $user): bool { if (self::isDemoMode() !== true) { return false; } return $user->email === config('app.demo_email'); } }