63 lines
3.0 KiB
PHP
63 lines
3.0 KiB
PHP
<x-guest-layout>
|
|
<form method="POST" action="{{ route('register') }}">
|
|
@csrf
|
|
|
|
<!-- Name -->
|
|
<div>
|
|
<x-input-label for="name" :value="__('Name')" />
|
|
<x-text-input id="name" class="block mt-1 w-full" type="text" name="name" :value="old('name')" required autofocus autocomplete="name" />
|
|
<x-input-error :messages="$errors->get('name')" class="mt-2" />
|
|
</div>
|
|
|
|
<!-- Email Address -->
|
|
<div class="mt-4">
|
|
<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="username" />
|
|
<x-input-error :messages="$errors->get('email')" class="mt-2" />
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<x-input-label for="account_type" :value="__('Account type')" />
|
|
<select id="account_type" name="account_type" required class="mt-1 block w-full rounded-md border-slate-300 bg-white text-slate-950 shadow-sm focus:border-sky-500 focus:ring-sky-500 dark:border-slate-700 dark:bg-slate-950 dark:text-slate-100">
|
|
<option value="provider" @selected(old('account_type') === 'provider')>Provider</option>
|
|
<option value="buyer" @selected(old('account_type') === 'buyer')>Buyer</option>
|
|
<option value="both" @selected(old('account_type') === 'both')>Provider and buyer</option>
|
|
</select>
|
|
<x-input-error :messages="$errors->get('account_type')" class="mt-2" />
|
|
</div>
|
|
|
|
<!-- Password -->
|
|
<div class="mt-4">
|
|
<x-input-label for="password" :value="__('Password')" />
|
|
|
|
<x-text-input id="password" class="block mt-1 w-full"
|
|
type="password"
|
|
name="password"
|
|
required autocomplete="new-password" />
|
|
|
|
<x-input-error :messages="$errors->get('password')" class="mt-2" />
|
|
</div>
|
|
|
|
<!-- Confirm Password -->
|
|
<div class="mt-4">
|
|
<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 autocomplete="new-password" />
|
|
|
|
<x-input-error :messages="$errors->get('password_confirmation')" class="mt-2" />
|
|
</div>
|
|
|
|
<div class="flex items-center justify-end mt-4">
|
|
<a class="rounded-md text-sm text-slate-600 underline hover:text-slate-950 focus:outline-none focus:ring-2 focus:ring-sky-500 focus:ring-offset-2 dark:text-slate-400 dark:hover:text-white dark:focus:ring-offset-slate-900" href="{{ route('login') }}">
|
|
{{ __('Already registered?') }}
|
|
</a>
|
|
|
|
<x-primary-button class="ms-4">
|
|
{{ __('Register') }}
|
|
</x-primary-button>
|
|
</div>
|
|
</form>
|
|
</x-guest-layout>
|