diff --git a/app/Libraries/Utils.php b/app/Libraries/Utils.php index 4cb9af4a94f6..12028c660eb1 100644 --- a/app/Libraries/Utils.php +++ b/app/Libraries/Utils.php @@ -124,6 +124,11 @@ class Utils return isset($_ENV['RESELLER_TYPE']) ? $_ENV['RESELLER_TYPE'] : false; } + public static function getTermsLink() + { + return static::isNinja() ? NINJA_WEB_URL.'/terms' : NINJA_WEB_URL.'/self-hosting-the-invoice-ninja-platform'; + } + public static function isOAuthEnabled() { $providers = [ diff --git a/resources/views/header.blade.php b/resources/views/header.blade.php index d99b89556f8f..4695301576cc 100644 --- a/resources/views/header.blade.php +++ b/resources/views/header.blade.php @@ -632,7 +632,7 @@ {!! Former::checkbox('terms_checkbox') ->label(' ') ->value(1) - ->text(trans('texts.agree_to_terms', ['terms' => ''.trans('texts.terms_of_service').''])) + ->text(trans('texts.agree_to_terms', ['terms' => ''.trans('texts.terms_of_service').''])) ->raw() !!}