__('Your Cerebrate instance requires immediate attention.'), 'warning' => __('Issues found, it is recommended that you resolve them.'), 'info' => __('There are some optional settings that are incorrect or not set.'), ]; $headingPerLevel = [ 'critical' => __('Critical settings'), 'warning' => __('Warning settings'), 'info' => __('Info settings'), ]; $noticeDescriptionPerLevel = [ 'critical' => __('Cerebrate will not operate correctly or will be unsecure until these issues are resolved.'), 'warning' => __('Some of the features of Cerebrate cannot be utilised until these issues are resolved.'), 'info' => __('There are some optional tweaks that could be done to improve the looks of your Cerebrate instance.'), ]; $alertVariant = 'info'; $skipHeading = false; $alertBody = ''; $tableItems = []; foreach (array_keys($mainNoticeHeading) as $level) { if(!empty($notices[$level])) { $variant = $variantFromSeverity[$level]; if (!$skipHeading) { $alertBody .= sprintf('