Commit f7c612504e78736d003c216d7cb7063ecfe911c7
1 parent
7305bd2375
Exists in
master
and in
1 other branch
Коммит по кабинету только
Showing 1 changed file with 2 additions and 2 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 | console.log('Test system'); | 5 | console.log('Test system'); |
6 | $(document).on('click', '#button_new_doc123', function() { | 6 | $(document).on('click', '#button_new_doc123', function() { |
7 | var this_ = $(this); | 7 | var this_ = $(this); |
8 | var val_ = this_.attr('data-val'); | 8 | var val_ = this_.attr('data-val'); |
9 | var new_diplom = $('#new_diplom'); | 9 | var new_diplom = $('#new_diplom'); |
10 | var new_diplom_val = new_diplom.val(); | 10 | var new_diplom_val = new_diplom.val(); |
11 | var new_data_begin = $('#new_data_begin'); | 11 | var new_data_begin = $('#new_data_begin'); |
12 | var new_data_begin_val = new_data_begin.val(); | 12 | var new_data_begin_val = new_data_begin.val(); |
13 | var new_data_end = $('#new_data_end'); | 13 | var new_data_end = $('#new_data_end'); |
14 | var new_data_end_val = new_data_end.val(); | 14 | var new_data_end_val = new_data_end.val(); |
15 | var education = $('#education'); | 15 | var education = $('#education'); |
16 | var education_val = education.val(); | 16 | var education_val = education.val(); |
17 | var worker_id = $('#new_id'); | 17 | var worker_id = $('#new_id'); |
18 | var worker_val = worker_id.val(); | 18 | var worker_val = worker_id.val(); |
19 | 19 | ||
20 | console.log('sort items ' + val_); | 20 | console.log('sort items ' + val_); |
21 | 21 | ||
22 | if (new_diplom_val == '') { | 22 | if (new_diplom_val == '') { |
23 | new_diplom.addClass('err_red'); | 23 | new_diplom.addClass('err_red'); |
24 | console.log('Border Up'); | 24 | console.log('Border Up'); |
25 | } else { | 25 | } else { |
26 | $.ajax({ | 26 | $.ajax({ |
27 | type: "GET", | 27 | type: "GET", |
28 | url: "{{ route('worker.add_serificate') }}", | 28 | url: "{{ route('worker.add_serificate') }}", |
29 | data: "worker_id="+worker_val+"&date_begin="+new_data_begin_val + "&end_begin=" + new_data_end_val + "&name=" + new_diplom_val + "&education="+education_val, | 29 | data: "worker_id="+worker_val+"&date_begin="+new_data_begin_val + "&end_begin=" + new_data_end_val + "&name=" + new_diplom_val + "&education="+education_val, |
30 | success: function (data) { | 30 | success: function (data) { |
31 | console.log('Блокировка...'); | 31 | console.log('Блокировка...'); |
32 | console.log(data); | 32 | console.log(data); |
33 | $('#sertificate').html(data); | 33 | $('#sertificate').html(data); |
34 | if (new_diplom.hasClass('err_red')) new_diplom.removeClass('err_red'); | 34 | if (new_diplom.hasClass('err_red')) new_diplom.removeClass('err_red'); |
35 | }, | 35 | }, |
36 | headers: { | 36 | headers: { |
37 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 37 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
38 | }, | 38 | }, |
39 | error: function (data) { | 39 | error: function (data) { |
40 | data = JSON.stringify(data); | 40 | data = JSON.stringify(data); |
41 | console.log('Error: ' + data); | 41 | console.log('Error: ' + data); |
42 | } | 42 | } |
43 | }); | 43 | }); |
44 | } | 44 | } |
45 | }); | 45 | }); |
46 | 46 | ||
47 | $(document).on('click', '#btn_new_diplom123', function() { | 47 | $(document).on('click', '#btn_new_diplom123', function() { |
48 | var this_ = $(this); | 48 | var this_ = $(this); |
49 | var val_ = this_.attr('data-val'); | 49 | var val_ = this_.attr('data-val'); |
50 | var documents = $('#documents'); | 50 | var documents = $('#documents'); |
51 | var doc_val = documents.val(); | 51 | var doc_val = documents.val(); |
52 | var block = $('#ajax_dop_diplomi'); | 52 | var block = $('#ajax_dop_diplomi'); |
53 | 53 | ||
54 | console.log('worker_id='+val_+'it_infoblock='+ doc_val); | 54 | console.log('worker_id='+val_+'it_infoblock='+ doc_val); |
55 | 55 | ||
56 | $.ajax({ | 56 | $.ajax({ |
57 | type: "GET", | 57 | type: "GET", |
58 | url: "", | 58 | url: "", |
59 | data: "worker_id="+val_+"&infoblok_id="+doc_val, | 59 | data: "worker_id="+val_+"&infoblok_id="+doc_val, |
60 | success: function (data) { | 60 | success: function (data) { |
61 | location.url = data; | 61 | location.url = data; |
62 | console.log('Добавление документа-диплома'); | 62 | console.log('Добавление документа-диплома'); |
63 | console.log(data); | 63 | console.log(data); |
64 | block.html(data); | 64 | block.html(data); |
65 | }, | 65 | }, |
66 | headers: { | 66 | headers: { |
67 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 67 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
68 | }, | 68 | }, |
69 | error: function (data) { | 69 | error: function (data) { |
70 | data = JSON.stringify(data); | 70 | data = JSON.stringify(data); |
71 | console.log('Error: ' + data); | 71 | console.log('Error: ' + data); |
72 | } | 72 | } |
73 | }); | 73 | }); |
74 | }); | 74 | }); |
75 | 75 | ||
76 | $(document).on('click', '#new_work', function() { | 76 | $(document).on('click', '#new_work', function() { |
77 | var this_ = $(this); | 77 | var this_ = $(this); |
78 | var val_ = this_.attr('data-val'); | 78 | var val_ = this_.attr('data-val'); |
79 | var new_diplom = $('#new_diplom').val(); | 79 | var new_diplom = $('#new_diplom').val(); |
80 | var new_data_begin = $('#new_data_begin').val(); | 80 | var new_data_begin = $('#new_data_begin').val(); |
81 | var new_data_end = $('#new_data_end').val(); | 81 | var new_data_end = $('#new_data_end').val(); |
82 | var new_job_title = $('#new_job_title').val(); | 82 | var new_job_title = $('#new_job_title').val(); |
83 | var new_teplohod = $('#new_teplohod').val(); | 83 | var new_teplohod = $('#new_teplohod').val(); |
84 | var new_GWT = $('#new_GWT').val(); | 84 | var new_GWT = $('#new_GWT').val(); |
85 | var new_KBT = $('#new_KBT').val(); | 85 | var new_KBT = $('#new_KBT').val(); |
86 | var new_Begin_work = $('#new_Begin_work').val(); | 86 | var new_Begin_work = $('#new_Begin_work').val(); |
87 | var new_End_work = $('#new_End_work').val(); | 87 | var new_End_work = $('#new_End_work').val(); |
88 | var new_name_company = $('#new_name_company').val(); | 88 | var new_name_company = $('#new_name_company').val(); |
89 | 89 | ||
90 | console.log('worker_id='+val_+'it_infoblock='+ doc_val); | 90 | console.log('worker_id='+val_+'it_infoblock='+ doc_val); |
91 | 91 | ||
92 | $.ajax({ | 92 | $.ajax({ |
93 | type: "GET", | 93 | type: "GET", |
94 | url: "", | 94 | url: "", |
95 | data: "worker_id="+val_+"&infoblok_id="+doc_val, | 95 | data: "worker_id="+val_+"&infoblok_id="+doc_val, |
96 | success: function (data) { | 96 | success: function (data) { |
97 | location.url = data; | 97 | location.url = data; |
98 | console.log('Добавление документа-диплома'); | 98 | console.log('Добавление документа-диплома'); |
99 | console.log(data); | 99 | console.log(data); |
100 | block.html(data); | 100 | block.html(data); |
101 | }, | 101 | }, |
102 | headers: { | 102 | headers: { |
103 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 103 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
104 | }, | 104 | }, |
105 | error: function (data) { | 105 | error: function (data) { |
106 | data = JSON.stringify(data); | 106 | data = JSON.stringify(data); |
107 | console.log('Error: ' + data); | 107 | console.log('Error: ' + data); |
108 | } | 108 | } |
109 | }); | 109 | }); |
110 | }); | 110 | }); |
111 | 111 | ||
112 | $(document).on('click', '#old_year', function() { | 112 | $(document).on('click', '#old_year', function() { |
113 | var this_ = $(this); | 113 | var this_ = $(this); |
114 | var val = this_.val(); | 114 | var val = this_.val(); |
115 | 115 | ||
116 | if (val < 0) | 116 | if (val < 0) |
117 | $('#old_year').val(0); | 117 | $('#old_year').val(0); |
118 | 118 | ||
119 | console.log('Возраст не может выполнить такую операцию'); | 119 | console.log('Возраст не может выполнить такую операцию'); |
120 | }); | 120 | }); |
121 | 121 | ||
122 | $(document).on('change', '.sertificates_js', function() { | 122 | $(document).on('change', '.sertificates_js', function() { |
123 | var this_ = $(this); | 123 | var this_ = $(this); |
124 | var infoblock_id = this_.attr('data-info'); | 124 | var infoblock_id = this_.attr('data-info'); |
125 | var val = this_.val(); | 125 | var val = this_.val(); |
126 | var block = $('#block_sertificate'); | 126 | var block = $('#block_sertificate'); |
127 | 127 | ||
128 | console.log('infoblok='+infoblock_id); | 128 | console.log('infoblok='+infoblock_id); |
129 | console.log('val='+val); | 129 | console.log('val='+val); |
130 | 130 | ||
131 | $.ajax({ | 131 | $.ajax({ |
132 | type: "GET", | 132 | type: "GET", |
133 | url: "{{ route('worker.delete_add_diplom', ['worker' => $Worker[0]->id]) }}", | 133 | url: "{{ route('worker.delete_add_diplom', ['worker' => $Worker[0]->id]) }}", |
134 | data: "&infoblok_id=" + infoblock_id+"&val="+val, | 134 | data: "&infoblok_id=" + infoblock_id+"&val="+val, |
135 | success: function (data) { | 135 | success: function (data) { |
136 | location.url = data; | 136 | location.url = data; |
137 | console.log('Удаление левых документов + добавление реальных документов'); | 137 | console.log('Удаление левых документов + добавление реальных документов'); |
138 | 138 | ||
139 | console.log('Info 100% +'+ data); | 139 | console.log('Info 100% +'+ data); |
140 | //window.location.href = data; | 140 | //window.location.href = data; |
141 | //block.html(data); | 141 | //block.html(data); |
142 | }, | 142 | }, |
143 | headers: { | 143 | headers: { |
144 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 144 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
145 | }, | 145 | }, |
146 | error: function (data) { | 146 | error: function (data) { |
147 | data = JSON.stringify(data); | 147 | data = JSON.stringify(data); |
148 | console.log('Error: ' + data); | 148 | console.log('Error: ' + data); |
149 | } | 149 | } |
150 | }); | 150 | }); |
151 | 151 | ||
152 | }); | 152 | }); |
153 | 153 | ||
154 | </script> | 154 | </script> |
155 | @endsection | 155 | @endsection |
156 | 156 | ||
157 | @section('content') | 157 | @section('content') |
158 | <section class="cabinet"> | 158 | <section class="cabinet"> |
159 | <div class="container"> | 159 | <div class="container"> |
160 | <ul class="breadcrumbs cabinet__breadcrumbs"> | 160 | <ul class="breadcrumbs cabinet__breadcrumbs"> |
161 | <li><a href="{{ route('index') }}">Главная</a></li> | 161 | <li><a href="{{ route('index') }}">Главная</a></li> |
162 | <li><b>Личный кабинет</b></li> | 162 | <li><b>Личный кабинет</b></li> |
163 | </ul> | 163 | </ul> |
164 | <div class="cabinet__wrapper"> | 164 | <div class="cabinet__wrapper"> |
165 | <div class="cabinet__side"> | 165 | <div class="cabinet__side"> |
166 | <div class="cabinet__side-toper"> | 166 | <div class="cabinet__side-toper"> |
167 | @include('workers.emblema') | 167 | @include('workers.emblema') |
168 | 168 | ||
169 | </div> | 169 | </div> |
170 | 170 | ||
171 | @include('workers.menu', ['item' => 1]) | 171 | @include('workers.menu', ['item' => 1]) |
172 | </div> | 172 | </div> |
173 | <form class="cabinet__body" action="{{ route('worker.cabinet_save', ['worker' => $Worker[0]->id]) }}" enctype="multipart/form-data" method="POST"> | 173 | <form class="cabinet__body" action="{{ route('worker.cabinet_save', ['worker' => $Worker[0]->id]) }}" enctype="multipart/form-data" method="POST"> |
174 | @csrf | 174 | @csrf |
175 | @include('messages_error') | 175 | @include('messages_error') |
176 | <div class="cabinet__body-item"> | 176 | <div class="cabinet__body-item"> |
177 | <div class="cabinet__anketa"> | 177 | <div class="cabinet__anketa"> |
178 | <h2 class="title cabinet__title">Моя анкета</h2> | 178 | <h2 class="title cabinet__title">Моя анкета</h2> |
179 | <div class="cabinet__anketa-buttons"> | 179 | <div class="cabinet__anketa-buttons"> |
180 | <a href="{{ route('worker.up', ['worker' => $Worker[0]->id]) }}" class="button">Поднять резюме</a> | 180 | <a href="{{ route('worker.up', ['worker' => $Worker[0]->id]) }}" class="button">Поднять резюме</a> |
181 | <a href="{{ route('resume_download', ['worker' => $Worker[0]->id]) }}" target="_blank" class="button"> | 181 | <a href="{{ route('resume_download', ['worker' => $Worker[0]->id]) }}" target="_blank" class="button"> |
182 | <svg> | 182 | <svg> |
183 | <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use> | 183 | <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use> |
184 | </svg> | 184 | </svg> |
185 | Скачать резюме | 185 | Скачать резюме |
186 | </a> | 186 | </a> |
187 | </div> | 187 | </div> |
188 | </div> | 188 | </div> |
189 | </div> | 189 | </div> |
190 | <div class="cabinet__body-item"> | 190 | <div class="cabinet__body-item"> |
191 | <div class="cabinet__stats"> | 191 | <div class="cabinet__stats"> |
192 | <h3 class="cabinet__subtitle cabinet__stats-title">Статистика</h3> | 192 | <h3 class="cabinet__subtitle cabinet__stats-title">Статистика</h3> |
193 | <div class="cabinet__stats-body"> | 193 | <div class="cabinet__stats-body"> |
194 | <div class="cabinet__stats-item"> | 194 | <div class="cabinet__stats-item"> |
195 | <svg> | 195 | <svg> |
196 | <use xlink:href="{{ asset('images/sprite.svg#eye-3') }}"></use> | 196 | <use xlink:href="{{ asset('images/sprite.svg#eye-3') }}"></use> |
197 | </svg> | 197 | </svg> |
198 | <span>Просмотров:</span> | 198 | <span>Просмотров:</span> |
199 | <b>@if (isset($stat[0]->lookin)) {{ $stat[0]->lookin }} @else 0 @endif</b> | 199 | <b>@if (isset($stat[0]->lookin)) {{ $stat[0]->lookin }} @else 0 @endif</b> |
200 | </div> | 200 | </div> |
201 | <div class="cabinet__stats-item"> | 201 | <div class="cabinet__stats-item"> |
202 | <svg> | 202 | <svg> |
203 | <use xlink:href="{{ asset('images/sprite.svg#warning') }}"></use> | 203 | <use xlink:href="{{ asset('images/sprite.svg#warning') }}"></use> |
204 | </svg> | 204 | </svg> |
205 | <span>Отзывов:</span> | 205 | <span>Отзывов:</span> |
206 | <b>@if (isset($stat[0]->message)) {{ $stat[0]->message }} @else 0 @endif</b> | 206 | <b>@if (isset($stat[0]->message)) {{ $stat[0]->message }} @else 0 @endif</b> |
207 | </div> | 207 | </div> |
208 | </div> | 208 | </div> |
209 | <div class="cabinet__stats-subtitle">Анкета заполнена на {{ $persent }}%</div> | 209 | <div class="cabinet__stats-subtitle">Анкета заполнена на {{ $persent }}%</div> |
210 | <div class="cabinet__stats-line"> | 210 | <div class="cabinet__stats-line"> |
211 | <span style="width:{{ $persent }}%"></span> | 211 | <span style="width:{{ $persent }}%"></span> |
212 | </div> | 212 | </div> |
213 | <div class="cabinet__stats-bottom">Заполните профиль, чтобы повысить процент анкеты на 80%</div> | 213 | <div class="cabinet__stats-bottom">Заполните профиль, чтобы повысить процент анкеты на 80%</div> |
214 | </div> | 214 | </div> |
215 | </div> | 215 | </div> |
216 | <div class="cabinet__body-item"> | 216 | <div class="cabinet__body-item"> |
217 | <h3 class="cabinet__subtitle">Профиль</h3> | 217 | <h3 class="cabinet__subtitle">Профиль</h3> |
218 | <div class="cabinet__avatar"> | 218 | <div class="cabinet__avatar"> |
219 | <div class="cabinet__avatar-pic"> | 219 | <div class="cabinet__avatar-pic"> |
220 | 220 | ||
221 | @if (!empty($Worker[0]->photo)) | 221 | @if (!empty($Worker[0]->photo)) |
222 | <img src="{{ asset(Storage::url($Worker[0]->photo)) }}"/> | 222 | <img src="{{ asset(Storage::url($Worker[0]->photo)) }}"/> |
223 | @else | 223 | @else |
224 | <svg> | 224 | <svg> |
225 | <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> | 225 | <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> |
226 | </svg> | 226 | </svg> |
227 | @endif | 227 | @endif |
228 | </div> | 228 | </div> |
229 | <div class="cabinet__avatar-form"> | 229 | <div class="cabinet__avatar-form"> |
230 | <label class="file"> | 230 | <label class="file"> |
231 | <span class="file__input"> | 231 | <span class="file__input"> |
232 | <input type="file" name="photo" id="photo"> | 232 | <input type="file" name="photo" id="photo"> |
233 | 233 | ||
234 | <span class="button"> | 234 | <span class="button"> |
235 | <svg> | 235 | <svg> |
236 | <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> | 236 | <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> |
237 | </svg> | 237 | </svg> |
238 | Загрузить | 238 | Загрузить |
239 | </span> | 239 | </span> |
240 | </span> | 240 | </span> |
241 | </label> | 241 | </label> |
242 | <p class="cabinet__text">Загрузите фотографию в формате svg., jpg., jpeg., png.</p> | 242 | <p class="cabinet__text">Загрузите фотографию в формате svg., jpg., jpeg., png.</p> |
243 | </div> | 243 | </div> |
244 | </div> | 244 | </div> |
245 | </div> | 245 | </div> |
246 | <div class="cabinet__body-item"> | 246 | <div class="cabinet__body-item"> |
247 | <div class="cabinet__inputs"> | 247 | <div class="cabinet__inputs"> |
248 | <div class="cabinet__inputs-item form-group"> | 248 | <div class="cabinet__inputs-item form-group"> |
249 | <label class="form-group__label">Электронная почта *</label> | 249 | <label class="form-group__label">Электронная почта *</label> |
250 | <div class="form-group__item"> | 250 | <div class="form-group__item"> |
251 | <input type="email" name="email" id="email" value="{{ $Worker[0]->email }}" class="input" placeholder="info@rekamore.su" required> | 251 | <input type="email" name="email" id="email" value="{{ $Worker[0]->email }}" class="input" placeholder="info@rekamore.su" required> |
252 | </div> | 252 | </div> |
253 | </div> | 253 | </div> |
254 | <div class="cabinet__inputs-item form-group"> | 254 | <div class="cabinet__inputs-item form-group"> |
255 | <label class="form-group__label">Статус</label> | 255 | <label class="form-group__label">Статус</label> |
256 | <div class="form-group__item"> | 256 | <div class="form-group__item"> |
257 | <div class="select"> | 257 | <div class="select"> |
258 | <select class="js-select2" name="status_work" id="status_work"> | 258 | <select class="js-select2" name="status_work" id="status_work"> |
259 | <option value="1" @if ($Worker[0]->status_work == 1) selected @endif>Не указано</option> | 259 | <option value="1" @if ($Worker[0]->status_work == 1) selected @endif>Не указано</option> |
260 | <option value="2" @if ($Worker[0]->status_work == 2) selected @endif>Не ищу работу</option> | 260 | <option value="2" @if ($Worker[0]->status_work == 2) selected @endif>Не ищу работу</option> |
261 | <option value="0" @if ($Worker[0]->status_work == 0) selected @endif>Ищу работу</option> | 261 | <option value="0" @if ($Worker[0]->status_work == 0) selected @endif>Ищу работу</option> |
262 | </select> | 262 | </select> |
263 | </div> | 263 | </div> |
264 | </div> | 264 | </div> |
265 | </div> | 265 | </div> |
266 | <!--<div class="cabinet__inputs-item form-group"> | 266 | <!--<div class="cabinet__inputs-item form-group"> |
267 | <label class="form-group__label">Статус *</label> | 267 | <label class="form-group__label">Статус *</label> |
268 | <div class="form-group__item"> | 268 | <div class="form-group__item"> |
269 | <input type="text" class="input" required> | 269 | <input type="text" class="input" required> |
270 | </div> | 270 | </div> |
271 | </div>--> | 271 | </div>--> |
272 | @if (isset($Worker[0]->users)) | 272 | @if (isset($Worker[0]->users)) |
273 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 273 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
274 | <label class="form-group__label">Фамилия *</label> | 274 | <label class="form-group__label">Фамилия *</label> |
275 | <div class="form-group__item"> | 275 | <div class="form-group__item"> |
276 | <input type="text" name="surname" id="surmane" class="input" value="{{ $Worker[0]->users->surname }}" placeholder="Филиппов" required> | 276 | <input type="text" name="surname" id="surmane" class="input" value="{{ $Worker[0]->users->surname }}" placeholder="Филиппов" required> |
277 | </div> | 277 | </div> |
278 | </div> | 278 | </div> |
279 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 279 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
280 | <label class="form-group__label">Имя *</label> | 280 | <label class="form-group__label">Имя *</label> |
281 | <div class="form-group__item"> | 281 | <div class="form-group__item"> |
282 | <input type="text" name="name_man" id="name_man" class="input" value="{{ $Worker[0]->users->name_man }}" placeholder="Егор" required> | 282 | <input type="text" name="name_man" id="name_man" class="input" value="{{ $Worker[0]->users->name_man }}" placeholder="Егор" required> |
283 | </div> | 283 | </div> |
284 | </div> | 284 | </div> |
285 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 285 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
286 | <label class="form-group__label">Отчество *</label> | 286 | <label class="form-group__label">Отчество *</label> |
287 | <div class="form-group__item"> | 287 | <div class="form-group__item"> |
288 | <input type="text" class="input" name="surname2" id="surmane2" value="{{ $Worker[0]->users->surname2 }}" placeholder="Алексеевич"> | 288 | <input type="text" class="input" name="surname2" id="surmane2" value="{{ $Worker[0]->users->surname2 }}" placeholder="Алексеевич"> |
289 | </div> | 289 | </div> |
290 | </div> | 290 | </div> |
291 | @endif | 291 | @endif |
292 | </div> | 292 | </div> |
293 | </div> | 293 | </div> |
294 | <div class="cabinet__body-item"> | 294 | <div class="cabinet__body-item"> |
295 | <h3 class="cabinet__subtitle">Основная информация</h3> | 295 | <h3 class="cabinet__subtitle">Основная информация</h3> |
296 | <div class="cabinet__inputs"> | 296 | <div class="cabinet__inputs"> |
297 | <div class="cabinet__inputs-item cabinet__inputs-item_min form-group"> | 297 | <div class="cabinet__inputs-item cabinet__inputs-item_min form-group"> |
298 | <label class="form-group__label">Возраст</label> | 298 | <label class="form-group__label">Возраст</label> |
299 | <div class="form-group__item"> | 299 | <div class="form-group__item"> |
300 | <input type="number" name="old_year" id="old_year" value="{{ $Worker[0]->old_year }}" class="input" placeholder="0" required> | 300 | <input type="number" name="old_year" id="old_year" value="{{ $Worker[0]->old_year }}" class="input" placeholder="0" required> |
301 | </div> | 301 | </div> |
302 | </div> | 302 | </div> |
303 | <div class="cabinet__inputs-item cabinet__inputs-item_max form-group"> | 303 | <div class="cabinet__inputs-item cabinet__inputs-item_max form-group"> |
304 | <label class="form-group__label">Желаемые вакансии</label> | 304 | <label class="form-group__label">Желаемые вакансии</label> |
305 | <div class="form-group__item"> | 305 | <div class="form-group__item"> |
306 | <div class="select"> | 306 | <div class="select"> |
307 | <select class="js-select2" name="job_title_id[]" id="job_title_id[]" multiple="multiple"> | 307 | <select class="js-select2" name="job_title_id[]" id="job_title_id[]" multiple="multiple"> |
308 | @if ($Job_titles->count()) | 308 | @if ($Job_titles->count()) |
309 | @foreach($Job_titles as $it) | 309 | @foreach($Job_titles as $it) |
310 | @if (isset($Worker[0]->job_titles)) | 310 | @if (isset($Worker[0]->job_titles)) |
311 | @if ($Worker[0]->job_titles->count()) | 311 | @if ($Worker[0]->job_titles->count()) |
312 | @foreach($Worker[0]->job_titles as $select) | 312 | @foreach($Worker[0]->job_titles as $select) |
313 | <option value="{{ $it->id }}" @if ($it->id == $select->id) selected @endif>{{ $it->name }}</option> | 313 | <option value="{{ $it->id }}" @if ($it->id == $select->id) selected @endif>{{ $it->name }}</option> |
314 | @endforeach | 314 | @endforeach |
315 | @else | 315 | @else |
316 | <option value="{{ $it->id }}">{{ $it->name }} ({{ $it->id }})</option> | 316 | <option value="{{ $it->id }}">{{ $it->name }} ({{ $it->id }})</option> |
317 | @endif | 317 | @endif |
318 | @else | 318 | @else |
319 | <option value="{{ $it->id }}">{{ $it->name }} ({{ $it->id }})</option> | 319 | <option value="{{ $it->id }}">{{ $it->name }} ({{ $it->id }})</option> |
320 | @endif | 320 | @endif |
321 | @endforeach | 321 | @endforeach |
322 | @endif | 322 | @endif |
323 | </select> | 323 | </select> |
324 | </div> | 324 | </div> |
325 | </div> | 325 | </div> |
326 | </div> | 326 | </div> |
327 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 327 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
328 | <label class="form-group__label">Город</label> | 328 | <label class="form-group__label">Город</label> |
329 | <div class="form-group__item"> | 329 | <div class="form-group__item"> |
330 | <input type="text" name="city" id="city" value="{{ $Worker[0]->city }}" class="input" placeholder="Челябинск" required> | 330 | <input type="text" name="city" id="city" value="{{ $Worker[0]->city }}" class="input" placeholder="Челябинск" required> |
331 | </div> | 331 | </div> |
332 | </div> | 332 | </div> |
333 | <div class="cabinet__inputs-item form-group"> | 333 | <div class="cabinet__inputs-item form-group"> |
334 | <label class="form-group__label">Опыт работы</label> | 334 | <label class="form-group__label">Опыт работы</label> |
335 | <div class="form-group__item"> | 335 | <div class="form-group__item"> |
336 | <div class="select"> | 336 | <div class="select"> |
337 | <select class="js-select2" id="experience" name="experience"> | 337 | <select class="js-select2" id="experience" name="experience"> |
338 | <option value="Не указано" @if (empty($Worker[0]->experience)) selected @endif>Не указано</option> | 338 | <option value="Не указано" @if (empty($Worker[0]->experience)) selected @endif>Не указано</option> |
339 | <option value="меньше 1 года" @if ($Worker[0]->experience == 'меньше 1 года') selected @endif>меньше 1 года</option> | 339 | <option value="меньше 1 года" @if ($Worker[0]->experience == 'меньше 1 года') selected @endif>меньше 1 года</option> |
340 | <option value="от 1 года до 3 лет" @if ($Worker[0]->experience == 'от 1 года до 3 лет') selected @endif>от 1 года до 3 лет</option> | 340 | <option value="от 1 года до 3 лет" @if ($Worker[0]->experience == 'от 1 года до 3 лет') selected @endif>от 1 года до 3 лет</option> |
341 | <option value="от 3 до 5 лет" @if ($Worker[0]->experience == 'от 3 до 5 лет') selected @endif>от 3 до 5 лет</option> | 341 | <option value="от 3 до 5 лет" @if ($Worker[0]->experience == 'от 3 до 5 лет') selected @endif>от 3 до 5 лет</option> |
342 | <option value="от 5 до 10 лет" @if ($Worker[0]->experience == 'от 5 до 10 лет') selected @endif>от 5 до 10 лет</option> | 342 | <option value="от 5 до 10 лет" @if ($Worker[0]->experience == 'от 5 до 10 лет') selected @endif>от 5 до 10 лет</option> |
343 | <option value="Больше 10 лет" @if ($Worker[0]->experience == 'Больше 10 лет') selected @endif>Больше 10 лет</option> | 343 | <option value="Больше 10 лет" @if ($Worker[0]->experience == 'Больше 10 лет') selected @endif>Больше 10 лет</option> |
344 | </select> | 344 | </select> |
345 | </div> | 345 | </div> |
346 | </div> | 346 | </div> |
347 | </div> | 347 | </div> |
348 | 348 | ||
349 | <div class="cabinet__inputs-item form-group"> | 349 | <div class="cabinet__inputs-item form-group"> |
350 | <label class="form-group__label">Номер телефона 1</label> | 350 | <label class="form-group__label">Номер телефона 1</label> |
351 | <div class="form-group__item"> | 351 | <div class="form-group__item"> |
352 | <input type="tel" name="telephone" id="telephone" value="{{ old('telephone') ?? $Worker[0]->telephone ?? '' }}" class="input" placeholder="+7 (___) ___-__-__" required> | 352 | <input type="tel" name="telephone" id="telephone" value="{{ old('telephone') ?? $Worker[0]->telephone ?? '' }}" class="input" placeholder="+7 (___) ___-__-__" required> |
353 | </div> | 353 | </div> |
354 | </div> | 354 | </div> |
355 | <div class="cabinet__inputs-item form-group"> | 355 | <div class="cabinet__inputs-item form-group"> |
356 | <label class="form-group__label">Номер телефона 2</label> | 356 | <label class="form-group__label">Номер телефона 2</label> |
357 | <div class="form-group__item"> | 357 | <div class="form-group__item"> |
358 | <input type="tel" name="telephone2" id="telephon2" value="{{ old('telephone2') ?? $Worker[0]->telephone2 ?? '' }}" class="input" placeholder="+7 (___) ___-__-__"> | 358 | <input type="tel" name="telephone2" id="telephon2" value="{{ old('telephone2') ?? $Worker[0]->telephone2 ?? '' }}" class="input" placeholder="+7 (___) ___-__-__"> |
359 | </div> | 359 | </div> |
360 | </div> | 360 | </div> |
361 | </div> | 361 | </div> |
362 | </div> | 362 | </div> |
363 | 363 | ||
364 | <div class="cabinet__body-item"> | 364 | <div class="cabinet__body-item"> |
365 | <h4 class="cabinet__h4">О себе</h4> | 365 | <h4 class="cabinet__h4">О себе</h4> |
366 | <textarea class="textarea" name="text" id="text" placeholder="Не указано">{{ $Worker[0]->text }}</textarea> | 366 | <textarea class="textarea" name="text" id="text" placeholder="Не указано">{{ $Worker[0]->text }}</textarea> |
367 | <div class="cabinet__buttons"> | 367 | <div class="cabinet__buttons"> |
368 | <button type="submit" class="button">Сохранить</button> | 368 | <button type="submit" class="button">Сохранить</button> |
369 | <label class="file"> | 369 | <label class="file"> |
370 | <span class="file__input"> | 370 | <span class="file__input"> |
371 | <input type="file" name="file" id="file"> | 371 | <input type="file" name="file" id="file"> |
372 | <span class="button button_light">@if (empty($Worker[0]->file)) Прикрепить резюме @else Обновить резюме @endif</span> | 372 | <span class="button button_light">@if (empty($Worker[0]->file)) Прикрепить резюме @else Обновить резюме @endif</span> |
373 | </span> | 373 | </span> |
374 | </label> | 374 | </label> |
375 | </div> | 375 | </div> |
376 | </div> | 376 | </div> |
377 | 377 | ||
378 | 378 | ||
379 | <div id="sertificate" name="sertificate"> | 379 | <div id="sertificate" name="sertificate"> |
380 | @if ((isset($Worker[0]->sertificate)) && ($Worker[0]->sertificate->count() > 0)) | 380 | @if ((isset($Worker[0]->sertificate)) && ($Worker[0]->sertificate->count() > 0)) |
381 | @php $i = 0; @endphp | 381 | @php $i = 0; @endphp |
382 | @foreach($Worker[0]->sertificate as $it) | 382 | @foreach($Worker[0]->sertificate as $it) |
383 | <div style="margin-bottom: 20px" class="cabinet__body-item"> | 383 | <div style="margin-bottom: 20px" class="cabinet__body-item"> |
384 | @if ($i == 0) | 384 | @if ($i == 0) |
385 | <h3 class="cabinet__subtitle">Сертификаты / документы</h3> | 385 | <h3 class="cabinet__subtitle">Сертификаты / документы</h3> |
386 | @endif | 386 | @endif |
387 | <h4 class="cabinet__h4">Сертификат {{ $i+1 }}</h4> | 387 | <h4 class="cabinet__h4">Сертификат {{ $i+1 }}</h4> |
388 | <div class="cabinet__inputs"> | 388 | <div class="cabinet__inputs"> |
389 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 389 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
390 | <label class="form-group__label">Название сертификата:</label> | 390 | <label class="form-group__label">Название сертификата:</label> |
391 | <div class="form-group__item"> | 391 | <div class="form-group__item"> |
392 | <input type="text" class="input" value="{{ $it->name }}" disabled> | 392 | <input type="text" class="input" value="{{ $it->name }}" > |
393 | </div> | 393 | </div> |
394 | </div> | 394 | </div> |
395 | <!--<div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 395 | <!--<div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
396 | <label class="form-group__label">Учебное заведение</label> | 396 | <label class="form-group__label">Учебное заведение</label> |
397 | <div class="form-group__item"> | 397 | <div class="form-group__item"> |
398 | <input type="text" class="input" value=" $it->education }}" disabled> | 398 | <input type="text" class="input" value=" $it->education }}" disabled> |
399 | </div> | 399 | </div> |
400 | </div>--> | 400 | </div>--> |
401 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 401 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
402 | <label class="form-group__label">Действителен до:</label> | 402 | <label class="form-group__label">Действителен до:</label> |
403 | <div class="form-group__item"> | 403 | <div class="form-group__item"> |
404 | <input type="text" class="input" value="{{ $it->end_begin }}" disabled> | 404 | <input type="text" class="input" value="{{ $it->end_begin }}"> |
405 | </div> | 405 | </div> |
406 | </div> | 406 | </div> |
407 | <a href="{{ route('worker.delete_sertificate', ['doc' => $it->id]) }}" class="button button_light"> | 407 | <a href="{{ route('worker.delete_sertificate', ['doc' => $it->id]) }}" class="button button_light"> |
408 | <svg> | 408 | <svg> |
409 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> | 409 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> |
410 | </svg> | 410 | </svg> |
411 | Удалить | 411 | Удалить |
412 | </a> | 412 | </a> |
413 | <a href="{{ route('worker.edit_sertificate', ['worker' => $Worker[0]->id, 'doc' => $it->id ]) }}" class="button">Редактирование</a> | 413 | <a href="{{ route('worker.edit_sertificate', ['worker' => $Worker[0]->id, 'doc' => $it->id ]) }}" class="button">Редактирование</a> |
414 | </div> | 414 | </div> |
415 | </div> | 415 | </div> |
416 | @php $i++ @endphp | 416 | @php $i++ @endphp |
417 | @endforeach | 417 | @endforeach |
418 | @else | 418 | @else |
419 | <div style="margin-bottom: 20px" class="cabinet__body-item"> | 419 | <div style="margin-bottom: 20px" class="cabinet__body-item"> |
420 | <h3 class="cabinet__subtitle">Сертификаты / документы</h3> | 420 | <h3 class="cabinet__subtitle">Сертификаты / документы</h3> |
421 | Нет сертификатов | 421 | Нет сертификатов |
422 | </div> | 422 | </div> |
423 | @endif | 423 | @endif |
424 | </div> | 424 | </div> |
425 | 425 | ||
426 | <div class="cabinet__body-item"> | 426 | <div class="cabinet__body-item"> |
427 | <a class="button button_light" href="{{ route('worker.new_sertificate',['worker' => $Worker[0]->id]) }}" id="button_new_doc" name="button_new_doc"> | 427 | <a class="button button_light" href="{{ route('worker.new_sertificate',['worker' => $Worker[0]->id]) }}" id="button_new_doc" name="button_new_doc"> |
428 | Добавить сертификат | 428 | Добавить сертификат |
429 | </a> | 429 | </a> |
430 | </div> | 430 | </div> |
431 | 431 | ||
432 | <div class="cabinet__body-item" name="ajax_dop_diplomi" id="ajax_dop_diplomi"> | 432 | <div class="cabinet__body-item" name="ajax_dop_diplomi" id="ajax_dop_diplomi"> |
433 | <h4 class="cabinet__h4">Дополнительная информация</h4> | 433 | <h4 class="cabinet__h4">Дополнительная информация</h4> |
434 | <div class="cabinet__inputs" id="block_sertificate"> | 434 | <div class="cabinet__inputs" id="block_sertificate"> |
435 | @if ($Infobloks->count()) | 435 | @if ($Infobloks->count()) |
436 | @foreach ($Infobloks as $doc) | 436 | @foreach ($Infobloks as $doc) |
437 | <div class="cabinet__inputs-item form-group"> | 437 | <div class="cabinet__inputs-item form-group"> |
438 | <label class="form-group__label">{{ $doc->name }}</label> | 438 | <label class="form-group__label">{{ $doc->name }}</label> |
439 | <div class="form-group__item"> | 439 | <div class="form-group__item"> |
440 | <div class="select"> | 440 | <div class="select"> |
441 | @php $Selected = 0; @endphp | 441 | @php $Selected = 0; @endphp |
442 | @if ($Worker[0]->infobloks->count()) | 442 | @if ($Worker[0]->infobloks->count()) |
443 | @foreach ($Worker[0]->dop_info as $info) | 443 | @foreach ($Worker[0]->dop_info as $info) |
444 | @if ($info->infoblok_id == $doc->id) | 444 | @if ($info->infoblok_id == $doc->id) |
445 | @php $Selected = $info->status; @endphp | 445 | @php $Selected = $info->status; @endphp |
446 | @endif | 446 | @endif |
447 | @endforeach | 447 | @endforeach |
448 | @endif | 448 | @endif |
449 | <select data-info="{{ $doc->id }}" class="js-select2 sertificates_js"> | 449 | <select data-info="{{ $doc->id }}" class="js-select2 sertificates_js"> |
450 | <option value="0" @if ($Selected == 0) selected @endif>Не указано</option> | 450 | <option value="0" @if ($Selected == 0) selected @endif>Не указано</option> |
451 | <option value="1" @if ($Selected == 1) selected @endif>В наличии</option> | 451 | <option value="1" @if ($Selected == 1) selected @endif>В наличии</option> |
452 | <option value="2" @if ($Selected == 2) selected @endif>Отсутствует</option> | 452 | <option value="2" @if ($Selected == 2) selected @endif>Отсутствует</option> |
453 | </select> | 453 | </select> |
454 | </div> | 454 | </div> |
455 | </div> | 455 | </div> |
456 | </div> | 456 | </div> |
457 | @endforeach | 457 | @endforeach |
458 | @endif | 458 | @endif |
459 | <!--_if (isset($Worker[0]->infobloks)) | 459 | <!--_if (isset($Worker[0]->infobloks)) |
460 | _php dd($Worker[0]->infobloks) _endphp | 460 | _php dd($Worker[0]->infobloks) _endphp |
461 | _if ($Worker[0]->infobloks->count()) | 461 | _if ($Worker[0]->infobloks->count()) |
462 | _php $i = 1; _endphp | 462 | _php $i = 1; _endphp |
463 | _foreach ($Worker[0]->infobloks as $info) | 463 | _foreach ($Worker[0]->infobloks as $info) |
464 | <div class="cabinet__inputs-item form-group"> | 464 | <div class="cabinet__inputs-item form-group"> |
465 | <label class="form-group__label"> $info->name }}</label> | 465 | <label class="form-group__label"> $info->name }}</label> |
466 | <div class="form-group__item"> | 466 | <div class="form-group__item"> |
467 | <div class="select"> | 467 | <div class="select"> |
468 | <select data-info=" $info->id }}" class="js-select2 sertificates_js"> | 468 | <select data-info=" $info->id }}" class="js-select2 sertificates_js"> |
469 | <option value="0">Нет</option> | 469 | <option value="0">Нет</option> |
470 | <option value="1" selected>Да</option> | 470 | <option value="1" selected>Да</option> |
471 | </select> | 471 | </select> |
472 | </div> | 472 | </div> |
473 | </div> | 473 | </div> |
474 | </div> | 474 | </div> |
475 | _php $i++; _endphp | 475 | _php $i++; _endphp |
476 | _endforeach | 476 | _endforeach |
477 | _endif | 477 | _endif |
478 | _endif | 478 | _endif |
479 | --> | 479 | --> |
480 | 480 | ||
481 | <!--<div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 481 | <!--<div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
482 | <label class="form-group__label">Образцы дипломов и документов</label> | 482 | <label class="form-group__label">Образцы дипломов и документов</label> |
483 | <div class="form-group__item"> | 483 | <div class="form-group__item"> |
484 | <div class="select"> | 484 | <div class="select"> |
485 | <select class="js-select2" id="documents" name="documents"> | 485 | <select class="js-select2" id="documents" name="documents"> |
486 | _if ($Infoblocks->count()) | 486 | _if ($Infoblocks->count()) |
487 | _foreach ($Infoblocks as $it) | 487 | _foreach ($Infoblocks as $it) |
488 | <option value="_$it->id }}">_$it->name }}</option> | 488 | <option value="_$it->id }}">_$it->name }}</option> |
489 | _endforeach | 489 | _endforeach |
490 | _endif | 490 | _endif |
491 | </select> | 491 | </select> |
492 | </div> | 492 | </div> |
493 | </div> | 493 | </div> |
494 | </div>--> | 494 | </div>--> |
495 | </div> | 495 | </div> |
496 | <!--<a href=" route('worker.add_diplom', ['worker' => $Worker[0]->id]) }}" name="btn_new_diplom" data-val="{{ $Worker[0]->id }}" id="btn_new_diplom" class="button button_light"> | 496 | <!--<a href=" route('worker.add_diplom', ['worker' => $Worker[0]->id]) }}" name="btn_new_diplom" data-val="{{ $Worker[0]->id }}" id="btn_new_diplom" class="button button_light"> |
497 | Добавить документ | 497 | Добавить документ |
498 | </a>--> | 498 | </a>--> |
499 | </div> | 499 | </div> |
500 | <div class="cabinet__body-item"> | 500 | <div class="cabinet__body-item"> |
501 | <div class="cabinet__works"> | 501 | <div class="cabinet__works"> |
502 | @if (isset($Worker[0]->place_worker)) | 502 | @if (isset($Worker[0]->place_worker)) |
503 | @php $i = 1; @endphp | 503 | @php $i = 1; @endphp |
504 | @foreach($Worker[0]->place_worker as $company) | 504 | @foreach($Worker[0]->place_worker as $company) |
505 | <div class="cabinet__works-item"> | 505 | <div class="cabinet__works-item"> |
506 | <div class="cabinet__works-spoiler active"> | 506 | <div class="cabinet__works-spoiler active"> |
507 | <div class="cabinet__works-spoiler-left"> | 507 | <div class="cabinet__works-spoiler-left"> |
508 | <div class="cabinet__works-spoiler-buttons"> | 508 | <div class="cabinet__works-spoiler-buttons"> |
509 | <a href="{{ route('worker.delete_document', ['doc' => $company->id]) }}" class="button button_light js-works-remove"> | 509 | <a href="{{ route('worker.delete_document', ['doc' => $company->id]) }}" class="button button_light js-works-remove"> |
510 | <svg> | 510 | <svg> |
511 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> | 511 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> |
512 | </svg> | 512 | </svg> |
513 | </a> | 513 | </a> |
514 | <a href="{{ route('worker.edit_document', ['doc' => $company->id, 'worker' => $Worker[0]->id]) }}" type="button" class="button button_light js-works-edit"> | 514 | <a href="{{ route('worker.edit_document', ['doc' => $company->id, 'worker' => $Worker[0]->id]) }}" type="button" class="button button_light js-works-edit"> |
515 | <svg> | 515 | <svg> |
516 | <use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use> | 516 | <use xlink:href="{{ asset('images/sprite.svg#pencil') }}"></use> |
517 | </svg> | 517 | </svg> |
518 | </a> | 518 | </a> |
519 | </div> | 519 | </div> |
520 | <div class="cabinet__works-spoiler-text">Место работы {{ $i }}</div> | 520 | <div class="cabinet__works-spoiler-text">Место работы {{ $i }}</div> |
521 | </div> | 521 | </div> |
522 | <button type="button" class="cabinet__works-spoiler-right js-parent-toggle"> | 522 | <button type="button" class="cabinet__works-spoiler-right js-parent-toggle"> |
523 | <svg> | 523 | <svg> |
524 | <use xlink:href="{{ asset('images/sprite.svg#arrow-bold') }}"></use> | 524 | <use xlink:href="{{ asset('images/sprite.svg#arrow-bold') }}"></use> |
525 | </svg> | 525 | </svg> |
526 | </button> | 526 | </button> |
527 | </div> | 527 | </div> |
528 | <div class="cabinet__works-body"> | 528 | <div class="cabinet__works-body"> |
529 | <div class="cabinet__inputs"> | 529 | <div class="cabinet__inputs"> |
530 | <div class="cabinet__inputs-item form-group"> | 530 | <div class="cabinet__inputs-item form-group"> |
531 | <label class="form-group__label">Должность</label> | 531 | <label class="form-group__label">Должность</label> |
532 | <div class="form-group__item"> | 532 | <div class="form-group__item"> |
533 | <input type="text" class="input" value="{{ $company->job_title }}"> | 533 | <input type="text" class="input" value="{{ $company->job_title }}"> |
534 | </div> | 534 | </div> |
535 | </div> | 535 | </div> |
536 | <!--<div class="cabinet__inputs-item form-group"> | 536 | <!--<div class="cabinet__inputs-item form-group"> |
537 | <label class="form-group__label">Опыт работы в танкерном флоте</label> | 537 | <label class="form-group__label">Опыт работы в танкерном флоте</label> |
538 | <div class="form-group__item"> | 538 | <div class="form-group__item"> |
539 | <input type="text" class="input" value="@if ($company->tanker) Есть @else Нет @endif"> | 539 | <input type="text" class="input" value="@if ($company->tanker) Есть @else Нет @endif"> |
540 | </div> | 540 | </div> |
541 | </div>--> | 541 | </div>--> |
542 | <div class="cabinet__inputs-item form-group"> | 542 | <div class="cabinet__inputs-item form-group"> |
543 | <label class="form-group__label">Название т/х</label> | 543 | <label class="form-group__label">Название т/х</label> |
544 | <div class="form-group__item"> | 544 | <div class="form-group__item"> |
545 | <input type="text" class="input" value="{{ $company->teplohod }}"> | 545 | <input type="text" class="input" value="{{ $company->teplohod }}"> |
546 | </div> | 546 | </div> |
547 | </div> | 547 | </div> |
548 | <div class="cabinet__inputs-item form-group"> | 548 | <div class="cabinet__inputs-item form-group"> |
549 | <label class="form-group__label">Тип суда (GWT)</label> | 549 | <label class="form-group__label">Тип суда (GWT)</label> |
550 | <div class="form-group__item"> | 550 | <div class="form-group__item"> |
551 | <input type="text" class="input" value="{{ $company->GWT }}"> | 551 | <input type="text" class="input" value="{{ $company->GWT }}"> |
552 | </div> | 552 | </div> |
553 | </div> | 553 | </div> |
554 | <div class="cabinet__inputs-item form-group"> | 554 | <div class="cabinet__inputs-item form-group"> |
555 | <label class="form-group__label">Марка ГД</label> | 555 | <label class="form-group__label">Марка ГД</label> |
556 | <div class="form-group__item"> | 556 | <div class="form-group__item"> |
557 | <input type="text" class="input" value="{{ $company->Marka_GD }}"> | 557 | <input type="text" class="input" value="{{ $company->Marka_GD }}"> |
558 | </div> | 558 | </div> |
559 | </div> | 559 | </div> |
560 | <div class="cabinet__inputs-item form-group"> | 560 | <div class="cabinet__inputs-item form-group"> |
561 | <label class="form-group__label">Мощность ГД (кВТ)</label> | 561 | <label class="form-group__label">Мощность ГД (кВТ)</label> |
562 | <div class="form-group__item"> | 562 | <div class="form-group__item"> |
563 | <input type="text" class="input" value="{{ $company->KBT }}"> | 563 | <input type="text" class="input" value="{{ $company->KBT }}"> |
564 | </div> | 564 | </div> |
565 | </div> | 565 | </div> |
566 | <div class="cabinet__inputs-item form-group"> | 566 | <div class="cabinet__inputs-item form-group"> |
567 | <label class="form-group__label">Водоизмещение (GRT)</label> | 567 | <label class="form-group__label">Водоизмещение (GRT)</label> |
568 | <div class="form-group__item"> | 568 | <div class="form-group__item"> |
569 | <input type="text" class="input" value="{{ $company->GRT }}"> | 569 | <input type="text" class="input" value="{{ $company->GRT }}"> |
570 | </div> | 570 | </div> |
571 | </div> | 571 | </div> |
572 | <div class="cabinet__inputs-item form-group"> | 572 | <div class="cabinet__inputs-item form-group"> |
573 | <label class="form-group__label">Название компании</label> | 573 | <label class="form-group__label">Название компании</label> |
574 | <div class="form-group__item"> | 574 | <div class="form-group__item"> |
575 | <input type="text" class="input" value="{{ $company->name_company }}"> | 575 | <input type="text" class="input" value="{{ $company->name_company }}"> |
576 | </div> | 576 | </div> |
577 | </div> | 577 | </div> |
578 | <div class="cabinet__inputs-item form-group"> | 578 | <div class="cabinet__inputs-item form-group"> |
579 | <label class="form-group__label">Начало контракта</label> | 579 | <label class="form-group__label">Начало контракта</label> |
580 | <div class="form-group__item"> | 580 | <div class="form-group__item"> |
581 | <input type="text" class="input" value="{{ $company->begin_work }}"> | 581 | <input type="text" class="input" value="{{ $company->begin_work }}"> |
582 | </div> | 582 | </div> |
583 | </div> | 583 | </div> |
584 | <div class="cabinet__inputs-item form-group"> | 584 | <div class="cabinet__inputs-item form-group"> |
585 | <label class="form-group__label">Окончание контракта</label> | 585 | <label class="form-group__label">Окончание контракта</label> |
586 | <div class="form-group__item"> | 586 | <div class="form-group__item"> |
587 | <input type="text" class="input" value="{{ $company->end_work }}"> | 587 | <input type="text" class="input" value="{{ $company->end_work }}"> |
588 | </div> | 588 | </div> |
589 | </div> | 589 | </div> |
590 | 590 | ||
591 | </div> | 591 | </div> |
592 | </div> | 592 | </div> |
593 | </div> | 593 | </div> |
594 | @php $i++ @endphp | 594 | @php $i++ @endphp |
595 | @endforeach | 595 | @endforeach |
596 | @endif | 596 | @endif |
597 | </div> | 597 | </div> |
598 | 598 | ||
599 | </div> | 599 | </div> |
600 | 600 | ||
601 | <a href="{{ route('worker.add_document', ['worker' => $Worker[0]->id]) }}" id="new_work" name="new_work" class="button button_light cabinet__works-add" style="width:100%; max-width:none;">Новое место работы</a> | 601 | <a href="{{ route('worker.add_document', ['worker' => $Worker[0]->id]) }}" id="new_work" name="new_work" class="button button_light cabinet__works-add" style="width:100%; max-width:none;">Новое место работы</a> |
602 | 602 | ||
603 | <div id="prev_worker" name="prev_worker"> | 603 | <div id="prev_worker" name="prev_worker"> |
604 | @if ((isset($Worker[0]->prev_company)) && ($Worker[0]->prev_company->count() > 0)) | 604 | @if ((isset($Worker[0]->prev_company)) && ($Worker[0]->prev_company->count() > 0)) |
605 | @php $i = 0; @endphp | 605 | @php $i = 0; @endphp |
606 | @foreach($Worker[0]->prev_company as $it) | 606 | @foreach($Worker[0]->prev_company as $it) |
607 | <div style="margin-bottom: 20px" class="cabinet__body-item"> | 607 | <div style="margin-bottom: 20px" class="cabinet__body-item"> |
608 | @if ($i == 0) | 608 | @if ($i == 0) |
609 | <h3 class="cabinet__subtitle">Контакты предыдущих компаний</h3> | 609 | <h3 class="cabinet__subtitle">Контакты предыдущих компаний</h3> |
610 | @endif | 610 | @endif |
611 | <h4 class="cabinet__h4">Компания {{ $i+1 }}</h4> | 611 | <h4 class="cabinet__h4">Компания {{ $i+1 }}</h4> |
612 | <div class="cabinet__inputs"> | 612 | <div class="cabinet__inputs"> |
613 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 613 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
614 | <label class="form-group__label">Название компании</label> | 614 | <label class="form-group__label">Название компании</label> |
615 | <div class="form-group__item"> | 615 | <div class="form-group__item"> |
616 | <input type="text" class="input" value="{{ $it->name_company }}" disabled> | 616 | <input type="text" class="input" value="{{ $it->name_company }}" disabled> |
617 | </div> | 617 | </div> |
618 | </div> | 618 | </div> |
619 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 619 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
620 | <label class="form-group__label">Директор</label> | 620 | <label class="form-group__label">Директор</label> |
621 | <div class="form-group__item"> | 621 | <div class="form-group__item"> |
622 | <input type="text" class="input" value="{{ $it->direct }}" disabled> | 622 | <input type="text" class="input" value="{{ $it->direct }}" disabled> |
623 | </div> | 623 | </div> |
624 | </div> | 624 | </div> |
625 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 625 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
626 | <label class="form-group__label">Телефон</label> | 626 | <label class="form-group__label">Телефон</label> |
627 | <div class="form-group__item"> | 627 | <div class="form-group__item"> |
628 | <input type="text" class="input" value="{{ $it->telephone }}" disabled> | 628 | <input type="text" class="input" value="{{ $it->telephone }}" disabled> |
629 | </div> | 629 | </div> |
630 | </div> | 630 | </div> |
631 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> | 631 | <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> |
632 | <label class="form-group__label">Телефон2</label> | 632 | <label class="form-group__label">Телефон2</label> |
633 | <div class="form-group__item"> | 633 | <div class="form-group__item"> |
634 | <input type="text" class="input" value="{{ $it->telephone2 }}" disabled> | 634 | <input type="text" class="input" value="{{ $it->telephone2 }}" disabled> |
635 | </div> | 635 | </div> |
636 | </div> | 636 | </div> |
637 | <a href="{{ route('worker.delete_prev_company', ['doc' => $it->id]) }}" class="button button_light"> | 637 | <a href="{{ route('worker.delete_prev_company', ['doc' => $it->id]) }}" class="button button_light"> |
638 | <svg> | 638 | <svg> |
639 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> | 639 | <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> |
640 | </svg> | 640 | </svg> |
641 | Удалить | 641 | Удалить |
642 | </a> | 642 | </a> |
643 | <a href="{{ route('worker.edit_prev_company', ['worker' => $Worker[0]->id, 'doc' => $it->id ]) }}" class="button">Редактирование</a> | 643 | <a href="{{ route('worker.edit_prev_company', ['worker' => $Worker[0]->id, 'doc' => $it->id ]) }}" class="button">Редактирование</a> |
644 | </div> | 644 | </div> |
645 | </div> | 645 | </div> |
646 | @php $i++ @endphp | 646 | @php $i++ @endphp |
647 | @endforeach | 647 | @endforeach |
648 | @else | 648 | @else |
649 | <div style="margin-bottom: 20px" class="cabinet__body-item"> | 649 | <div style="margin-bottom: 20px" class="cabinet__body-item"> |
650 | <h3 class="cabinet__subtitle">Предыдущие компании</h3> | 650 | <h3 class="cabinet__subtitle">Предыдущие компании</h3> |
651 | Нет предыдущих компаний | 651 | Нет предыдущих компаний |
652 | </div> | 652 | </div> |
653 | @endif | 653 | @endif |
654 | </div> | 654 | </div> |
655 | 655 | ||
656 | <div class="cabinet__body-item"> | 656 | <div class="cabinet__body-item"> |
657 | <a class="button button_light" href="{{ route('worker.new_prev_company',['worker' => $Worker[0]->id]) }}" id="button_new_doc" name="button_new_doc"> | 657 | <a class="button button_light" href="{{ route('worker.new_prev_company',['worker' => $Worker[0]->id]) }}" id="button_new_doc" name="button_new_doc"> |
658 | Добавить официльную контактную информацию | 658 | Добавить официльную контактную информацию |
659 | </a> | 659 | </a> |
660 | </div> | 660 | </div> |
661 | 661 | ||
662 | </form> | 662 | </form> |
663 | </div> | 663 | </div> |
664 | </div> | 664 | </div> |
665 | </section> | 665 | </section> |
666 | </div> | 666 | </div> |
667 | <div> | 667 | <div> |
668 | @endsection | 668 | @endsection |
669 | 669 |