form_basic_information.blade.php
11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
@extends('workers.cabinet_layout', ['title' => 'Основная информация - РекаМоре'])
@section('cabinet_content')
@php
$worker = $user->workers[0]
@endphp
<form action="{{ route('worker.cabinet_save', ['worker' => $worker->id]) }}" enctype="multipart/form-data" method="POST">
@csrf
@include('messages_error')
<div class="cabinet__body-item">
<div class="cabinet__anketa">
<h2 class="title cabinet__title">Основная информация</h2>
</div>
</div>
<div class="cabinet__body-item">
<div class="cabinet__inputs">
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Фамилия:</label>
<div class="form-group__item">
<input type="text" name="surname" id="surmane" class="input" value="{{ $user->surname }}" placeholder="Филиппов" required>
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Имя:</label>
<div class="form-group__item">
<input type="text" name="name_man" id="name_man" class="input" value="{{ $user->name_man }}" placeholder="Егор" required>
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Отчество:</label>
<div class="form-group__item">
<input type="text" class="input" name="surname2" id="surmane2" value="{{ $user->surname2 }}" placeholder="Алексеевич">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Возраст</label>
<div class="form-group__item">
<input type="number" name="old_year" id="old_year" value="{{ $worker->old_year }}" class="input" placeholder="0" required>
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Статус</label>
<div class="form-group__item">
<div class="select">
<select class="js-select2" name="status_work" id="status_work">
@foreach(App\Enums\WorkerStatuses::getWorkerStatuses() as $status_id => $status_label)
<option value="{{ $status_id }}" @if ($worker->status_work == $status_id) selected @endif> {{ $status_label }} </option>
@endforeach
</select>
</div>
</div>
</div>
<div class="cabinet__inputs-item cabinet__inputs-item_max form-group cabinet__inputs-item-full-row">
<label class="form-group__label">Желаемые вакансии:</label>
<div class="form-group__item">
<div class="select">
<select class="js-select2" name="job_title_id[]" id="job_title_id[]" multiple="multiple">
@if ($job_titles->count())
@foreach($job_titles as $job_title)
<option value="{{ $job_title->id }}" @if (in_array($job_title->id, $worker->job_titles)) selected @endif>{{ $job_title->name }}</option>
@endforeach
@endif
</select>
</div>
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Пожелания к З/П:</label>
<div class="form-group__item">
<input type="text" name="salary_expectations" id="salary_expectations" value="{{ $worker->salary_expectations }}" class="input" placeholder="От 150 000 руб">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Опыт работы</label>
<div class="form-group__item">
<div class="select">
<select class="js-select2" id="experience" name="experience">
<option value="Не указано" @if (empty($worker->experience)) selected @endif>Не указано</option>
<option value="меньше 1 года" @if ($worker->experience == 'меньше 1 года') selected @endif>меньше 1 года</option>
<option value="от 1 года до 3 лет" @if ($worker->experience == 'от 1 года до 3 лет') selected @endif>от 1 года до 3 лет</option>
<option value="от 3 до 5 лет" @if ($worker->experience == 'от 3 до 5 лет') selected @endif>от 3 до 5 лет</option>
<option value="от 5 до 10 лет" @if ($worker->experience == 'от 5 до 10 лет') selected @endif>от 5 до 10 лет</option>
<option value="Больше 10 лет" @if ($worker->experience == 'Больше 10 лет') selected @endif>Больше 10 лет</option>
</select>
</div>
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Уровень английского:</label>
<div class="form-group__item">
<input type="text" name="english_level" id="english_level" value="{{ $worker->english_level }}" class="input" placeholder="Средний">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Дата готовности к посадке:</label>
<div class="form-group__item">
<input type="text" name="ready_boart_date" id="ready_boart_date" value="{{ $worker->ready_boart_date }}" class="input" placeholder="С 1 января {{ date('Y')}}">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Предпочтение по типу судна:</label>
<div class="form-group__item">
<input type="text" name="boart_type_preference" id="boart_type_preference" value="{{ $worker->boart_type_preference }}" class="input" placeholder="Балкер, сухогруз, контейнеровоз">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Наличие визы:</label>
<div class="form-group__item">
<input type="text" name="visa_available" id="visa_available" value="{{ $worker->visa_available }}" class="input" placeholder="В наличии / Отсутствует">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Наличие танкерных документов:</label>
<div class="form-group__item">
<input type="text" name="tanker_documents_available" id="tanker_documents_available" value="{{ $worker->tanker_documents_available }}" class="input" placeholder="В наличии / Отсутствует">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Наличие подтверждения для работы на ВВП:</label>
<div class="form-group__item">
<input type="text" name="confirmation_work_for_vvp" id="confirmation_work_for_vvp" value="{{ $worker->confirmation_work_for_vvp }}" class="input" placeholder="В наличии / Отсутствует">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Наличие военного билета / приписного свидетельства:</label>
<div class="form-group__item">
<input type="text" name="military_id_available" id="military_id_available" value="{{ $worker->military_id_available }}" class="input" placeholder="НВ наличии / Отсутствуетет">
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Город проживания:</label>
<div class="form-group__item">
<input type="text" name="city" id="city" value="{{ $worker->city }}" class="input" placeholder="Челябинск" required>
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Телефон:</label>
<div class="form-group__item">
<input type="tel" name="telephone" id="telephone" value="{{ old('telephone') ?? $worker->telephone ?? '' }}" class="input" placeholder="+7 (___) ___-__-__" required>
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">E-mail:</label>
<div class="form-group__item">
<input type="email" name="email" id="email" value="{{ $worker->email }}" class="input" placeholder="name@rekamore.su" required>
</div>
</div>
<div class="cabinet__inputs-item form-group">
<label class="form-group__label">Контакты родственников:</label>
<div class="form-group__item">
<input type="text" name="telephone2" id="telephon2" value="{{ old('telephone2') ?? $worker->telephone2 ?? '' }}" class="input" placeholder="+7 (___) ___-__-__ - мама">
</div>
</div>
<div class="cabinet__inputs-item form-group"></div>
<div class="cabinet__body-item cabinet__inputs-item-full-row">
<h4 class="cabinet__h4">О себе</h4>
<textarea class="textarea" name="text" id="text"
placeholder="Укажите информацию, которая поможет работодателю или укажите недостающую информацию, которую не смогли указать при заполнении анкеты.">
{{ $worker->text }}
</textarea>
</div>
<div class="cabinet__body-item cabinet__inputs-item-full-row">
<div class="cabinet__buttons_flex">
<button type="submit" class="button">Сохранить</button>
<a href="{{ route('worker.cabinet') }}" class="button button_light active">Назад</a>
</div>
</div>
</div>
</div>
</form>
@endsection