Commit f620bbffa65c8678ec037d0866f7a6dff6a97d8e
1 parent
e60a32501c
Exists in
master
фикс
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
resources/views/employers/favorite.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('change', '#sort_ajax', function() { | 6 | $(document).on('change', '#sort_ajax', function() { |
7 | var this_ = $(this); | 7 | var this_ = $(this); |
8 | var val_ = this_.val(); | 8 | var val_ = this_.val(); |
9 | console.log('sort items '+val_); | 9 | console.log('sort items '+val_); |
10 | 10 | ||
11 | $.ajax({ | 11 | $.ajax({ |
12 | type: "GET", | 12 | type: "GET", |
13 | url: "{{ route('shipping_companies') }}", | 13 | url: "{{ route('shipping_companies') }}", |
14 | data: "sort="+val_+"&block=1", | 14 | data: "sort="+val_+"&block=1", |
15 | success: function (data) { | 15 | success: function (data) { |
16 | console.log('Выбор сортировки'); | 16 | console.log('Выбор сортировки'); |
17 | console.log(data); | 17 | console.log(data); |
18 | $('#block_1').html(data); | 18 | $('#block_1').html(data); |
19 | }, | 19 | }, |
20 | headers: { | 20 | headers: { |
21 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 21 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
22 | }, | 22 | }, |
23 | error: function (data) { | 23 | error: function (data) { |
24 | data = JSON.stringify(data); | 24 | data = JSON.stringify(data); |
25 | console.log('Error: ' + data); | 25 | console.log('Error: ' + data); |
26 | } | 26 | } |
27 | }); | 27 | }); |
28 | 28 | ||
29 | $.ajax({ | 29 | $.ajax({ |
30 | type: "GET", | 30 | type: "GET", |
31 | url: "{{ route('shipping_companies') }}", | 31 | url: "{{ route('shipping_companies') }}", |
32 | data: "sort="+val_+"&block=2", | 32 | data: "sort="+val_+"&block=2", |
33 | success: function (data) { | 33 | success: function (data) { |
34 | console.log('Выбор сортировки2'); | 34 | console.log('Выбор сортировки2'); |
35 | console.log(data); | 35 | console.log(data); |
36 | history.pushState({}, '', "{{ route('shipping_companies') }}?sort="+val_+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif"); | 36 | history.pushState({}, '', "{{ route('shipping_companies') }}?sort="+val_+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif"); |
37 | $('#block_2').html(data); | 37 | $('#block_2').html(data); |
38 | }, | 38 | }, |
39 | headers: { | 39 | headers: { |
40 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 40 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
41 | }, | 41 | }, |
42 | error: function (data) { | 42 | error: function (data) { |
43 | data = JSON.stringify(data); | 43 | data = JSON.stringify(data); |
44 | console.log('Error: ' + data); | 44 | console.log('Error: ' + data); |
45 | } | 45 | } |
46 | }); | 46 | }); |
47 | }); | 47 | }); |
48 | </script> | 48 | </script> |
49 | @include('js.favorite-worker') | 49 | @include('js.favorite-worker') |
50 | @endsection | 50 | @endsection |
51 | 51 | ||
52 | @section('content') | 52 | @section('content') |
53 | <section class="cabinet"> | 53 | <section class="cabinet"> |
54 | <div class="container"> | 54 | <div class="container"> |
55 | <ul class="breadcrumbs cabinet__breadcrumbs"> | 55 | <ul class="breadcrumbs cabinet__breadcrumbs"> |
56 | <li><a href="{{ route('index') }}">Главная</a></li> | 56 | <li><a href="{{ route('index') }}">Главная</a></li> |
57 | <li><b>Личный кабинет</b></li> | 57 | <li><b>Личный кабинет</b></li> |
58 | </ul> | 58 | </ul> |
59 | <div class="cabinet__wrapper"> | 59 | <div class="cabinet__wrapper"> |
60 | <div class="cabinet__side"> | 60 | <div class="cabinet__side"> |
61 | <div class="cabinet__side-toper"> | 61 | <div class="cabinet__side-toper"> |
62 | @include('employers.emblema') | 62 | @include('employers.emblema') |
63 | </div> | 63 | </div> |
64 | 64 | ||
65 | @include('employers.menu', ['item' => 6]) | 65 | @include('employers.menu', ['item' => 6]) |
66 | 66 | ||
67 | </div> | 67 | </div> |
68 | 68 | ||
69 | <div class="cabinet__body"> | 69 | <div class="cabinet__body"> |
70 | <div class="cabinet__body-item"> | 70 | <div class="cabinet__body-item"> |
71 | <h2 class="title cabinet__title">Избранные кандидаты</h2> | 71 | <h2 class="title cabinet__title">Избранные кандидаты</h2> |
72 | </div> | 72 | </div> |
73 | <div class="cabinet__body-item"> | 73 | <div class="cabinet__body-item"> |
74 | <div class="cabinet__filters"> | 74 | <div class="cabinet__filters"> |
75 | <div class="cabinet__filters-item"> | 75 | <div class="cabinet__filters-item"> |
76 | <form class="search" action="{{ route('employer.favorites') }}"> | 76 | <form class="search" action="{{ route('employer.favorites') }}"> |
77 | <input type="search" name="search" id="search" class="input" placeholder="Поиск…" value="@if ((isset($_GET['search'])) && (!empty($_GET['search']))) {{ $_GET['search'] }} @endif"> | 77 | <input type="search" name="search" id="search" class="input" placeholder="Поиск…" value="@if ((isset($_GET['search'])) && (!empty($_GET['search']))) {{ $_GET['search'] }} @endif"> |
78 | <button type="submit" class="button">Найти</button> | 78 | <button type="submit" class="button">Найти</button> |
79 | <span> | 79 | <span> |
80 | <svg> | 80 | <svg> |
81 | <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use> | 81 | <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use> |
82 | </svg> | 82 | </svg> |
83 | </span> | 83 | </span> |
84 | </form> | 84 | </form> |
85 | </div> | 85 | </div> |
86 | </div> | 86 | </div> |
87 | <div class="cvs"> | 87 | <div class="cvs"> |
88 | @if ((isset($Workers) && ($Workers->count()))) | 88 | @if ((isset($Workers) && ($Workers->count()))) |
89 | @foreach ($Workers as $it) | 89 | @foreach ($Workers as $it) |
90 | <div class="cvs__body"> | 90 | <div class="cvs__body"> |
91 | <div class="cvs__item"> | 91 | <div class="cvs__item"> |
92 | 92 | ||
93 | <div class="cvs__item-header"> | 93 | <div class="cvs__item-header"> |
94 | <div class="cvs__item-photo"> | 94 | <div class="cvs__item-photo"> |
95 | <svg> | 95 | <svg> |
96 | <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> | 96 | <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> |
97 | </svg> | 97 | </svg> |
98 | @if (!empty($it->photo)) | 98 | @if (!empty($it->photo)) |
99 | <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($it->photo)) }}" alt=""> | 99 | <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($it->photo)) }}" alt=""> |
100 | @else | 100 | @else |
101 | <img src="{{ asset('images/default_man.jpg') }}" alt=""> | 101 | <img src="{{ asset('images/default_man.jpg') }}" alt=""> |
102 | @endif | 102 | @endif |
103 | </div> | 103 | </div> |
104 | 104 | ||
105 | <div class="cvs__item-buttons"> | 105 | <div class="cvs__item-buttons"> |
106 | <button type="button" id="elem_{{ $it->id }}" data-val="{{ $it->id }}" class="like cvs__item-like js_box_favorit js-toggle {{ \App\Classes\LikesClass::get_status_worker($it) }}"> | 106 | <button type="button" id="elem_{{ $it->id }}" data-val="{{ $it->id }}" class="like cvs__item-like js_box_favorit js-toggle {{ \App\Classes\LikesClass::get_status_worker($it) }}"> |
107 | <svg class="mr-10"> | 107 | <svg class="mr-10"> |
108 | <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> | 108 | <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> |
109 | </svg> | 109 | </svg> |
110 | <span class="to-favorites">Добавить в избранное</span> | 110 | <span class="to-favorites">Добавить в избранное</span> |
111 | <span class="in-favorites">Убрать из избранного</span> | 111 | <span class="in-favorites">Убрать из избранного</span> |
112 | </button> | 112 | </button> |
113 | 113 | ||
114 | @guest | 114 | @guest |
115 | <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' | 115 | <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' |
116 | class="chat"> | 116 | class="chat"> |
117 | <svg class="mr-10"> | 117 | <svg class="mr-10"> |
118 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | 118 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> |
119 | </svg> | 119 | </svg> |
120 | <span>Написать</span> | 120 | <span>Написать</span> |
121 | </button> | 121 | </button> |
122 | @else | 122 | @else |
123 | @if (App\Classes\StatusUser::Status()==0) | 123 | @if (App\Classes\StatusUser::Status()==0) |
124 | @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) | 124 | @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) |
125 | <button type="button" class="chat" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ Auth()->user()->id }}" data-tuid="{{ $it->users->id }}" data-options='{"touch":false,"autoFocus":false}'> | 125 | <button type="button" class="chat" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ Auth()->user()->id }}" data-tuid="{{ $it->users->id }}" data-options='{"touch":false,"autoFocus":false}'> |
126 | <svg class="mr-10"> | 126 | <svg class="mr-10"> |
127 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | 127 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> |
128 | </svg> | 128 | </svg> |
129 | <span>Написать</span> | 129 | <span>Написать</span> |
130 | </button> | 130 | </button> |
131 | @endif | 131 | @endif |
132 | @else | 132 | @else |
133 | <button type="button" data-fancybox data-src="#question2" data-options='{"touch":false,"autoFocus":false}' | 133 | <button type="button" data-fancybox data-src="#question2" data-options='{"touch":false,"autoFocus":false}' |
134 | class="chat"> | 134 | class="chat"> |
135 | <svg class="mr-10"> | 135 | <svg class="mr-10"> |
136 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> | 136 | <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use> |
137 | </svg> | 137 | </svg> |
138 | <span>Написать</span> | 138 | <span>Написать</span> |
139 | </button> | 139 | </button> |
140 | @endif | 140 | @endif |
141 | @endif | 141 | @endif |
142 | 142 | ||
143 | <a href="{{ route('resume_profile', ['worker' => $it->id]) }}" class="button">Подробнее</a> | 143 | <a href="{{ route('resume_profile', ['worker' => $it->id]) }}" class="button">Подробнее</a> |
144 | </div> | 144 | </div> |
145 | </div> | 145 | </div> |
146 | 146 | ||
147 | 147 | ||
148 | <div class="cvs__item-text"> | 148 | <div class="cvs__item-text"> |
149 | <div class="cvs__item-text-row"> | 149 | <div class="cvs__item-text-row"> |
150 | <div class="flex" style="align-items: start;"> | 150 | <div class="flex" style="align-items: start;"> |
151 | <div class="cvs__item-text-status @if ($it->status_work == 0) looking-for-job @endif"> | 151 | <div class="cvs__item-text-status @if ($it->status_work == 0) looking-for-job @endif"> |
152 | @if ($it->status_work == 0) Ищу работу | 152 | @if ($it->status_work == 0) Ищу работу |
153 | @elseif ($it->status_work == 1) Не указано | 153 | @elseif ($it->status_work == 1) Не указано |
154 | @elseif ($it->status_work == 2) Не ищу | 154 | @elseif ($it->status_work == 2) Не ищу работу |
155 | @endif | 155 | @endif |
156 | </div> | 156 | </div> |
157 | <div class="cvs__item-text-updated-at"> | 157 | <div class="cvs__item-text-updated-at"> |
158 | Обновлено: {{ date('d.m.Y', strtotime($it->updated_at)) }} | 158 | Обновлено: {{ date('d.m.Y', strtotime($it->updated_at)) }} |
159 | </div> | 159 | </div> |
160 | </div> | 160 | </div> |
161 | <div> | 161 | <div> |
162 | <b>Предпочтение по типу судна:</b> | 162 | <b>Предпочтение по типу судна:</b> |
163 | <div>{{ $it->boart_type_preference ?? '-' }}</div> | 163 | <div>{{ $it->boart_type_preference ?? '-' }}</div> |
164 | </div> | 164 | </div> |
165 | </div> | 165 | </div> |
166 | 166 | ||
167 | <div class="cvs__item-text-row"> | 167 | <div class="cvs__item-text-row"> |
168 | <div> | 168 | <div> |
169 | <b>ФИО:</b> | 169 | <b>ФИО:</b> |
170 | <div>@if (isset($it->users)){{ $it->users->surname." ".$it->users->name_man." ".$it->users->surname2 }} @endif</div> | 170 | <div>@if (isset($it->users)){{ $it->users->surname." ".$it->users->name_man." ".$it->users->surname2 }} @endif</div> |
171 | </div> | 171 | </div> |
172 | <div> | 172 | <div> |
173 | <b>Наличие визы:</b> | 173 | <b>Наличие визы:</b> |
174 | <div>{{ $it->visa_available ?? '-' }}</div> | 174 | <div>{{ $it->visa_available ?? '-' }}</div> |
175 | </div> | 175 | </div> |
176 | </div> | 176 | </div> |
177 | 177 | ||
178 | <div class="cvs__item-text-row"> | 178 | <div class="cvs__item-text-row"> |
179 | <div> | 179 | <div> |
180 | <b>Возраст:</b> | 180 | <b>Возраст:</b> |
181 | <div>{{ $it->old_year ?? '-' }}</div> | 181 | <div>{{ $it->old_year ?? '-' }}</div> |
182 | </div> | 182 | </div> |
183 | <div> | 183 | <div> |
184 | <b>Наличие танкерных документов:</b> | 184 | <b>Наличие танкерных документов:</b> |
185 | <div>{{ $it->tanker_documents_available ?? '-' }}</div> | 185 | <div>{{ $it->tanker_documents_available ?? '-' }}</div> |
186 | </div> | 186 | </div> |
187 | </div> | 187 | </div> |
188 | 188 | ||
189 | <div class="cvs__item-text-row"> | 189 | <div class="cvs__item-text-row"> |
190 | <div> | 190 | <div> |
191 | <b>Желаемые вакансии:</b> | 191 | <b>Желаемые вакансии:</b> |
192 | <div> | 192 | <div> |
193 | @if ($it->job_titles->count()) | 193 | @if ($it->job_titles->count()) |
194 | @foreach ($it->job_titles as $job_title) | 194 | @foreach ($it->job_titles as $job_title) |
195 | {{ $job_title->name }} | 195 | {{ $job_title->name }} |
196 | @if (!$loop->last) / @endif | 196 | @if (!$loop->last) / @endif |
197 | @endforeach | 197 | @endforeach |
198 | @else | 198 | @else |
199 | - | 199 | - |
200 | @endif | 200 | @endif |
201 | </div> | 201 | </div> |
202 | </div> | 202 | </div> |
203 | <div> | 203 | <div> |
204 | <b>Наличие подтверждения для работы на ВВП:</b> | 204 | <b>Наличие подтверждения для работы на ВВП:</b> |
205 | <div>{{ $it->confirmation_work_for_vvp ?? '-' }}</div> | 205 | <div>{{ $it->confirmation_work_for_vvp ?? '-' }}</div> |
206 | </div> | 206 | </div> |
207 | </div> | 207 | </div> |
208 | 208 | ||
209 | <div class="cvs__item-text-row"> | 209 | <div class="cvs__item-text-row"> |
210 | <div> | 210 | <div> |
211 | <b>Пожелание к З/П:</b> | 211 | <b>Пожелание к З/П:</b> |
212 | <div>{{ $it->salary_expectations ?? '-' }}</div> | 212 | <div>{{ $it->salary_expectations ?? '-' }}</div> |
213 | </div> | 213 | </div> |
214 | <div> | 214 | <div> |
215 | <b>Город проживания</b> | 215 | <b>Город проживания</b> |
216 | <div>{{ $it->city ?? "-" }}</div> | 216 | <div>{{ $it->city ?? "-" }}</div> |
217 | </div> | 217 | </div> |
218 | </div> | 218 | </div> |
219 | 219 | ||
220 | <div class="cvs__item-text-row"> | 220 | <div class="cvs__item-text-row"> |
221 | <div> | 221 | <div> |
222 | <b>Уровень английского:</b> | 222 | <b>Уровень английского:</b> |
223 | <div>{{ $it->english_level ?? '-' }}</div> | 223 | <div>{{ $it->english_level ?? '-' }}</div> |
224 | </div> | 224 | </div> |
225 | <div> | 225 | <div> |
226 | <b>Телефон:</b> | 226 | <b>Телефон:</b> |
227 | <div><a href="tel:{{ $it->telephone }}">{{ $it->telephone ?? '-' }}</a></div> | 227 | <div><a href="tel:{{ $it->telephone }}">{{ $it->telephone ?? '-' }}</a></div> |
228 | </div> | 228 | </div> |
229 | </div> | 229 | </div> |
230 | 230 | ||
231 | <div class="cvs__item-text-row"> | 231 | <div class="cvs__item-text-row"> |
232 | <div> | 232 | <div> |
233 | <b>Дата готовности к посадке:</b> | 233 | <b>Дата готовности к посадке:</b> |
234 | <div>{{ $it->ready_boart_date ?? '-' }}</div> | 234 | <div>{{ $it->ready_boart_date ?? '-' }}</div> |
235 | </div> | 235 | </div> |
236 | <div> | 236 | <div> |
237 | <b>E-mail:</b> | 237 | <b>E-mail:</b> |
238 | <div><a href="mailto:{{ $it->email }}">{{ $it->email }}</a></div> | 238 | <div><a href="mailto:{{ $it->email }}">{{ $it->email }}</a></div> |
239 | </div> | 239 | </div> |
240 | </div> | 240 | </div> |
241 | </div> | 241 | </div> |
242 | </div> | 242 | </div> |
243 | </div> | 243 | </div> |
244 | @endforeach | 244 | @endforeach |
245 | </div> | 245 | </div> |
246 | @else | 246 | @else |
247 | <div class="notify"> | 247 | <div class="notify"> |
248 | <svg> | 248 | <svg> |
249 | <use xlink:href="{{ asset('images/sprite.svg#i') }}"></use> | 249 | <use xlink:href="{{ asset('images/sprite.svg#i') }}"></use> |
250 | </svg> | 250 | </svg> |
251 | <span>Нет избранных кандидатов</span> | 251 | <span>Нет избранных кандидатов</span> |
252 | </div> | 252 | </div> |
253 | @endif | 253 | @endif |
254 | </div> | 254 | </div> |
255 | </div> | 255 | </div> |
256 | </div> | 256 | </div> |
257 | </div> | 257 | </div> |
258 | 258 | ||
259 | </section> | 259 | </section> |
260 | </div> | 260 | </div> |
261 | @endsection | 261 | @endsection |
262 | 262 |