forked from eatvio/eatvio-infra
registration fix and refactoring
This commit is contained in:
@@ -38,41 +38,41 @@ class Step1 extends Component
|
||||
|
||||
public string $lang = 'ru';
|
||||
|
||||
public int|string $weight = '';
|
||||
public int|string|null $weight = '';
|
||||
|
||||
public int|string $height = '';
|
||||
public int|string|null $height = '';
|
||||
|
||||
public int|string $chest_circumference = '';
|
||||
public int|string|null $chest_circumference = '';
|
||||
|
||||
public int|string $waist_circumference = '';
|
||||
public int|string|null $waist_circumference = '';
|
||||
|
||||
public int|string $hip_circumference = '';
|
||||
public int|string|null $hip_circumference = '';
|
||||
|
||||
public int|string $blood_pressure_up = '';
|
||||
public int|string|null $blood_pressure_up = '';
|
||||
|
||||
public int|string $blood_pressure_down = '';
|
||||
public int|string|null $blood_pressure_down = '';
|
||||
|
||||
public int|string $has_hypo = 0;
|
||||
|
||||
public int|string $has_hyper = 0;
|
||||
|
||||
public string $about_alergy = '';
|
||||
public ?string $about_alergy = '';
|
||||
|
||||
public string $about_taking_pils = '';
|
||||
public ?string $about_taking_pils = '';
|
||||
|
||||
public string $about_sport_hobbies = '';
|
||||
public ?string $about_sport_hobbies = '';
|
||||
|
||||
public string $favorite_foods = '';
|
||||
public ?string $favorite_foods = '';
|
||||
|
||||
public string $unfavorite_foods = '';
|
||||
public ?string $unfavorite_foods = '';
|
||||
|
||||
public string $additional_info = '';
|
||||
public ?string $additional_info = '';
|
||||
|
||||
public function mount(string $step): void
|
||||
{
|
||||
$this->step = $step;
|
||||
collect(session()->get('registrationdata', []))
|
||||
->each(fn ($item, $key) => $this->{$key} = $item);
|
||||
->each(fn ($item, $key): mixed => $this->{$key} = $item);
|
||||
}
|
||||
|
||||
public function render(): View|ViewFactory
|
||||
|
||||
Reference in New Issue
Block a user