Commit 93620432904fedc3f4052f4e472a7ab104686815
1 parent
91c6373693
Exists in
master
uncommited files
Showing 1 changed file with 5 additions and 21 deletions Inline Diff
resources/views/workers/cabinet.blade.php
1 | @extends('layout.frontend', ['title' => 'Моя анкета - РекаМоре']) | 1 | @extends('layout.frontend', ['title' => 'Моя анкета - РекаМоре']) |
2 | 2 | ||
3 | @section('scripts') | 3 | @section('scripts') |
4 | <script> | 4 | <script> |
5 | $(function() { | 5 | $(function() { |
6 | $('.cabinet__avatar-form [type="file"][name="photo"]').change(function (event) { | 6 | $('.cabinet__avatar-form [type="file"][name="photo"]').change(function (event) { |
7 | var form = $(this).closest('form'); | 7 | var form = $(this).closest('form'); |
8 | const file = event.target.files[0]; | 8 | const file = event.target.files[0]; |
9 | 9 | ||
10 | if (file) { | 10 | if (file) { |
11 | var img_wrap = $('.cabinet__avatar-pic'); | 11 | var img_wrap = $('.cabinet__avatar-pic'); |
12 | var img = $('<img src="#"/>'); | 12 | var img = $('<img src="#"/>'); |
13 | const reader = new FileReader(); | 13 | const reader = new FileReader(); |
14 | 14 | ||
15 | reader.onload = function(e) { | 15 | reader.onload = function(e) { |
16 | img.attr('src', e.target.result); | 16 | img.attr('src', e.target.result); |
17 | img_wrap.find('svg, img').remove(); | 17 | img_wrap.find('svg, img').remove(); |
18 | img_wrap.append(img); | 18 | img_wrap.append(img); |
19 | 19 | ||
20 | setTimeout(function () { | 20 | setTimeout(function () { |
21 | form.submit(); | 21 | form.submit(); |
22 | }, 1000); | 22 | }, 1000); |
23 | }; | 23 | }; |
24 | 24 | ||
25 | reader.readAsDataURL(file); | 25 | reader.readAsDataURL(file); |
26 | } | 26 | } |
27 | }); | 27 | }); |
28 | }); | 28 | }); |
29 | 29 | ||
30 | $(document).on('click', '#old_year', function() { | 30 | $(document).on('click', '#old_year', function() { |
31 | var this_ = $(this); | 31 | var this_ = $(this); |
32 | var val = this_.val(); | 32 | var val = this_.val(); |
33 | 33 | ||
34 | if (val < 0) | 34 | if (val < 0) |
35 | $('#old_year').val(0); | 35 | $('#old_year').val(0); |
36 | }); | 36 | }); |
37 | </script> | 37 | </script> |
38 | @endsection | 38 | @endsection |
39 | 39 | ||
40 | @section('content') | 40 | @section('content') |
41 | @php | 41 | @php |
42 | $user = $worker->users | 42 | $user = $worker->users |
43 | @endphp | 43 | @endphp |
44 | <section class="cabinet"> | 44 | <section class="cabinet"> |
45 | <div class="container"> | 45 | <div class="container"> |
46 | <ul class="breadcrumbs cabinet__breadcrumbs"> | 46 | <ul class="breadcrumbs cabinet__breadcrumbs"> |
47 | <li><a href="{{ route('index') }}">Главная</a></li> | 47 | <li><a href="{{ route('index') }}">Главная</a></li> |
48 | <li><b>Личный кабинет</b></li> | 48 | <li><b>Личный кабинет</b></li> |
49 | </ul> | 49 | </ul> |
50 | <div class="cabinet__wrapper"> | 50 | <div class="cabinet__wrapper"> |
51 | <div class="cabinet__side"> | 51 | <div class="cabinet__side"> |
52 | <div class="cabinet__side-toper"> | 52 | <div class="cabinet__side-toper"> |
53 | @include('workers.emblema') | 53 | @include('workers.emblema') |
54 | 54 | ||
55 | </div> | 55 | </div> |
56 | 56 | ||
57 | @include('workers.menu', ['item' => 1]) | 57 | @include('workers.menu', ['item' => 1]) |
58 | </div> | 58 | </div> |
59 | <div class="cabinet__body"> | 59 | <div class="cabinet__body"> |
60 | <div class="cabinet__body-item"> | 60 | <div class="cabinet__body-item"> |
61 | <div class="cabinet__anketa"> | 61 | <div class="cabinet__anketa"> |
62 | <h2 class="title cabinet__title">Моя анкета</h2> | 62 | <h2 class="title cabinet__title">Моя анкета</h2> |
63 | <div class="cabinet__anketa-buttons"> | 63 | <div class="cabinet__anketa-buttons"> |
64 | <a href="{{ route('worker.up', ['worker' => $worker->id]) }}" class="button">Поднять резюме</a> | 64 | <a href="{{ route('worker.up', ['worker' => $worker->id]) }}" class="button">Поднять резюме</a> |
65 | <a href="{{ route('resume_download', ['worker' => $worker->id]) }}" target="_blank" class="button"> | 65 | <a href="{{ route('resume_download', ['worker' => $worker->id]) }}" target="_blank" class="button"> |
66 | <svg> | 66 | <svg> |
67 | <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use> | 67 | <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use> |
68 | </svg> | 68 | </svg> |
69 | Скачать резюме | 69 | Скачать резюме |
70 | </a> | 70 | </a> |
71 | </div> | 71 | </div> |
72 | </div> | 72 | </div> |
73 | </div> | 73 | </div> |
74 | 74 | ||
75 | <div class="cabinet__body-item"> | 75 | <div class="cabinet__body-item"> |
76 | <div class="cabinet__stats"> | 76 | <div class="cabinet__stats"> |
77 | <h3 class="cabinet__subtitle cabinet__stats-title">Статистика</h3> | 77 | <h3 class="cabinet__subtitle cabinet__stats-title">Статистика</h3> |
78 | <div class="cabinet__stats-body"> | 78 | <div class="cabinet__stats-body"> |
79 | <div class="cabinet__stats-item"> | 79 | <div class="cabinet__stats-item"> |
80 | <svg> | 80 | <svg> |
81 | <use xlink:href="{{ asset('images/sprite.svg#eye-3') }}"></use> | 81 | <use xlink:href="{{ asset('images/sprite.svg#eye-3') }}"></use> |
82 | </svg> | 82 | </svg> |
83 | <span>Просмотров:</span> | 83 | <span>Просмотров:</span> |
84 | <b>@if (isset($stat[0]->lookin)) {{ $stat[0]->lookin }} @else 0 @endif</b> | 84 | <b>@if (isset($stat[0]->lookin)) {{ $stat[0]->lookin }} @else 0 @endif</b> |
85 | </div> | 85 | </div> |
86 | <div class="cabinet__stats-item"> | 86 | <div class="cabinet__stats-item"> |
87 | <svg> | 87 | <svg> |
88 | <use xlink:href="{{ asset('images/sprite.svg#warning') }}"></use> | 88 | <use xlink:href="{{ asset('images/sprite.svg#warning') }}"></use> |
89 | </svg> | 89 | </svg> |
90 | <span>Отзывов:</span> | 90 | <span>Отзывов:</span> |
91 | <b>@if(isset($worker->response)) {{ $worker->response->count() }} @else 0 @endif</b> | 91 | <b>@if(isset($worker->response)) {{ $worker->response->count() }} @else 0 @endif</b> |
92 | </div> | 92 | </div> |
93 | </div> | 93 | </div> |
94 | <div class="cabinet__stats-subtitle">Анкета заполнена на {{ $persent }}%</div> | 94 | <div class="cabinet__stats-subtitle">Анкета заполнена на {{ $persent }}%</div> |
95 | <div class="cabinet__stats-line"> | 95 | <div class="cabinet__stats-line"> |
96 | <span style="width:{{ $persent }}%"></span> | 96 | <span style="width:{{ $persent }}%"></span> |
97 | </div> | 97 | </div> |
98 | <div class="cabinet__stats-bottom">Заполните профиль, чтобы повысить процент анкеты на 80%</div> | 98 | <div class="cabinet__stats-bottom">Заполните профиль, чтобы повысить процент анкеты на 80%</div> |
99 | </div> | 99 | </div> |
100 | </div> | 100 | </div> |
101 | 101 | ||
102 | <form class="" action="{{ route('worker.cabinet_save_foto', ['worker' => $worker->id]) }}" enctype="multipart/form-data" method="POST"> | 102 | <form class="" action="{{ route('worker.cabinet_save_foto', ['worker' => $worker->id]) }}" enctype="multipart/form-data" method="POST"> |
103 | @csrf | 103 | @csrf |
104 | @include('messages_error') | 104 | @include('messages_error') |
105 | 105 | ||
106 | <div class="cabinet__body-item"> | 106 | <div class="cabinet__body-item"> |
107 | <h3 class="cabinet__subtitle">Профиль</h3> | 107 | <h3 class="cabinet__subtitle">Профиль</h3> |
108 | <div class="cabinet__avatar"> | 108 | <div class="cabinet__avatar"> |
109 | <div class="cabinet__avatar-pic"> | 109 | <div class="cabinet__avatar-pic"> |
110 | 110 | ||
111 | @if (!empty($worker->photo)) | 111 | @if (!empty($worker->photo)) |
112 | <img src="{{ asset(Storage::url($worker->photo)) }}"/> | 112 | <img src="{{ asset(Storage::url($worker->photo)) }}"/> |
113 | @else | 113 | @else |
114 | <svg> | 114 | <svg> |
115 | <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> | 115 | <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> |
116 | </svg> | 116 | </svg> |
117 | @endif | 117 | @endif |
118 | </div> | 118 | </div> |
119 | <div class="cabinet__avatar-form"> | 119 | <div class="cabinet__avatar-form"> |
120 | <label class="file"> | 120 | <label class="file"> |
121 | <span class="file__input"> | 121 | <span class="file__input"> |
122 | <input type="file" name="photo" id="photo"> | 122 | <input type="file" name="photo" id="photo"> |
123 | 123 | ||
124 | <span class="button"> | 124 | <span class="button"> |
125 | <svg> | 125 | <svg> |
126 | <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> | 126 | <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> |
127 | </svg> | 127 | </svg> |
128 | Загрузить | 128 | Загрузить |
129 | </span> | 129 | </span> |
130 | </span> | 130 | </span> |
131 | </label> | 131 | </label> |
132 | <p class="cabinet__text">Загрузите фотографию в формате svg., jpg., jpeg., png.</p> | 132 | <p class="cabinet__text">Загрузите фотографию в формате svg., jpg., jpeg., png.</p> |
133 | </div> | 133 | </div> |
134 | </div> | 134 | </div> |
135 | </div> | 135 | </div> |
136 | </form> | 136 | </form> |
137 | 137 | ||
138 | <div class="cabinet__body-item mb-40"> | 138 | <div class="cabinet__body-item mb-40"> |
139 | <h3 class="cabinet__subtitle font30">Основная информация</h3> | 139 | <h3 class="cabinet__subtitle font30">Основная информация</h3> |
140 | 140 | ||
141 | <div class="cabinet__inputs"> | 141 | <div class="cabinet__inputs"> |
142 | <div class="cabinet__inputs_to_columns_wrap"> | 142 | <div class="cabinet__inputs_to_columns_wrap"> |
143 | <div class="cabinet__inputs_to_column cabinet__inputs_to_columns_left"> | 143 | <div class="cabinet__inputs_to_column cabinet__inputs_to_columns_left"> |
144 | <div class="cabinet__inputs-item form-group"> | 144 | <div class="cabinet__inputs-item form-group"> |
145 | <label class="form-group__label">Фамилия:</label> | 145 | <label class="form-group__label">Фамилия:</label> |
146 | <div class="form-group__item"> | 146 | <div class="form-group__item"> |
147 | {{ $user->surname }} | 147 | {{ $user->surname }} |
148 | </div> | 148 | </div> |
149 | </div> | 149 | </div> |
150 | <div class="cabinet__inputs-item form-group"> | 150 | <div class="cabinet__inputs-item form-group"> |
151 | <label class="form-group__label">Имя:</label> | 151 | <label class="form-group__label">Имя:</label> |
152 | <div class="form-group__item"> | 152 | <div class="form-group__item"> |
153 | {{ $user->name_man }} | 153 | {{ $user->name_man }} |
154 | </div> | 154 | </div> |
155 | </div> | 155 | </div> |
156 | <div class="cabinet__inputs-item form-group"> | 156 | <div class="cabinet__inputs-item form-group"> |
157 | <label class="form-group__label">Отчество:</label> | 157 | <label class="form-group__label">Отчество:</label> |
158 | <div class="form-group__item"> | 158 | <div class="form-group__item"> |
159 | {{ $user->surname2 }} | 159 | {{ $user->surname2 }} |
160 | </div> | 160 | </div> |
161 | </div> | 161 | </div> |
162 | <div class="cabinet__inputs-item form-group"> | 162 | <div class="cabinet__inputs-item form-group"> |
163 | <label class="form-group__label">Возраст:</label> | 163 | <label class="form-group__label">Возраст:</label> |
164 | <div class="form-group__item"> | 164 | <div class="form-group__item"> |
165 | {{ $worker->old_year ?? '-' }} | 165 | {{ $worker->old_year ?? '-' }} |
166 | </div> | 166 | </div> |
167 | </div> | 167 | </div> |
168 | <div class="cabinet__inputs-item form-group"> | 168 | <div class="cabinet__inputs-item form-group"> |
169 | <label class="form-group__label">Статус:</label> | 169 | <label class="form-group__label">Статус:</label> |
170 | <div class="form-group__item"> | 170 | <div class="form-group__item"> |
171 | {{ $status_work[$worker->status_work] ?? '-' }} | 171 | {{ $status_work[$worker->status_work] ?? '-' }} |
172 | </div> | 172 | </div> |
173 | </div> | 173 | </div> |
174 | <div class="cabinet__inputs-item form-group"> | 174 | <div class="cabinet__inputs-item form-group"> |
175 | <label class="form-group__label">Желаемые вакансии:</label> | 175 | <label class="form-group__label">Желаемые вакансии:</label> |
176 | <div class="form-group__item"> | 176 | <div class="form-group__item"> |
177 | @if ($worker->job_titles->count()) | 177 | @if ($worker->job_titles->count()) |
178 | @foreach($worker->job_titles as $job_title) | 178 | @foreach($worker->job_titles as $job_title) |
179 | {{ $job_title->name }} | 179 | {{ $job_title->name }} |
180 | @if (!$loop->last) / @endif | 180 | @if (!$loop->last) / @endif |
181 | @endforeach | 181 | @endforeach |
182 | @endif | 182 | @endif |
183 | </div> | 183 | </div> |
184 | </div> | 184 | </div> |
185 | <div class="cabinet__inputs-item form-group"> | 185 | <div class="cabinet__inputs-item form-group"> |
186 | <label class="form-group__label">Пожелания к З/П:</label> | 186 | <label class="form-group__label">Пожелания к З/П:</label> |
187 | <div class="form-group__item"> | 187 | <div class="form-group__item"> |
188 | {{ $worker->salary_expectations ?? '-' }} | 188 | {{ $worker->salary_expectations ?? '-' }} |
189 | </div> | 189 | </div> |
190 | </div> | 190 | </div> |
191 | <div class="cabinet__inputs-item form-group"> | 191 | <div class="cabinet__inputs-item form-group"> |
192 | <label class="form-group__label">Уровень английского:</label> | 192 | <label class="form-group__label">Уровень английского:</label> |
193 | <div class="form-group__item"> | 193 | <div class="form-group__item"> |
194 | {{ $worker->english_level ?? '-' }} | 194 | {{ $worker->english_level ?? '-' }} |
195 | </div> | 195 | </div> |
196 | </div> | 196 | </div> |
197 | <div class="cabinet__inputs-item form-group"> | 197 | <div class="cabinet__inputs-item form-group"> |
198 | <label class="form-group__label">Дата готовности к посадке:</label> | 198 | <label class="form-group__label">Дата готовности к посадке:</label> |
199 | <div class="form-group__item"> | 199 | <div class="form-group__item"> |
200 | {{ $worker->ready_boart_date ?? '-' }} | 200 | {{ $worker->ready_boart_date ?? '-' }} |
201 | </div> | 201 | </div> |
202 | </div> | 202 | </div> |
203 | <div class="cabinet__inputs-item form-group"> | 203 | <div class="cabinet__inputs-item form-group"> |
204 | <label class="form-group__label">Предпочтение по типу судна:</label> | 204 | <label class="form-group__label">Предпочтение по типу судна:</label> |
205 | <div class="form-group__item"> | 205 | <div class="form-group__item"> |
206 | {{ $worker->boart_type_preference ?? '-' }} | 206 | {{ $worker->boart_type_preference ?? '-' }} |
207 | </div> | 207 | </div> |
208 | </div> | 208 | </div> |
209 | </div> | 209 | </div> |
210 | 210 | ||
211 | <div class="cabinet__inputs_to_column cabinet__inputs_to_columns_right"> | 211 | <div class="cabinet__inputs_to_column cabinet__inputs_to_columns_right"> |
212 | <div class="cabinet__inputs-item form-group"> | 212 | <div class="cabinet__inputs-item form-group"> |
213 | <label class="form-group__label">Наличие визы:</label> | 213 | <label class="form-group__label">Наличие визы:</label> |
214 | <div class="form-group__item"> | 214 | <div class="form-group__item"> |
215 | {{ $worker->visa_available }} | 215 | {{ $worker->visa_available }} |
216 | </div> | 216 | </div> |
217 | </div> | 217 | </div> |
218 | 218 | ||
219 | 219 | ||
220 | <div class="cabinet__inputs-item form-group"> | 220 | <div class="cabinet__inputs-item form-group"> |
221 | <label class="form-group__label">Наличие танкерных документов:</label> | 221 | <label class="form-group__label">Наличие танкерных документов:</label> |
222 | <div class="form-group__item"> | 222 | <div class="form-group__item"> |
223 | {{ $worker->tanker_documents_available ?? '-' }} | 223 | {{ $worker->tanker_documents_available ?? '-' }} |
224 | </div> | 224 | </div> |
225 | </div> | 225 | </div> |
226 | 226 | ||
227 | 227 | ||
228 | <div class="cabinet__inputs-item form-group"> | 228 | <div class="cabinet__inputs-item form-group"> |
229 | <label class="form-group__label">Наличие подтверждения для работы на ВВП:</label> | 229 | <label class="form-group__label">Наличие подтверждения для работы на ВВП:</label> |
230 | <div class="form-group__item"> | 230 | <div class="form-group__item"> |
231 | {{ $worker->confirmation_work_for_vvp ?? '-' }} | 231 | {{ $worker->confirmation_work_for_vvp ?? '-' }} |
232 | </div> | 232 | </div> |
233 | </div> | 233 | </div> |
234 | 234 | ||
235 | 235 | ||
236 | <div class="cabinet__inputs-item form-group"> | 236 | <div class="cabinet__inputs-item form-group"> |
237 | <label class="form-group__label">Наличие военного билета / приписного свидетельства:</label> | 237 | <label class="form-group__label">Наличие военного билета / приписного свидетельства:</label> |
238 | <div class="form-group__item"> | 238 | <div class="form-group__item"> |
239 | {{ $worker->military_id_available ?? '-' }} | 239 | {{ $worker->military_id_available ?? '-' }} |
240 | </div> | 240 | </div> |
241 | </div> | 241 | </div> |
242 | 242 | ||
243 | 243 | ||
244 | <div class="cabinet__inputs-item form-group"> | 244 | <div class="cabinet__inputs-item form-group"> |
245 | <label class="form-group__label">Город проживания:</label> | 245 | <label class="form-group__label">Город проживания:</label> |
246 | <div class="form-group__item"> | 246 | <div class="form-group__item"> |
247 | {{ $worker->city ?? '-' }} | 247 | {{ $worker->city ?? '-' }} |
248 | </div> | 248 | </div> |
249 | </div> | 249 | </div> |
250 | 250 | ||
251 | 251 | ||
252 | <div class="cabinet__inputs-item form-group"> | 252 | <div class="cabinet__inputs-item form-group"> |
253 | <label class="form-group__label">Телефон:</label> | 253 | <label class="form-group__label">Телефон:</label> |
254 | <div class="form-group__item"> | 254 | <div class="form-group__item"> |
255 | {{ $worker->telephone ?? '-' }} | 255 | {{ $worker->telephone ?? '-' }} |
256 | </div> | 256 | </div> |
257 | </div> | 257 | </div> |
258 | 258 | ||
259 | 259 | ||
260 | <div class="cabinet__inputs-item form-group"> | 260 | <div class="cabinet__inputs-item form-group"> |
261 | <label class="form-group__label">E-mail:</label> | 261 | <label class="form-group__label">E-mail:</label> |
262 | <div class="form-group__item"> | 262 | <div class="form-group__item"> |
263 | {{ $worker->email ?? '-' }} | 263 | {{ $worker->email ?? '-' }} |
264 | </div> | 264 | </div> |
265 | </div> | 265 | </div> |
266 | 266 | ||
267 | 267 | ||
268 | <<<<<<< HEAD | ||
269 | <div class="cabinet__inputs-item form-group"> | 268 | <div class="cabinet__inputs-item form-group"> |
270 | <label class="form-group__label">Контакты родственников:</label> | 269 | <label class="form-group__label">Контакты родственников:</label> |
271 | <div class="form-group__item"> | 270 | <div class="form-group__item"> |
272 | {{ $worker->telephon2 ?? '-' }} | 271 | {{ $worker->telephone2 ?? '-' }} |
273 | </div> | 272 | </div> |
274 | </div> | 273 | </div> |
275 | |||
276 | |||
277 | |||
278 | <div class="width100"> | ||
279 | <h4 class="cabinet__h4 mb-10">О себе</h4> | ||
280 | <div>{{ $worker->text }}</div> | ||
281 | ======= | ||
282 | <div class="cabinet__inputs-item form-group"> | ||
283 | <label class="form-group__label">Контакты родственников:</label> | ||
284 | <div class="form-group__item"> | ||
285 | {{ $worker->telephone2 ?? '-' }} | ||
286 | </div> | ||
287 | </div> | ||
288 | >>>>>>> b67b944770e95eb4bd433dde26daedbcb4bc6ae9 | ||
289 | </div> | ||
290 | </div> | 274 | </div> |
291 | </div> | 275 | </div> |
292 | 276 | ||
293 | <div class="width100"> | 277 | <div class="width100"> |
294 | <h4 class="cabinet__h4 mb-10">О себе</h4> | 278 | <h4 class="cabinet__h4 mb-10">О себе</h4> |
295 | <div>{{ $worker->text }}</div> | 279 | <div>{{ $worker->text }}</div> |
296 | </div> | 280 | </div> |
297 | 281 | ||
298 | <div class=""> | 282 | <div class=""> |
299 | <a href="{{ route('worker.basic_information') }}" class="button active">Редактировать основную информацию</a> | 283 | <a href="{{ route('worker.basic_information') }}" class="button active">Редактировать основную информацию</a> |
300 | </div> | 284 | </div> |
301 | </div> | 285 | </div> |
302 | </div> | 286 | </div> |
303 | 287 | ||
304 | <div class="mb-40" id="sertificate" name="sertificate"> | 288 | <div class="mb-40" id="sertificate" name="sertificate"> |
305 | <h3 class="cabinet__subtitle font30 mb-20">Сертификаты / документы</h3> | 289 | <h3 class="cabinet__subtitle font30 mb-20">Сертификаты / документы</h3> |
306 | 290 | ||
307 | @if($worker->sertificate->count()) | 291 | @if($worker->sertificate->count()) |
308 | @foreach($worker->sertificate as $sertificate) | 292 | @foreach($worker->sertificate as $sertificate) |
309 | <div class="one-sertificate"> | 293 | <div class="one-sertificate"> |
310 | <div class="sertificate-field sertificate-name"> | 294 | <div class="sertificate-field sertificate-name"> |
311 | <label class="bold">Название сертификата:</label> | 295 | <label class="bold">Название сертификата:</label> |
312 | <div>{{ $sertificate->name }}</div> | 296 | <div>{{ $sertificate->name }}</div> |
313 | </div> | 297 | </div> |
314 | <div class="sertificate-field"> | 298 | <div class="sertificate-field"> |
315 | <label class="bold">Действителен до:</label> | 299 | <label class="bold">Действителен до:</label> |
316 | <div>{{ date('d.m.Y', strtotime($sertificate->end_begin)) }}</div> | 300 | <div>{{ date('d.m.Y', strtotime($sertificate->end_begin)) }}</div> |
317 | </div> | 301 | </div> |
318 | <div class="sertificate-field sertificate-buttons"> | 302 | <div class="sertificate-field sertificate-buttons"> |
319 | <a href="{{ route('worker.edit_sertificate', ['worker' => $worker->id, 'doc' => $sertificate->id ]) }}" class="button button_light mr-10"> | 303 | <a href="{{ route('worker.edit_sertificate', ['worker' => $worker->id, 'doc' => $sertificate->id ]) }}" class="button button_light mr-10"> |
320 | <svg><use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use></svg> | 304 | <svg><use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use></svg> |
321 | </a> | 305 | </a> |
322 | <a href="{{ route('worker.delete_sertificate', ['doc' => $sertificate->id]) }}" class="button button_light"> | 306 | <a href="{{ route('worker.delete_sertificate', ['doc' => $sertificate->id]) }}" class="button button_light"> |
323 | <svg><use xlink:href="{{ asset('images/sprite.svg#del') }}"></use></svg> | 307 | <svg><use xlink:href="{{ asset('images/sprite.svg#del') }}"></use></svg> |
324 | </a> | 308 | </a> |
325 | </div> | 309 | </div> |
326 | </div> | 310 | </div> |
327 | @endforeach | 311 | @endforeach |
328 | @endif | 312 | @endif |
329 | 313 | ||
330 | <a class="button fit-content" href="{{ route('worker.new_sertificate',['worker' => $worker->id]) }}" id="button_new_doc" name="button_new_doc"> | 314 | <a class="button fit-content" href="{{ route('worker.new_sertificate',['worker' => $worker->id]) }}" id="button_new_doc" name="button_new_doc"> |
331 | Добавить сертификат / документ | 315 | Добавить сертификат / документ |
332 | </a> | 316 | </a> |
333 | </div> | 317 | </div> |
334 | 318 | ||
335 | <div class="cabinet__body-item mb-40" name="ajax_dop_diplomi" id="ajax_dop_diplomi"> | 319 | <div class="cabinet__body-item mb-40" name="ajax_dop_diplomi" id="ajax_dop_diplomi"> |
336 | <h3 class="cabinet__subtitle font30">Дополнительные документы</h3> | 320 | <h3 class="cabinet__subtitle font30">Дополнительные документы</h3> |
337 | 321 | ||
338 | <div class="cabinet__inputs" id="block_sertificate"> | 322 | <div class="cabinet__inputs" id="block_sertificate"> |
339 | @if ($info_blocks->count()) | 323 | @if ($info_blocks->count()) |
340 | @foreach ($info_blocks as $info_block) | 324 | @foreach ($info_blocks as $info_block) |
341 | <div class="cabinet__inputs-item column-count-3 form-group"> | 325 | <div class="cabinet__inputs-item column-count-3 form-group"> |
342 | <label class="form-group__label">{{ $info_block->name }}:</label> | 326 | <label class="form-group__label">{{ $info_block->name }}:</label> |
343 | 327 | ||
344 | <div class="form-group__item"> | 328 | <div class="form-group__item"> |
345 | @php $status = 0; @endphp | 329 | @php $status = 0; @endphp |
346 | @if (!empty($worker->dop_info[$info_block->id]) && $worker->dop_info[$info_block->id]['status']) | 330 | @if (!empty($worker->dop_info[$info_block->id]) && $worker->dop_info[$info_block->id]['status']) |
347 | @php $status = $worker->dop_info[$info_block->id]['status']; @endphp | 331 | @php $status = $worker->dop_info[$info_block->id]['status']; @endphp |
348 | @endif | 332 | @endif |
349 | {{ $additional_document_statuses[$status] }} | 333 | {{ $additional_document_statuses[$status] }} |
350 | </div> | 334 | </div> |
351 | </div> | 335 | </div> |
352 | @endforeach | 336 | @endforeach |
353 | @endif | 337 | @endif |
354 | </div> | 338 | </div> |
355 | 339 | ||
356 | <a class="button fit-content" href="{{ route('worker.additional_documents') }}"> | 340 | <a class="button fit-content" href="{{ route('worker.additional_documents') }}"> |
357 | Редактировать дополнительные документы | 341 | Редактировать дополнительные документы |
358 | </a> | 342 | </a> |
359 | </div> | 343 | </div> |
360 | 344 | ||
361 | <div class="cabinet__body-item mb-20"> | 345 | <div class="cabinet__body-item mb-20"> |
362 | <div> | 346 | <div> |
363 | <h3 class="cabinet__subtitle font30">Опыт работы</h3> | 347 | <h3 class="cabinet__subtitle font30">Опыт работы</h3> |
364 | <div class="">Начните заполнение анкеты с указания последнего места работы</div> | 348 | <div class="">Начните заполнение анкеты с указания последнего места работы</div> |
365 | </div> | 349 | </div> |
366 | 350 | ||
367 | <div class="cabinet__works"> | 351 | <div class="cabinet__works"> |
368 | @if (isset($worker->place_worker)) | 352 | @if (isset($worker->place_worker)) |
369 | @foreach($worker->place_worker as $company) | 353 | @foreach($worker->place_worker as $company) |
370 | <div class="cabinet__works-item"> | 354 | <div class="cabinet__works-item"> |
371 | <div class="cabinet__works-spoiler active"> | 355 | <div class="cabinet__works-spoiler active"> |
372 | <div class="cabinet__works-spoiler-left"> | 356 | <div class="cabinet__works-spoiler-left"> |
373 | <div class="cabinet__works-spoiler-text">Место работы {{ $loop->iteration }}</div> | 357 | <div class="cabinet__works-spoiler-text">Место работы {{ $loop->iteration }}</div> |
374 | </div> | 358 | </div> |
375 | <div class="cabinet__works-spoiler-buttons"> | 359 | <div class="cabinet__works-spoiler-buttons"> |
376 | <a href="{{ route('worker.edit_document', ['doc' => $company->id, 'worker' => $worker->id]) }}" type="button" class="button button_light mr-10 js-works-edit"> | 360 | <a href="{{ route('worker.edit_document', ['doc' => $company->id, 'worker' => $worker->id]) }}" type="button" class="button button_light mr-10 js-works-edit"> |
377 | <svg> | 361 | <svg> |
378 | <use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use> | 362 | <use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use> |
379 | </svg> | 363 | </svg> |
380 | </a> | 364 | </a> |
381 | <a href="{{ route('worker.delete_document', ['doc' => $company->id]) }}" class="button button_light js-works-remove"> | 365 | <a href="{{ route('worker.delete_document', ['doc' => $company->id]) }}" class="button button_light js-works-remove"> |
382 | <svg> | 366 | <svg> |
383 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> | 367 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> |
384 | </svg> | 368 | </svg> |
385 | </a> | 369 | </a> |
386 | </div> | 370 | </div> |
387 | </div> | 371 | </div> |
388 | 372 | ||
389 | <div class="cabinet__works-body"> | 373 | <div class="cabinet__works-body"> |
390 | <div class="cabinet__inputs"> | 374 | <div class="cabinet__inputs"> |
391 | <div class="cabinet__inputs-item column-count-3 form-group"> | 375 | <div class="cabinet__inputs-item column-count-3 form-group"> |
392 | <label class="form-group__label">Должность:</label> | 376 | <label class="form-group__label">Должность:</label> |
393 | <div class="form-group__item"> | 377 | <div class="form-group__item"> |
394 | {{ $company->job_title ?? '-' }} | 378 | {{ $company->job_title ?? '-' }} |
395 | </div> | 379 | </div> |
396 | </div> | 380 | </div> |
397 | 381 | ||
398 | <div class="cabinet__inputs-item column-count-3 form-group"> | 382 | <div class="cabinet__inputs-item column-count-3 form-group"> |
399 | <label class="form-group__label">Название т/х:</label> | 383 | <label class="form-group__label">Название т/х:</label> |
400 | <div class="form-group__item"> | 384 | <div class="form-group__item"> |
401 | {{ $company->teplohod ?? '-' }} | 385 | {{ $company->teplohod ?? '-' }} |
402 | </div> | 386 | </div> |
403 | </div> | 387 | </div> |
404 | <div class="cabinet__inputs-item column-count-3 form-group"> | 388 | <div class="cabinet__inputs-item column-count-3 form-group"> |
405 | <label class="form-group__label">Тип суда:</label> | 389 | <label class="form-group__label">Тип суда:</label> |
406 | <div class="form-group__item"> | 390 | <div class="form-group__item"> |
407 | {{ $company->GWT ?? '-' }} | 391 | {{ $company->GWT ?? '-' }} |
408 | </div> | 392 | </div> |
409 | </div> | 393 | </div> |
410 | <div class="cabinet__inputs-item column-count-3 form-group"> | 394 | <div class="cabinet__inputs-item column-count-3 form-group"> |
411 | <label class="form-group__label">Марка ГД:</label> | 395 | <label class="form-group__label">Марка ГД:</label> |
412 | <div class="form-group__item"> | 396 | <div class="form-group__item"> |
413 | {{ $company->Marka_GD ?? '-' }} | 397 | {{ $company->Marka_GD ?? '-' }} |
414 | </div> | 398 | </div> |
415 | </div> | 399 | </div> |
416 | <div class="cabinet__inputs-item column-count-3 form-group"> | 400 | <div class="cabinet__inputs-item column-count-3 form-group"> |
417 | <label class="form-group__label">Мощность ГД (кВТ):</label> | 401 | <label class="form-group__label">Мощность ГД (кВТ):</label> |
418 | <div class="form-group__item"> | 402 | <div class="form-group__item"> |
419 | {{ $company->KBT ?? '-' }} | 403 | {{ $company->KBT ?? '-' }} |
420 | </div> | 404 | </div> |
421 | </div> | 405 | </div> |
422 | <div class="cabinet__inputs-item column-count-3 form-group"> | 406 | <div class="cabinet__inputs-item column-count-3 form-group"> |
423 | <label class="form-group__label">Водоизмещение (DWT):</label> | 407 | <label class="form-group__label">Водоизмещение (DWT):</label> |
424 | <div class="form-group__item"> | 408 | <div class="form-group__item"> |
425 | {{ $company->GRT ?? '-' }} | 409 | {{ $company->GRT ?? '-' }} |
426 | </div> | 410 | </div> |
427 | </div> | 411 | </div> |
428 | <div class="cabinet__inputs-item column-count-3 form-group"> | 412 | <div class="cabinet__inputs-item column-count-3 form-group"> |
429 | <label class="form-group__label">Название компании:</label> | 413 | <label class="form-group__label">Название компании:</label> |
430 | <div class="form-group__item"> | 414 | <div class="form-group__item"> |
431 | {{ $company->name_company ?? '-' }} | 415 | {{ $company->name_company ?? '-' }} |
432 | </div> | 416 | </div> |
433 | </div> | 417 | </div> |
434 | <div class="cabinet__inputs-item column-count-3 form-group"> | 418 | <div class="cabinet__inputs-item column-count-3 form-group"> |
435 | <label class="form-group__label">Начало контракта:</label> | 419 | <label class="form-group__label">Начало контракта:</label> |
436 | <div class="form-group__item"> | 420 | <div class="form-group__item"> |
437 | {{ $company->begin_work ?? '-' }} | 421 | {{ $company->begin_work ?? '-' }} |
438 | </div> | 422 | </div> |
439 | </div> | 423 | </div> |
440 | <div class="cabinet__inputs-item column-count-3 form-group"> | 424 | <div class="cabinet__inputs-item column-count-3 form-group"> |
441 | <label class="form-group__label">Окончание контракта:</label> | 425 | <label class="form-group__label">Окончание контракта:</label> |
442 | <div class="form-group__item"> | 426 | <div class="form-group__item"> |
443 | {{ $company->end_work ?? '-' }} | 427 | {{ $company->end_work ?? '-' }} |
444 | </div> | 428 | </div> |
445 | </div> | 429 | </div> |
446 | 430 | ||
447 | </div> | 431 | </div> |
448 | </div> | 432 | </div> |
449 | </div> | 433 | </div> |
450 | @endforeach | 434 | @endforeach |
451 | @endif | 435 | @endif |
452 | </div> | 436 | </div> |
453 | 437 | ||
454 | <a href="{{ route('worker.add_document', ['worker' => $worker->id]) }}" id="new_work" name="new_work" class="button fit-content"> | 438 | <a href="{{ route('worker.add_document', ['worker' => $worker->id]) }}" id="new_work" name="new_work" class="button fit-content"> |
455 | Добавить место работы | 439 | Добавить место работы |
456 | </a> | 440 | </a> |
457 | </div> | 441 | </div> |
458 | 442 | ||
459 | <div id="prev_worker" name="prev_worker"> | 443 | <div id="prev_worker" name="prev_worker"> |
460 | <div> | 444 | <div> |
461 | <h3 class="cabinet__subtitle font30">Рекомендации</h3> | 445 | <h3 class="cabinet__subtitle font30">Рекомендации</h3> |
462 | <div class="">Укажите контакты компаний, которые могут дать рекомендации</div> | 446 | <div class="">Укажите контакты компаний, которые могут дать рекомендации</div> |
463 | </div> | 447 | </div> |
464 | 448 | ||
465 | @if ((isset($worker->prev_company)) && ($worker->prev_company->count() > 0)) | 449 | @if ((isset($worker->prev_company)) && ($worker->prev_company->count() > 0)) |
466 | @foreach($worker->prev_company as $it) | 450 | @foreach($worker->prev_company as $it) |
467 | <div class="cabinet__body-item"> | 451 | <div class="cabinet__body-item"> |
468 | <div class="cabinet__inputs mt-30"> | 452 | <div class="cabinet__inputs mt-30"> |
469 | <div class="cabinet__inputs-item column-count-3 form-group"> | 453 | <div class="cabinet__inputs-item column-count-3 form-group"> |
470 | <label class="form-group__label">Название компании:</label> | 454 | <label class="form-group__label">Название компании:</label> |
471 | <div class="form-group__item"> | 455 | <div class="form-group__item"> |
472 | {{ $it->name_company }} | 456 | {{ $it->name_company }} |
473 | </div> | 457 | </div> |
474 | </div> | 458 | </div> |
475 | <div class="cabinet__inputs-item column-count-3 form-group"> | 459 | <div class="cabinet__inputs-item column-count-3 form-group"> |
476 | <label class="form-group__label">ФИО сотрудника:</label> | 460 | <label class="form-group__label">ФИО сотрудника:</label> |
477 | <div class="form-group__item"> | 461 | <div class="form-group__item"> |
478 | {{ $it->direct }} | 462 | {{ $it->direct }} |
479 | </div> | 463 | </div> |
480 | </div> | 464 | </div> |
481 | <div class="cabinet__inputs-item column-count-3 form-group cabinet__inputs-item-buttons"> | 465 | <div class="cabinet__inputs-item column-count-3 form-group cabinet__inputs-item-buttons"> |
482 | <div class="flex"> | 466 | <div class="flex"> |
483 | <a href="{{ route('worker.edit_prev_company', ['worker' => $worker->id, 'doc' => $it->id ]) }}" class="button button_light mr-10"> | 467 | <a href="{{ route('worker.edit_prev_company', ['worker' => $worker->id, 'doc' => $it->id ]) }}" class="button button_light mr-10"> |
484 | <svg> | 468 | <svg> |
485 | <use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use> | 469 | <use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use> |
486 | </svg> | 470 | </svg> |
487 | </a> | 471 | </a> |
488 | <a href="{{ route('worker.delete_prev_company', ['doc' => $it->id]) }}" class="button button_light"> | 472 | <a href="{{ route('worker.delete_prev_company', ['doc' => $it->id]) }}" class="button button_light"> |
489 | <svg> | 473 | <svg> |
490 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> | 474 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> |
491 | </svg> | 475 | </svg> |
492 | </a> | 476 | </a> |
493 | </div> | 477 | </div> |
494 | </div> | 478 | </div> |
495 | <div class="cabinet__inputs-item column-count-3 form-group"> | 479 | <div class="cabinet__inputs-item column-count-3 form-group"> |
496 | <label class="form-group__label">Должность сотрудника:</label> | 480 | <label class="form-group__label">Должность сотрудника:</label> |
497 | <div class="form-group__item"> | 481 | <div class="form-group__item"> |
498 | {{ $it->telephone }} | 482 | {{ $it->telephone }} |
499 | </div> | 483 | </div> |
500 | </div> | 484 | </div> |
501 | <div class="cabinet__inputs-item column-count-3 form-group"> | 485 | <div class="cabinet__inputs-item column-count-3 form-group"> |
502 | <label class="form-group__label">Телефон сотрудника:</label> | 486 | <label class="form-group__label">Телефон сотрудника:</label> |
503 | <div class="form-group__item"> | 487 | <div class="form-group__item"> |
504 | {{ $it->telephone2 }} | 488 | {{ $it->telephone2 }} |
505 | </div> | 489 | </div> |
506 | </div> | 490 | </div> |
507 | <div class="cabinet__inputs-item column-count-3 form-group cabinet__inputs-item-buttons"></div> | 491 | <div class="cabinet__inputs-item column-count-3 form-group cabinet__inputs-item-buttons"></div> |
508 | </div> | 492 | </div> |
509 | </div> | 493 | </div> |
510 | @endforeach | 494 | @endforeach |
511 | @endif | 495 | @endif |
512 | </div> | 496 | </div> |
513 | 497 | ||
514 | <div class="cabinet__body-item"> | 498 | <div class="cabinet__body-item"> |
515 | <a class="button fit-content" href="{{ route('worker.new_prev_company',['worker' => $worker->id]) }}"> | 499 | <a class="button fit-content" href="{{ route('worker.new_prev_company',['worker' => $worker->id]) }}"> |
516 | Добавить контакт для рекомендации | 500 | Добавить контакт для рекомендации |
517 | </a> | 501 | </a> |
518 | </div> | 502 | </div> |
519 | </div> | 503 | </div> |
520 | </div> | 504 | </div> |
521 | </div> | 505 | </div> |
522 | </section> | 506 | </section> |
523 | @endsection | 507 | @endsection |
524 | 508 |