forked from eatvio/eatvio-infra
146 lines
8.9 KiB
PHP
146 lines
8.9 KiB
PHP
@section('title', __('reg_form.title_' . $step))
|
|
<div class="flex flex-col justify-center py-12 px-6 min-h-full lg:px-8">
|
|
<div class="sm:mx-auto sm:w-full sm:max-w-sm modal-header">
|
|
<img class="mx-auto w-auto h-10" src="/img/logo.svg" alt="Eatvio">
|
|
<h5
|
|
class="mt-10 text-2xl font-bold tracking-tight leading-9 text-center text-gray-900 modal-title --medium_title">
|
|
{{ __('reg_form.registration') }}</h5>
|
|
</div>
|
|
<div
|
|
class="p-6 mt-8 rounded-3xl ring-1 shadow-lg sm:mx-auto sm:w-full sm:max-w-sm lg:max-w-lg modal-body ring-gray-900/5">
|
|
<div class="grid grid-cols-1 gap-x-6 gap-y-8 mt-5 sm:grid-cols-6 row">
|
|
<div class="sm:col-span-3 col-6">
|
|
<label for="first_name"
|
|
class="block text-sm font-medium leading-6 text-gray-900 ms-3 fw-bold">{{ __('reg_form.first_name') }}</label>
|
|
<div class="mt-2">
|
|
<input type="text" id="inputFirstName" name="first_name" wire:model="first_name"
|
|
class="block py-1.5 w-full text-gray-900 @error('first_name') ring-red-500 @enderror rounded-md border-0 ring-1 ring-inset ring-gray-300 shadow-sm sm:text-sm sm:leading-6 focus:ring-2 focus:ring-inset focus:ring-blue-500 form-control placeholder:text-gray-400"
|
|
placeholder="{{ __('reg_form.first_name') }}" required="" />
|
|
</div>
|
|
|
|
@if ($errors->has('first_name'))
|
|
<div
|
|
class="flex items-center mt-1 ml-1 text-xs font-medium tracking-wide text-red-500 verror-message">
|
|
{{ $errors->first('first_name') }}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="sm:col-span-3 col-6">
|
|
<label for="last_name"
|
|
class="block text-sm font-medium leading-6 text-gray-900 ms-3 fw-bold">{{ __('reg_form.last_name') }}</label>
|
|
<div class="mt-2">
|
|
<input type="text" id="inputLastName" name="last_name" wire:model="last_name"
|
|
class="block py-1.5 w-full text-gray-900 @error('last_name') ring-red-500 @enderror rounded-md border-0 ring-1 ring-inset ring-gray-300 shadow-sm sm:text-sm sm:leading-6 focus:ring-2 focus:ring-inset focus:ring-blue-500 form-control placeholder:text-gray-400"
|
|
placeholder="{{ __('reg_form.last_name') }}" required="" />
|
|
@if ($errors->has('last_name'))
|
|
<div
|
|
class="flex items-center mt-1 ml-1 text-xs font-medium tracking-wide text-red-500 verror-message">
|
|
{{ $errors->first('last_name') }}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mx-1 sm:col-span-4 row">
|
|
<label for="email"
|
|
class="block mt-3 text-sm font-medium leading-6 text-gray-900 ms-3 fw-bold">{{ __('reg_form.email') }}</label>
|
|
<div class="mt-2">
|
|
<input type="email" autocomplete="email" id="inputEmail" name="email" wire:model="email"
|
|
class="block py-1.5 w-full text-gray-900 @error('email') ring-red-500 @enderror rounded-md border-0 ring-1 ring-inset ring-gray-300 shadow-sm sm:text-sm sm:leading-6 focus:ring-2 focus:ring-inset focus:ring-blue-500 placeholder:text-gray-400 form-control"
|
|
placeholder="{{ __('reg_form.login') }}" required="" />
|
|
@if ($errors->has('email'))
|
|
<div
|
|
class="flex items-center mt-1 ml-1 text-xs font-medium tracking-wide text-red-500 verror-message">
|
|
{{ $errors->first('email') }}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid grid-cols-1 gap-x-6 gap-y-8 mx-1 mt-10 sm:grid-cols-6 row">
|
|
<div class="sm:col-span-3 col-6">
|
|
<label for="password"
|
|
class="block mt-3 text-sm font-medium leading-6 text-gray-900 ms-3 fw-bold">{{ __('reg_form.password') }}</label>
|
|
<div class="mt-2">
|
|
<input type="password" id="inputPassword" name="password" wire:model="password"
|
|
class="block py-1.5 w-full text-gray-900 @error('password') ring-red-500 @enderror rounded-md border-0 ring-1 ring-inset ring-gray-300 shadow-sm sm:text-sm sm:leading-6 focus:ring-2 focus:ring-inset focus:ring-blue-500 placeholder:text-gray-400 form-control"
|
|
placeholder="{{ __('reg_form.password') }}" required="" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sm:col-span-3 col-6">
|
|
<label for="password_confirmation"
|
|
class="block mt-3 text-sm font-medium leading-6 text-gray-900 ms-3 fw-bold">{{ __('reg_form.password_confirmation') }}</label>
|
|
<div class="mt-2">
|
|
<input type="password" id="inputPassword_confirmation" name="password_confirmation"
|
|
wire:model="password_confirmation"
|
|
class="block py-1.5 w-full text-gray-900 @error('password') ring-red-500 @enderror rounded-md border-0 ring-1 ring-inset ring-gray-300 shadow-sm sm:text-sm sm:leading-6 focus:ring-2 focus:ring-inset focus:ring-blue-500 placeholder:text-gray-400 form-control"
|
|
placeholder="{{ __('reg_form.password_confirmation') }}" required="" />
|
|
@if ($errors->has('password'))
|
|
<div
|
|
class="flex items-center mt-1 ml-1 text-xs font-medium tracking-wide text-red-500 verror-message">
|
|
{{ $errors->first('password') }}</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid grid-cols-1 gap-x-6 gap-y-8 mx-1 mt-10 sm:grid-cols-6 row">
|
|
<div class="mx-1 sm:col-span-3 col-6 row --with_arr w-25">
|
|
<label for="birthdate" class="block mt-3 text-sm font-medium leading-6 text-gray-900 ms-3 --f_bold">
|
|
{{ __('reg_form.date_of_birth') }}
|
|
</label>
|
|
|
|
<div class="mt-2">
|
|
<!-- http://t1m0n.name/air-datepicker/docs/index-ru.html -->
|
|
<input type="date" id="birthdate" name="birthdate" wire:model="birthdate"
|
|
placeholder="yyyy-mm-dd"
|
|
class="block py-1.5 w-full text-center @error('birthdate') ring-red-500 @enderror text-gray-900 rounded-md border-0 ring-1 ring-inset ring-gray-300 shadow-sm sm:text-sm sm:leading-6 focus:ring-2 focus:ring-inset focus:ring-blue-500 placeholder:text-gray-400 form-control --f_bold"
|
|
value="" required="" autocomplete="off" />
|
|
@if ($errors->has('birthdate'))
|
|
<div
|
|
class="flex items-center mt-1 ml-1 text-xs font-medium tracking-wide text-red-500 verror-message">
|
|
{{ $errors->first('birthdate') }}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="sm:col-span-3">
|
|
<label for="gender" class="block my-1 mt-3 text-sm font-medium leading-6 text-gray-900 ms-3 --f_bold">
|
|
{{ __('reg_form.gender') }}
|
|
</label>
|
|
<div class="mt-2">
|
|
<input type="radio" class="btn-check" name="gender" wire:click="$set('gender', 'male')"
|
|
id="genderM" autocomplete="off" checked value="male" />
|
|
<label class="btn btn-x btn-primary" for="genderM">{{ __('reg_form.male') }}</label>
|
|
|
|
<input type="radio" class="btn-check" name="gender" wire:click="$set('gender', 'female')"
|
|
id="genderF" autocomplete="off" value="female" />
|
|
<label class="btn btn-lg btn-primary" for="genderF">{{ __('reg_form.female') }}</label>
|
|
</div>
|
|
|
|
@if ($errors->has('gender'))
|
|
<span
|
|
class="flex items-center mt-1 ml-1 text-xs font-medium tracking-wide text-red-500 alert alert-danger">{{ $errors->first('gender') }}
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<p class="mt-5 text-sm --max_small --f_grey lh-1">{{ __('reg_form.confirm_t1') }}
|
|
<a href="#"
|
|
class="text-blue-600 visited:text-purple-600 --f_black">{{ __('reg_form.confirm_t2') }}</a>,
|
|
<a href="#"
|
|
class="text-blue-600 visited:text-purple-600 --f_black">{{ __('reg_form.confirm_t3') }}</a>
|
|
{{ __('reg_form.confirm_t4') }}
|
|
<a href="#"
|
|
class="text-blue-600 visited:text-purple-600 --f_black">{{ __('reg_form.confirm_t5') }}</a>
|
|
</p>
|
|
|
|
<button class="registration-btn-primary" type="button" next-step
|
|
wire:click="nextStep">{{ __('reg_form.registration') }}</button>
|
|
</div>
|
|
</div>
|