Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 1 changed file Inline Diff

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