Skip to content

Commit

Permalink
added missing terms and conditions on register
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Butcher committed Jan 8, 2021
1 parent ee4f38b commit 7720fb0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions stubs/resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@
<x-jet-input id="password_confirmation" class="block mt-1 w-full" type="password" name="password_confirmation" required autocomplete="new-password" />
</div>

@if (Laravel\Jetstream\Jetstream::hasTermsAndPrivacyPolicyFeature())
<div class="mt-4">
<x-jet-label for="terms">
<div class="flex items-center">
<x-jet-checkbox name="terms" id="terms"/>

<div class="ml-2">
{!! __('I agree to the :terms_of_service and :privacy_policy', [
'terms_of_service' => '<a target="_blank" href="'.route('terms.show').'" class="underline text-sm text-gray-600 hover:text-gray-900">'.__('Terms of Service').'</a>',
'privacy_policy' => '<a target="_blank" href="'.route('policy.show').'" class="underline text-sm text-gray-600 hover:text-gray-900">'.__('Privacy Policy').'</a>',
]) !!}
</div>
</div>
</x-jet-label>
</div>
@endif

<div class="flex items-center justify-end mt-4">
<a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ route('login') }}">
{{ __('Already registered?') }}
Expand Down

0 comments on commit 7720fb0

Please sign in to comment.