diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php index 1913c86286..095add6af4 100644 --- a/app/Helpers/Helper.php +++ b/app/Helpers/Helper.php @@ -1147,4 +1147,14 @@ class Helper return $age; } + + /* + * I know it's gauche to return a shitty HTML string, but this is just a helper and since it will be the same every single time, + * it seemed pretty safe to do here. Don't you judge me. + */ + public function showDemoModeFieldWarning() { + if (app('demo_mode')) { + return "
" . trans('general.feature_disabled') . "
"; + } + } }