Files
eatvio-infra/resources/views/livewire/registration/step2.blade.php
2024-01-24 11:21:57 +03:00

126 lines
7.1 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">
<h5
class="mt-10 text-2xl font-bold tracking-tight leading-9 text-center text-gray-900 modal-title --medium_title">
{{ __('reg_form.step2_head') }}</h5>
</div>
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div step-item
class="p-6 mt-8 rounded-3xl ring-1 shadow-lg sm:mx-auto sm:w-full sm:max-w-sm md:max-w-md lg:max-w-lg xl:max-w-xl 2xl:max-w-2xl modal-body ring-gray-900/5">
<div class="grid grid-cols-1 gap-x-6 gap-y-8 mt-4 mt-5 sm:grid-cols-6 row">
<div class="sm:col-span-2 col-6">
<div class="block text-sm font-medium leading-6 text-gray-900 --f_bold ms-3 fw-bold">
{{ __('reg_form.country') }}
</div>
<div class="--with_arr my-3 @error('country') verror @enderror">
<select
class="block py-1.5 w-full 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-600 form-control placeholder:text-gray-400 form-select"
name="country" wire:model.live="country">
<option selected value="ru">{{ __('reg_form.country_ru') }}</option>
<option value="ua">{{ __('reg_form.country_ua') }}</option>
</select>
@if ($errors->has('country'))
<div class="verror-message">{{ $errors->first('country') }}</div>
@endif
</div>
</div>
<div class="sm:col-span-2 col-6">
<div class="block text-sm font-medium leading-6 text-gray-900 --f_bold ms-3 fw-bold">
{{ __('reg_form.city') }}
</div>
<div class="my-3 --with_arr">
<select
class="block py-1.5 w-full 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-600 form-control placeholder:text-gray-400 form-select"
name="city" wire:model.live="city">
<option selected value="msk">{{ __('reg_form.city_msk') }}</option>
<option value="kv">{{ __('reg_form.city_kv') }}</option>
</select>
<span></span>
@if ($errors->has('city'))
<div class="verror-message">{{ $errors->first('city') }}</div>
@endif
</div>
</div>
<div class="sm:col-span-2 col-6">
<div class="block text-sm font-medium leading-6 text-gray-900 --f_bold ms-3 fw-bold truncate">
{{ __('reg_form.talk_lang') }}</div>
<div class="--with_arr my-3 @error('lang') verror @enderror">
<select
class="block py-1.5 w-full 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-600 form-control placeholder:text-gray-400 form-select"
name="lang" wire:model.live="lang">
<option selected value="ru">{{ __('reg_form.talk_lang_ru') }}</option>
<option value="ua">{{ __('reg_form.talk_lang_ua') }}</option>
<option value="pl">{{ __('reg_form.talk_lang_pl') }}</option>
</select>
<span></span>
@if ($errors->has('lang'))
<div class="verror-message">{{ $errors->first('lang') }}</div>
@endif
</div>
</div>
</div>
<div class="grid grid-cols-1 gap-x-6 gap-y-8 mt-4 mt-5 sm:grid-cols-6 row">
<div class="sm:col-span-3 col-6">
<div class="block text-sm font-medium leading-6 text-gray-900 ms-3 --f_bold">
{{ __('reg_form.your_weight') }}
</div>
<div class="@error('weight') verror @enderror">
<input type="number" wire:model="weight" id="inputWeight" name="weight"
class="block py-1.5 my-3 w-full text-center 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-600 form-control placeholder:text-gray-400"
value="" placeholder="{{ __('reg_form.your_weight_placeholder') }}" />
@if ($errors->has('weight'))
<div class="verror-message">{{ $errors->first('weight') }}</div>
@endif
</div>
</div>
<div class="sm:col-span-3 col-6">
<div class="block text-sm font-medium leading-6 text-gray-900 ms-3 --f_bold">
{{ __('reg_form.your_height') }}
</div>
<div class="@error('height') verror @enderror">
<input type="number" wire:model="height" id="inputHeight" name="height"
class="block py-1.5 my-3 w-full text-center 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-600 form-control placeholder:text-gray-400"
value="" placeholder="{{ __('reg_form.your_height_placeholder') }}" />
@if ($errors->has('height'))
<div class="verror-message">{{ $errors->first('height') }}</div>
@endif
</div>
</div>
</div>
<div class="">
<button class="registration-btn-primary" type="button" next-step
wire:click="nextStep">{{ __('reg_form.continue') }}</button>
<div class="grid grid-cols-1 gap-x-6 gap-y-8 mt-4 mt-5 sm:grid-cols-6">
<button wire:click="goBack"
class="p-2 px-5 text-sm font-semibold text-white rounded-md sm:col-span-2 bg-slate-400">
<span class="--f_grey">&larr; {{ __('reg_form.go_back') }}</span>
</button>
<button wire:click="finishRegistration"
class="p-2 px-5 text-sm font-semibold text-white rounded-md sm:col-span-2 bg-[#019a3e]">
<span class="--f_grey">{{ __('reg_form.enter_data_later') }}</span>
</button>
<button wire:click="skipStep"
class="p-2 px-5 text-sm font-semibold text-white rounded-md sm:col-span-2 bg-slate-400">
<span class="--f_grey">{{ __('reg_form.skip') }} &rarr;</span>
</button>
</div>
</div>
</div>
</div>