forked from eatvio/eatvio-infra
84 lines
5.2 KiB
PHP
84 lines
5.2 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.step4_head') }}</h5>
|
|
</div>
|
|
|
|
<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="my-3 text-center">{{ __('reg_form.your_blood_pressure') }}</div>
|
|
|
|
<div class="text-center --f_bold">{{ __('reg_form.average_pressure_readings') }}</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 col-6 @error('blood_pressure_up') verror @enderror">
|
|
<label for="blood_pressure_up"
|
|
class="block text-sm font-medium leading-6 text-gray-900 --f_bold ms-3 fw-bold">{{ __('reg_form.pressure_up') }}</label>
|
|
<div class="my-3">
|
|
<input type="number" wire:model="blood_pressure_up" name="blood_pressure_up"
|
|
class="block py-1.5 w-full text-gray-900 @error('blood_pressure_up') 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 my-3 text-center form-control"
|
|
value="" />
|
|
@if ($errors->has('blood_pressure_up'))
|
|
<div class="verror-message">{{ $errors->first('blood_pressure_up') }}</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="sm:col-span-3 col-6 @error('blood_pressure_down') verror @enderror">
|
|
<label for="blood_pressure_down"
|
|
class="block text-sm font-medium leading-6 text-gray-900 --f_bold ms-3 fw-bold">{{ __('reg_form.pressure_down') }}</label>
|
|
<div class="my-3">
|
|
<input type="number" wire:model="blood_pressure_down" name="blood_pressure_down"
|
|
class="block py-1.5 w-full text-gray-900 @error('blood_pressure_down') 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 my-3 text-center form-control my-3 text-center form-control"
|
|
value="" />
|
|
@if ($errors->has('blood_pressure_down'))
|
|
<div class="verror-message">{{ $errors->first('blood_pressure_down') }}</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-center --f_bold">{{ __('reg_form.tendency_to_be_hypo') }}</div>
|
|
<div class="--with_arr my-3 @error('has_hypo') 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"
|
|
wire:model="has_hypo" name="has_hypo">
|
|
<option selected value="0">{{ __('reg_form.no') }}</option>
|
|
<option value="1">{{ __('reg_form.yes') }}</option>
|
|
</select>
|
|
@if ($errors->has('has_hypo'))
|
|
<div class="verror-message">{{ $errors->first('has_hypo') }}</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="text-center --f_bold">{{ __('reg_form.prone_to_hypertension') }}</div>
|
|
<div class="--with_arr my-3 @error('has_hyper') 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"
|
|
wire:model="has_hyper" name="has_hyper">
|
|
<option selected value="0">{{ __('reg_form.no') }}</option>
|
|
<option value="1">{{ __('reg_form.yes') }}</option>
|
|
</select>
|
|
@if ($errors->has('has_hyper'))
|
|
<div class="verror-message">{{ $errors->first('has_hyper') }}</div>
|
|
@endif
|
|
</div>
|
|
|
|
<div>
|
|
<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-3 bg-slate-400">
|
|
<span class="--f_grey">← {{ __('reg_form.go_back') }}</span>
|
|
</button>
|
|
|
|
<button wire:click="skipStep"
|
|
class="p-2 px-5 text-sm font-semibold text-white rounded-md sm:col-span-3 bg-slate-400">
|
|
<span class="--f_grey">{{ __('reg_form.skip') }} →</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|