diff --git a/resources/views/portal/ninja2020/auth/includes/register/popup.blade.php b/resources/views/portal/ninja2020/auth/includes/register/popup.blade.php new file mode 100644 index 000000000000..9585bfd0125e --- /dev/null +++ b/resources/views/portal/ninja2020/auth/includes/register/popup.blade.php @@ -0,0 +1,30 @@ +{{ ctrans("texts.$property") }} +/ + +
+
+
+
+ + +
\ No newline at end of file diff --git a/resources/views/portal/ninja2020/auth/register.blade.php b/resources/views/portal/ninja2020/auth/register.blade.php index a5045a93d8db..ca01fccdf310 100644 --- a/resources/views/portal/ninja2020/auth/register.blade.php +++ b/resources/views/portal/ninja2020/auth/register.blade.php @@ -2,7 +2,7 @@ @section('meta_title', ctrans('texts.register')) @section('body') -
+
{{ ctrans('texts.logo') }} @@ -10,7 +10,7 @@

{{ ctrans('texts.register') }}

{{ ctrans('texts.register_label') }}

-
+ @csrf @include('portal.ninja2020.auth.includes.register.personal_information') @@ -21,18 +21,22 @@ @include('portal.ninja2020.auth.includes.register.personal_address') @include('portal.ninja2020.auth.includes.register.shipping_address')
- +
- - - - {{ ctrans('texts.i_agree') }} {{ ctrans('texts.terms_of_service') }} and {{ ctrans('texts.privacy_policy') }} + + @if(!empty($company->settings->client_signup_terms) || !empty($company->settings->client_signup_privacy_policy)) + + + + {{ ctrans('texts.i_agree') }} + @endif + + @includeWhen(!empty($company->settings->client_signup_terms), 'portal.ninja2020.auth.includes.register.popup', ['property' => 'terms_of_service', 'title' => ctrans('texts.terms_of_service'), 'content' => $company->settings->client_signup_terms]) + @includeWhen(!empty($company->settings->client_signup_privacy_policy), 'portal.ninja2020.auth.includes.register.popup', ['property' => 'privacy_policy', 'title' => ctrans('texts.privacy_policy'), 'content' => $company->settings->client_signup_privacy_policy]) - +