Commit c599b098d98c4c20cdfe7e196b80a73e53912f05

Authored by Андрей Ларионов
1 parent f4f73f6c1a
Exists in master

Критическое обновление - карточки вакансий

Showing 2 changed files with 21 additions and 18 deletions Inline Diff

resources/views/info_company_new.blade.php
1 @extends('layout.frontend', ['title' => 'Описание компании '.$title.'- РекаМоре']) 1 @extends('layout.frontend', ['title' => 'Описание компании '.$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 48
49 $(document).ready(function(){ 49 $(document).ready(function(){
50 var sel = $('#select2-sort_ajax-container'); 50 var sel = $('#select2-sort_ajax-container');
51 var key = getUrlParameter('sort'); 51 var key = getUrlParameter('sort');
52 if (key !=='') { 52 if (key !=='') {
53 console.log(key); 53 console.log(key);
54 switch (key) { 54 switch (key) {
55 case "default": sel.html('Сортировка (по умолчанию)'); break; 55 case "default": sel.html('Сортировка (по умолчанию)'); break;
56 case "name_up": sel.html('По имени (возрастание)'); break; 56 case "name_up": sel.html('По имени (возрастание)'); break;
57 case "name_down": sel.html('По дате (убывание)'); break; 57 case "name_down": sel.html('По дате (убывание)'); break;
58 case "created_at_up": sel.html('По дате (возрастание)'); break; 58 case "created_at_up": sel.html('По дате (возрастание)'); break;
59 case "created_at_down": sel.html('По дате (убывание)'); break; 59 case "created_at_down": sel.html('По дате (убывание)'); break;
60 } 60 }
61 61
62 } 62 }
63 }); 63 });
64 64
65 //end 65 //end
66 $(document).on('click', '.js_send_it_button', function() { 66 $(document).on('click', '.js_send_it_button', function() {
67 var this_ = $(this); 67 var this_ = $(this);
68 var code_user_id = this_.attr('data-uid'); 68 var code_user_id = this_.attr('data-uid');
69 var code_to_user_id = this_.attr('data-tuid'); 69 var code_to_user_id = this_.attr('data-tuid');
70 var code_vacancy = this_.attr('data-vacancy'); 70 var code_vacancy = this_.attr('data-vacancy');
71 var user_id = $('#send_user_id'); 71 var user_id = $('#send_user_id');
72 var to_user_id = $('#send_to_user_id'); 72 var to_user_id = $('#send_to_user_id');
73 var vacancy = $('#send_vacancy'); 73 var vacancy = $('#send_vacancy');
74 74
75 console.log('Клик на кнопки...'); 75 console.log('Клик на кнопки...');
76 76
77 user_id.val(code_user_id); 77 user_id.val(code_user_id);
78 to_user_id.val(code_to_user_id); 78 to_user_id.val(code_to_user_id);
79 vacancy.val(code_vacancy); 79 vacancy.val(code_vacancy);
80 }); 80 });
81 </script> 81 </script>
82 @include('js.favorite-vacancy-45') 82 @include('js.favorite-vacancy-45')
83 @endsection 83 @endsection
84 84
85 @section('content') 85 @section('content')
86 <section class="thing"> 86 <section class="thing">
87 <div class="container"> 87 <div class="container">
88 <div class="thing__body"> 88 <div class="thing__body">
89 <ul class="breadcrumbs thing__breadcrumbs"> 89 <ul class="breadcrumbs thing__breadcrumbs">
90 <li><a href="{{ route('index') }}">Главная</a></li> 90 <li><a href="{{ route('index') }}">Главная</a></li>
91 <li><a href="{{ route('shipping_companies') }}">Работодатели</a></li> 91 <li><a href="{{ route('shipping_companies') }}">Работодатели</a></li>
92 <li><b>@isset($title) {{ $title }} @else Не указано @endif</b></li> 92 <li><b>@isset($title) {{ $title }} @else Не указано @endif</b></li>
93 </ul> 93 </ul>
94 @if ($company[0]->oficial_status == 1) 94 @if ($company[0]->oficial_status == 1)
95 <div class="thing__badge"> 95 <div class="thing__badge">
96 <svg> 96 <svg>
97 <use xlink:href="{{ asset('images/sprite.svg#badge') }}"></use> 97 <use xlink:href="{{ asset('images/sprite.svg#badge') }}"></use>
98 </svg> 98 </svg>
99 Компания проверена 99 Компания проверена
100 </div> 100 </div>
101 @endif 101 @endif
102 102
103 @if (!empty($company[0]->logo)) 103 @if (!empty($company[0]->logo))
104 <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> 104 <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $company[0]->name_company }}" class="thing__pic">
105 @else 105 @else
106 <img src="{{ asset('images/logo_emp.png') }}" alt="{{ $company[0]->name_company }}" class="thing__pic"> 106 <img src="{{ asset('images/logo_emp.png') }}" alt="{{ $company[0]->name_company }}" class="thing__pic">
107 @endif 107 @endif
108 108
109 <h1 class="thing__title">{{ $company[0]->name_company }}</h1> 109 <h1 class="thing__title">{{ $company[0]->name_company }}</h1>
110 <!--<p class="thing__text"> $company[0]->text !!}</p>--> 110 <!--<p class="thing__text"> $company[0]->text !!}</p>-->
111 <div class="thing__buttons"> 111 <div class="thing__buttons">
112 <button type="button" class="button"> 112 <button type="button" class="button">
113 <svg> 113 <svg>
114 <use xlink:href="{{ asset('images/sprite.svg#grid-1') }}"></use> 114 <use xlink:href="{{ asset('images/sprite.svg#grid-1') }}"></use>
115 </svg> 115 </svg>
116 {{ $company[0]->ads->count() }} вакансии 116 {{ $company[0]->ads->count() }} вакансии
117 </button> 117 </button>
118 @if ($user_id == 0) 118 @if ($user_id == 0)
119 <a data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' class="js_send_it_button button"> 119 <a data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' class="js_send_it_button button">
120 Написать сообщение 120 Написать сообщение
121 </a> 121 </a>
122 @else 122 @else
123 <a data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' class="js_send_it_button button"> 123 <a data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' class="js_send_it_button button">
124 Написать сообщение 124 Написать сообщение
125 </a> 125 </a>
126 @endif 126 @endif
127 </div> 127 </div>
128 </div> 128 </div>
129 </div> 129 </div>
130 </section> 130 </section>
131 <main class="main"> 131 <main class="main">
132 <div class="container"> 132 <div class="container">
133 <div class="main__employer-page"> 133 <div class="main__employer-page">
134 <h2 class="main__employer-page-title">О компании</h2> 134 <h2 class="main__employer-page-title">О компании</h2>
135 <div class="main__employer-page-info"> 135 <div class="main__employer-page-info">
136 <div class="main__employer-page-item"> 136 <div class="main__employer-page-item">
137 <b>Адрес компании</b> 137 <b>Адрес компании</b>
138 <span> 138 <span>
139 {{ $company[0]->address }} 139 {{ $company[0]->address }}
140 </span> 140 </span>
141 </div> 141 </div>
142 <div class="main__employer-page-item"> 142 <div class="main__employer-page-item">
143 <b>Сайт</b> 143 <b>Сайт</b>
144 <span> 144 <span>
145 <a href="{{ $company[0]->site }}">{{ $company[0]->site }}</a> 145 <a href="{{ $company[0]->site }}">{{ $company[0]->site }}</a>
146 </span> 146 </span>
147 </div> 147 </div>
148 <div class="main__employer-page-item"> 148 <div class="main__employer-page-item">
149 <b>Почта</b> 149 <b>Почта</b>
150 <span> 150 <span>
151 <a href="mailto:">{{ $company[0]->email }}</a> 151 <a href="mailto:">{{ $company[0]->email }}</a>
152 </span> 152 </span>
153 </div> 153 </div>
154 <div class="main__employer-page-item"> 154 <div class="main__employer-page-item">
155 <b>Телефон</b> 155 <b>Телефон</b>
156 <span> 156 <span>
157 <a href="tel:{{ $company[0]->telephone }}">{{ $company[0]->telephone }}</a> 157 <a href="tel:{{ $company[0]->telephone }}">{{ $company[0]->telephone }}</a>
158 </span> 158 </span>
159 </div> 159 </div>
160 </div> 160 </div>
161 161
162 <div class="main__employer-page-item"> 162 <div class="main__employer-page-item">
163 <b>Описание</b> 163 <b>Описание</b>
164 <span> 164 <span>
165 {!! $company[0]->text !!} 165 {!! $company[0]->text !!}
166 </span> 166 </span>
167 </div> 167 </div>
168 168
169 <div> 169 <div>
170 170
171 <div class="main__employer-page-tabs"> 171 <div class="main__employer-page-tabs">
172 <button type="button" class="main__employer-page-tabs-item active" 172 <button type="button" class="main__employer-page-tabs-item active"
173 data-tab="1">Флот</button> 173 data-tab="1">Флот</button>
174 <button type="button" class="main__employer-page-tabs-item" data-tab="2">Вакансии</button> 174 <button type="button" class="main__employer-page-tabs-item" data-tab="2">Вакансии</button>
175 </div> 175 </div>
176 176
177 <div class="main__employer-page-body"> 177 <div class="main__employer-page-body">
178 <div class="main__employer-page-body-item showed" data-body="1"> 178 <div class="main__employer-page-body-item showed" data-body="1">
179 <div class="main__employer-page-one"> 179 <div class="main__employer-page-one">
180 @if ($company[0]->flots->count()) 180 @if ($company[0]->flots->count())
181 @foreach ($company[0]->flots as $flot) 181 @foreach ($company[0]->flots as $flot)
182 <a href="" class="main__employer-page-one-item"> 182 <a href="" class="main__employer-page-one-item">
183 @if (!empty($flot->image)) 183 @if (!empty($flot->image))
184 <img src="{{ asset(Storage::url($flot->image)) }}" alt="{{ $flot->name }}"> 184 <img src="{{ asset(Storage::url($flot->image)) }}" alt="{{ $flot->name }}">
185 @else 185 @else
186 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $flot->name }}"> 186 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $flot->name }}">
187 @endif 187 @endif
188 <b>{{ $flot->name }}</b> 188 <b>{{ $flot->name }}</b>
189 <b>{{ $flot->region }}</b> 189 <b>{{ $flot->region }}</b>
190 <span><i>DWT</i> {{ $flot->DWT }}</span> 190 <span><i>DWT</i> {{ $flot->DWT }}</span>
191 <span><i>Мощность ГД</i> {{ $flot->POWER_GD }}</span> 191 <span><i>Мощность ГД</i> {{ $flot->POWER_GD }}</span>
192 <span><i>IMO</i> {{ $flot->IMO }}</span> 192 <span><i>IMO</i> {{ $flot->IMO }}</span>
193 <span>{{ $flot->power }}</span> 193 <span>{{ $flot->power }}</span>
194 </a> 194 </a>
195 @endforeach 195 @endforeach
196 @endif 196 @endif
197 </div> 197 </div>
198 </div> 198 </div>
199 199
200 <div class="main__employer-page-body-item" data-body="2"> 200 <div class="main__employer-page-body-item" data-body="2">
201 <div class="main__employer-page-two"> 201 <div class="main__employer-page-two">
202 @foreach ($ads as $job) 202 @foreach ($ads as $job)
203 <div class="main__employer-page-two-item"> 203 <div class="main__employer-page-two-item">
204 <div class="main__employer-page-two-item-toper"> 204 <div class="main__employer-page-two-item-toper">
205 @if (!empty($company[0]->logo)) 205 @if (!empty($company[0]->logo))
206 <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $job->name }}"> 206 <img src="{{ asset(Storage::url($company[0]->logo)) }}" alt="{{ $job->name }}">
207 @else 207 @else
208 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $job->name }}"> 208 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $job->name }}">
209 @endif 209 @endif
210 <span>{{ $job->name }}</span> 210 <span>{{ $job->name }}</span>
211 <!--<span>Описание:
212 $job->text !!}
213 </span>-->
214 </div> 211 </div>
215 <!--<div class="main__employer-page-two-item-title"> $item->flot }}</div>--> 212 <!--<div class="main__employer-page-two-item-title"> $item->flot }}</div>-->
216 <div class="main__employer-page-two-item-text"> 213 <div class="main__employer-page-two-item-text">
217 @if ((isset($job->jobs)) && ($job->jobs->count())) 214 <span>Описание:
218 @foreach($job->jobs as $item) 215 {!! $job->text !!}
216 </span>
217 <!--if ((isset($job->jobs)) && ($job->jobs->count()))
218 foreach($job->jobs as $item)
219 <a class="main__employer-page-two-item-text-name"> 219 <a class="main__employer-page-two-item-text-name">
220 {{ $item->name }} 220 $item->name }}
221 </a> 221 </a>
222 @endforeach 222 endforeach
223 @endif 223 endif-->
224 <!--<div class="main__employer-page-two-item-text-body"> 224 <!--<div class="main__employer-page-two-item-text-body">
225 <p>Зарплата: $item->min_salary }} - $item->max_salary }}р + $item->sytki }} суточные.</p> 225 <p>Зарплата: $item->min_salary }} - $item->max_salary }}р + $item->sytki }} суточные.</p>
226 <p>Контракт: $item->period }} мес.</p> 226 <p>Контракт: $item->period }} мес.</p>
227 </div>--> 227 </div>-->
228 </div> 228 </div>
229 <!--<div class="main__employer-page-two-item-text"> 229 <!--<div class="main__employer-page-two-item-text">
230 <div class="main__employer-page-two-item-text-name">Район работы</div> 230 <div class="main__employer-page-two-item-text-name">Район работы</div>
231 <div class="main__employer-page-two-item-text-body"> 231 <div class="main__employer-page-two-item-text-body">
232 <p> $item->region }}</p> 232 <p> $item->region }}</p>
233 </div> 233 </div>
234 </div> 234 </div>
235 <div class="main__employer-page-two-item-text"> 235 <div class="main__employer-page-two-item-text">
236 <div class="main__employer-page-two-item-text-name">Посадка</div> 236 <div class="main__employer-page-two-item-text-name">Посадка</div>
237 <div class="main__employer-page-two-item-text-body"> 237 <div class="main__employer-page-two-item-text-body">
238 <p> $item->start }}</p> 238 <p> $item->start }}</p>
239 !! $item->description !!} 239 !! $item->description !!}
240 </div> 240 </div>
241 </div>--> 241 </div>-->
242 <div class="main__employer-page-two-item-text"> 242
243 <!--<div class="main__employer-page-two-item-text">
243 <div class="main__employer-page-two-item-text-name">Звонить по вопросам на: 244 <div class="main__employer-page-two-item-text-name">Звонить по вопросам на:
244 </div> 245 </div>
245 <div class="main__employer-page-two-item-text-body"> 246 <div class="main__employer-page-two-item-text-body">
246 <a href="tel:{{ $job->telephone }}">{{ $job->telephone }}</a> 247 <a href="tel: $job->telephone }}"> $job->telephone }}</a>
247 </div> 248 </div>
248 </div> 249 </div>
249 <div class="main__employer-page-two-item-text"> 250 <div class="main__employer-page-two-item-text">
250 <div class="main__employer-page-two-item-text-name">Анкеты присылать на 251 <div class="main__employer-page-two-item-text-name">Анкеты присылать на
251 почту: 252 почту:
252 </div> 253 </div>
253 <div class="main__employer-page-two-item-text-body"> 254 <div class="main__employer-page-two-item-text-body">
254 <a href="mailto: {{ $job->email }}">{{ $job->email }}</a> 255 <a href="mailto: $job->email }}"> $job->email }}</a>
255 </div> 256 </div>
256 </div> 257 </div>-->
258
257 @if ((isset($job->jobs)) && ($job->jobs->count())) 259 @if ((isset($job->jobs)) && ($job->jobs->count()))
258 <div class="main__employer-page-two-item-tags"> 260 <div class="main__employer-page-two-item-tags">
259 @foreach ($job->jobs as $item) 261 @foreach ($job->jobs as $item)
260 <span class="main__employer-page-two-item-tag">#{{ $item->name }}</span> 262 <span class="main__employer-page-two-item-tag">#{{ $item->name }}</span>
261 @endforeach 263 @endforeach
262 </div> 264 </div>
263 @endif 265 @endif
264 <div class="main__employer-page-two-item-buttons"> 266 <div class="main__employer-page-two-item-buttons">
265 267
266 <button type="button" data-fancybox data-src="#send" data-vacancy="{{ $job->id }}" data-uid="{{ $user_id }}" data-tuid="{{ $company[0]->users->id }}" data-options='{"touch":false,"autoFocus":false}' 268 <button type="button" data-fancybox data-src="#send" data-vacancy="{{ $job->id }}" data-uid="{{ $user_id }}" data-tuid="{{ $company[0]->users->id }}" data-options='{"touch":false,"autoFocus":false}'
267 class="button main__employer-page-two-item-button js_send_it_button">Оставить 269 class="button main__employer-page-two-item-button js_send_it_button">Оставить
268 отклик...</button> 270 отклик...</button>
269 271
270 <!--<a href="#" 272 <!--<a href="#"
271 class="button button_light main__employer-page-two-item-button">Подробнее</a>--> 273 class="button button_light main__employer-page-two-item-button">Подробнее</a>-->
272 </div> 274 </div>
273 <div class="main__employer-page-two-item-bottom"> 275 <div class="main__employer-page-two-item-bottom">
274 <div class="main__employer-page-two-item-bottom-date">{{ date('d.m.Y H:i:s', strtotime($job->updated_at)) }}</div> 276 <div class="main__employer-page-two-item-bottom-date">{{ date('d.m.Y H:i:s', strtotime($job->updated_at)) }}</div>
275 <button type="button" id="like{{ $job->id }}" data-val="{{ $job->id }}" 277 <button type="button" id="like{{ $job->id }}" data-val="{{ $job->id }}"
276 class="like main__employer-page-two-item-bottom-like js-toggle js_vac_favorite {{ \App\Classes\LikesClass::get_status_vacancy($job) }}"> 278 class="like main__employer-page-two-item-bottom-like js-toggle js_vac_favorite {{ \App\Classes\LikesClass::get_status_vacancy($job) }}">
277 <svg> 279 <svg>
278 <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> 280 <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use>
279 </svg> 281 </svg>
280 </button> 282 </button>
281 </div> 283 </div>
282 </div> 284 </div>
283 @endforeach 285 @endforeach
284 286
285 <div style="margin-top: 20px"> 287 <div style="margin-top: 20px">
286 {{ $ads->onEachSide(0)->appends($_GET)->links('paginate') }} 288 {{ $ads->onEachSide(0)->appends($_GET)->links('paginate') }}
287 </div> 289 </div>
288 <!--<button type="button" class="button button_light button_more main__employer-page-two-more js-toggle js-parent-toggle"> 290 <!--<button type="button" class="button button_light button_more main__employer-page-two-more js-toggle js-parent-toggle">
289 <span>Показать ещё</span> 291 <span>Показать ещё</span>
290 <span>Скрыть</span> 292 <span>Скрыть</span>
291 </button>--> 293 </button>-->
292 </div> 294 </div>
293 </div> 295 </div>
294 </div> 296 </div>
295 </div> 297 </div>
296 </div> 298 </div>
297 </div> 299 </div>
resources/views/list_vacancies.blade.php
1 @php 1 @php
2 use App\Classes\StatusUser; 2 use App\Classes\StatusUser;
3 @endphp 3 @endphp
4 4
5 @extends('layout.frontend', ['title' => 'Вакансии РекаМоре']) 5 @extends('layout.frontend', ['title' => 'Вакансии РекаМоре'])
6 6
7 @section('scripts') 7 @section('scripts')
8 <script> 8 <script>
9 console.log('Test system'); 9 console.log('Test system');
10 $(document).on('change', '#jobs', function() { 10 $(document).on('change', '#jobs', function() {
11 var val = $(this).val(); 11 var val = $(this).val();
12 var main_oskar = $('#main_ockar'); 12 var main_oskar = $('#main_ockar');
13 var ti_head = $('#title_head'); 13 var ti_head = $('#title_head');
14 14
15 console.log('Code='+val); 15 console.log('Code='+val);
16 console.log('Click change...'); 16 console.log('Click change...');
17 $.ajax({ 17 $.ajax({
18 type: "GET", 18 type: "GET",
19 url: "{{ route('list-vacancies', ['categories' => $categories->id]) }}", 19 url: "{{ route('list-vacancies', ['categories' => $categories->id]) }}",
20 data: "job="+val, 20 data: "job="+val,
21 success: function (data) { 21 success: function (data) {
22 console.log('Выбор сделан!'); 22 console.log('Выбор сделан!');
23 23
24 main_oskar.html(data); 24 main_oskar.html(data);
25 history.pushState({}, '', "{{ route('list-vacancies', ['categories' => $categories->id]) }}?job="+val+"@if (isset($_GET['sort']))&sort={{ $_GET['sort'] }}@endif"+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif"); 25 history.pushState({}, '', "{{ route('list-vacancies', ['categories' => $categories->id]) }}?job="+val+"@if (isset($_GET['sort']))&sort={{ $_GET['sort'] }}@endif"+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif");
26 }, 26 },
27 headers: { 27 headers: {
28 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 28 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
29 }, 29 },
30 error: function (data) { 30 error: function (data) {
31 data = JSON.stringify(data); 31 data = JSON.stringify(data);
32 console.log('Error: ' + data); 32 console.log('Error: ' + data);
33 } 33 }
34 }); 34 });
35 35
36 if ((val == '') || (val == '0')) { 36 if ((val == '') || (val == '0')) {
37 title_head.html('Все категории'); 37 title_head.html('Все категории');
38 } else { 38 } else {
39 $.ajax({ 39 $.ajax({
40 type: "GET", 40 type: "GET",
41 url: "{{ route('list-vacancies', ['categories' => $categories->id]) }}?@if (isset($_GET['sort']))&sort={{ $_GET['sort'] }}@endif", 41 url: "{{ route('list-vacancies', ['categories' => $categories->id]) }}?@if (isset($_GET['sort']))&sort={{ $_GET['sort'] }}@endif",
42 data: "job=" + val +"&title=1", 42 data: "job=" + val +"&title=1",
43 success: function (data) { 43 success: function (data) {
44 44
45 console.log(data); 45 console.log(data);
46 }, 46 },
47 47
48 headers: { 48 headers: {
49 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 49 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
50 }, 50 },
51 51
52 error: function (data) { 52 error: function (data) {
53 data = JSON.stringify(data); 53 data = JSON.stringify(data);
54 console.log('Error: ' + data); 54 console.log('Error: ' + data);
55 } 55 }
56 }); 56 });
57 57
58 } 58 }
59 }); 59 });
60 60
61 $(document).on('click', '.js_send_it_button', function() { 61 $(document).on('click', '.js_send_it_button', function() {
62 var this_ = $(this); 62 var this_ = $(this);
63 var code_user_id = this_.attr('data-uid'); 63 var code_user_id = this_.attr('data-uid');
64 var code_to_user_id = this_.attr('data-tuid'); 64 var code_to_user_id = this_.attr('data-tuid');
65 var code_vacancy = this_.attr('data-vacancy'); 65 var code_vacancy = this_.attr('data-vacancy');
66 var user_id = $('#_user_id'); 66 var user_id = $('#_user_id');
67 var to_user_id = $('#_to_user_id'); 67 var to_user_id = $('#_to_user_id');
68 var vacancy = $('#_vacancy'); 68 var vacancy = $('#_vacancy');
69 69
70 console.log('Клик на кнопки...'); 70 console.log('Клик на кнопки...');
71 71
72 user_id.val(code_user_id); 72 user_id.val(code_user_id);
73 to_user_id.val(code_to_user_id); 73 to_user_id.val(code_to_user_id);
74 vacancy.val(code_vacancy); 74 vacancy.val(code_vacancy);
75 }); 75 });
76 76
77 $(document).on('click', '.js_send_for_emp', function() { 77 $(document).on('click', '.js_send_for_emp', function() {
78 var this_ = $(this); 78 var this_ = $(this);
79 var code_user_id = this_.attr('data-uid'); 79 var code_user_id = this_.attr('data-uid');
80 var code_to_user_id = this_.attr('data-tuid'); 80 var code_to_user_id = this_.attr('data-tuid');
81 var code_vacancy = this_.attr('data-vacancy'); 81 var code_vacancy = this_.attr('data-vacancy');
82 var user_id = $('#send_user_id'); 82 var user_id = $('#send_user_id');
83 var to_user_id = $('#send_to_user_id'); 83 var to_user_id = $('#send_to_user_id');
84 var vacancy = $('#send_vacancy'); 84 var vacancy = $('#send_vacancy');
85 85
86 console.log('code_to_user_id='+code_to_user_id); 86 console.log('code_to_user_id='+code_to_user_id);
87 console.log('code_user_id='+code_user_id); 87 console.log('code_user_id='+code_user_id);
88 console.log('code_vacancy='+code_vacancy); 88 console.log('code_vacancy='+code_vacancy);
89 console.log('Клик на кнопке...'); 89 console.log('Клик на кнопке...');
90 90
91 user_id.val(code_user_id); 91 user_id.val(code_user_id);
92 to_user_id.val(code_to_user_id); 92 to_user_id.val(code_to_user_id);
93 vacancy.val(code_vacancy); 93 vacancy.val(code_vacancy);
94 }); 94 });
95 95
96 $(document).on('change', '#sort_ajax', function() { 96 $(document).on('change', '#sort_ajax', function() {
97 var this_ = $(this); 97 var this_ = $(this);
98 var val_ = this_.val(); 98 var val_ = this_.val();
99 console.log('sort items '+val_); 99 console.log('sort items '+val_);
100 100
101 $.ajax({ 101 $.ajax({
102 type: "GET", 102 type: "GET",
103 url: "{{ route('list-vacancies', ['categories' => $categories->id]) }}", 103 url: "{{ route('list-vacancies', ['categories' => $categories->id]) }}",
104 data: "sort="+val_+"&block=1", 104 data: "sort="+val_+"&block=1",
105 success: function (data) { 105 success: function (data) {
106 console.log('Выбор сортировки'); 106 console.log('Выбор сортировки');
107 console.log(data); 107 console.log(data);
108 $('#main_ockar').html(data); 108 $('#main_ockar').html(data);
109 history.pushState({}, '', "{{ route('list-vacancies', ['categories' => $categories->id]) }}?sort="+val_+"@if (isset($_GET['job']))&job={{ $_GET['job'] }}@endif"+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif"); 109 history.pushState({}, '', "{{ route('list-vacancies', ['categories' => $categories->id]) }}?sort="+val_+"@if (isset($_GET['job']))&job={{ $_GET['job'] }}@endif"+"@if (isset($_GET['page']))&page={{ $_GET['page'] }}@endif");
110 }, 110 },
111 headers: { 111 headers: {
112 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 112 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
113 }, 113 },
114 error: function (data) { 114 error: function (data) {
115 data = JSON.stringify(data); 115 data = JSON.stringify(data);
116 console.log('Error: ' + data); 116 console.log('Error: ' + data);
117 } 117 }
118 }); 118 });
119 }); 119 });
120 120
121 121
122 122
123 $(document).ready(function(){ 123 $(document).ready(function(){
124 var sel = $('#select2-sort_ajax-container'); 124 var sel = $('#select2-sort_ajax-container');
125 var key = getUrlParameter('sort'); 125 var key = getUrlParameter('sort');
126 console.log(sel); 126 console.log(sel);
127 console.log(key); 127 console.log(key);
128 128
129 if (key !=='') { 129 if (key !=='') {
130 console.log(key); 130 console.log(key);
131 switch (key) { 131 switch (key) {
132 case "default": sel.html('Сортировка (по умолчанию)'); break; 132 case "default": sel.html('Сортировка (по умолчанию)'); break;
133 case "name_up": sel.html('По имени (возрастание)'); break; 133 case "name_up": sel.html('По имени (возрастание)'); break;
134 case "name_down": sel.html('По дате (убывание)'); break; 134 case "name_down": sel.html('По дате (убывание)'); break;
135 case "created_at_up": sel.html('По дате (возрастание)'); break; 135 case "created_at_up": sel.html('По дате (возрастание)'); break;
136 case "created_at_down": sel.html('По дате (убывание)'); break; 136 case "created_at_down": sel.html('По дате (убывание)'); break;
137 } 137 }
138 138
139 } 139 }
140 }); 140 });
141 </script> 141 </script>
142 @include('js.favorite-vacancy-45') 142 @include('js.favorite-vacancy-45')
143 @endsection 143 @endsection
144 @section('content') 144 @section('content')
145 <section class="thing"> 145 <section class="thing">
146 <div class="container"> 146 <div class="container">
147 <form class="thing__body" action="{{ route('list-vacancies', ['categories' => (!empty($Name_categori)) ? $Name_categori[0]->id : '0']) }}" method="POST"> 147 <form class="thing__body" action="{{ route('list-vacancies', ['categories' => (!empty($Name_categori)) ? $Name_categori[0]->id : '0']) }}" method="POST">
148 <ul class="breadcrumbs thing__breadcrumbs"> 148 <ul class="breadcrumbs thing__breadcrumbs">
149 <li><a href="{{ route('index') }}">Главная</a></li> 149 <li><a href="{{ route('index') }}">Главная</a></li>
150 <li><a href="{{ route('vacancies') }}">Вакансии</a></li> 150 <li><a href="{{ route('vacancies') }}">Вакансии</a></li>
151 <li><b>{{ isset($Name_categori[0]) ? $Name_categori[0]->name : 'Все категории' }}</b></li> 151 <li><b>{{ isset($Name_categori[0]) ? $Name_categori[0]->name : 'Все категории' }}</b></li>
152 </ul> 152 </ul>
153 <h1 class="thing__title">Вакансии</h1> 153 <h1 class="thing__title">Вакансии</h1>
154 <p class="thing__text">С другой стороны, социально-экономическое развитие не оставляет шанса для 154 <p class="thing__text">С другой стороны, социально-экономическое развитие не оставляет шанса для
155 существующих финансовых и административных условий.</p> 155 существующих финансовых и административных условий.</p>
156 <div class="select select_search thing__select"> 156 <div class="select select_search thing__select">
157 <div class="select__icon"> 157 <div class="select__icon">
158 <svg> 158 <svg>
159 <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use> 159 <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use>
160 </svg> 160 </svg>
161 </div> 161 </div>
162 <select class="js-select2" id="jobs" name="jobs"> 162 <select class="js-select2" id="jobs" name="jobs">
163 <option value="0" selected>Выберите должность</option> 163 <option value="0" selected>Выберите должность</option>
164 @if ($Job_title->count()) 164 @if ($Job_title->count())
165 @foreach($Job_title as $JT) 165 @foreach($Job_title as $JT)
166 <option value="{{ $JT->id }}" @if(isset($_GET['job']) && ($_GET['job'] == $JT->id)) selected @endif>{{ $JT->name }}</option> 166 <option value="{{ $JT->id }}" @if(isset($_GET['job']) && ($_GET['job'] == $JT->id)) selected @endif>{{ $JT->name }}</option>
167 @endforeach 167 @endforeach
168 @endif 168 @endif
169 </select> 169 </select>
170 </div> 170 </div>
171 </form> 171 </form>
172 </div> 172 </div>
173 </section> 173 </section>
174 <main class="main"> 174 <main class="main">
175 <div class="container"> 175 <div class="container">
176 <div class="main__vacancies" > 176 <div class="main__vacancies" >
177 @if (isset($Name_categori[0]->name)) 177 @if (isset($Name_categori[0]->name))
178 <h2 class="main__vacancies-title">Категория вакансий {{ $Name_categori[0]->name }}</h2> 178 <h2 class="main__vacancies-title">Категория вакансий {{ $Name_categori[0]->name }}</h2>
179 @else 179 @else
180 <h2 class="main__vacancies-title" id="title_head" name="title_head">Все категории</h2> 180 <h2 class="main__vacancies-title" id="title_head" name="title_head">Все категории</h2>
181 @endif 181 @endif
182 <div class="filters main__vacancies-filters"> 182 <div class="filters main__vacancies-filters">
183 <div class="filters__label" id="col-vo" name="col-vo">Показано {{ $Query->firstItem() }} – {{ $Query->lastItem() }} из @isset($Query_count) {{ $Query_count }} @else 0 @endisset результатов поиска</div> 183 <div class="filters__label" id="col-vo" name="col-vo">Показано {{ $Query->firstItem() }} – {{ $Query->lastItem() }} из @isset($Query_count) {{ $Query_count }} @else 0 @endisset результатов поиска</div>
184 <div class="filters__body"> 184 <div class="filters__body">
185 <div class="select filters__select"> 185 <div class="select filters__select">
186 <select class="js-select2" id="sort_ajax" name="sort_ajax"> 186 <select class="js-select2" id="sort_ajax" name="sort_ajax">
187 <option value="default">Сортировка (по умолчанию)</option> 187 <option value="default">Сортировка (по умолчанию)</option>
188 <option value="name_up">По имени (возрастание)</option> 188 <option value="name_up">По имени (возрастание)</option>
189 <option value="name_down">По имени (убывание)</option> 189 <option value="name_down">По имени (убывание)</option>
190 <option value="created_at_up">По дате (возрастание)</option> 190 <option value="created_at_up">По дате (возрастание)</option>
191 <option value="created_at_down">По дате (убывание)</option> 191 <option value="created_at_down">По дате (убывание)</option>
192 </select> 192 </select>
193 </div> 193 </div>
194 </div> 194 </div>
195 </div> 195 </div>
196 196
197 <div class="main__vacancies" style="width:100%;" id="main_ockar" name="main_oskar"> 197 <div class="main__vacancies" style="width:100%;" id="main_ockar" name="main_oskar">
198 @php $i = ($Query->currentPage() * $Query->perPage() - $Query->count() - 1) @endphp 198 @php $i = ($Query->currentPage() * $Query->perPage() - $Query->count() - 1) @endphp
199 199
200 @foreach ($Query as $Q) 200 @foreach ($Query as $Q)
201 @foreach ($Reclama as $Rec) 201 @foreach ($Reclama as $Rec)
202 @if ($Rec->position == $i) 202 @if ($Rec->position == $i)
203 <div class="main__vacancies-thing"> 203 <div class="main__vacancies-thing">
204 @if (!empty($Rec->image)) 204 @if (!empty($Rec->image))
205 <img src="{{ asset(Storage::url($Rec->image)) }}" alt="{{ $Rec->title }}" class="main__vacancies-thing-pic"> 205 <img src="{{ asset(Storage::url($Rec->image)) }}" alt="{{ $Rec->title }}" class="main__vacancies-thing-pic">
206 @else 206 @else
207 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $Rec->title }}" class="main__vacancies-thing-pic"> 207 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $Rec->title }}" class="main__vacancies-thing-pic">
208 @endif 208 @endif
209 <div class="main__vacancies-thing-body"> 209 <div class="main__vacancies-thing-body">
210 <h2>{{ $Rec->title }}</h2> 210 <h2>{{ $Rec->title }}</h2>
211 <div class="main__vacancies-thing-scroll"> 211 <div class="main__vacancies-thing-scroll">
212 {!! $Rec->text !!} 212 {!! $Rec->text !!}
213 </div> 213 </div>
214 <a href="{{ $Rec->link }}" class="button">Узнать больше</a> 214 <a href="{{ $Rec->link }}" class="button">Узнать больше</a>
215 </div> 215 </div>
216 </div> 216 </div>
217 @endif 217 @endif
218 @endforeach 218 @endforeach
219 <div class="main__vacancies-item main__employer-page-two-item" data-id="{{ $Q->id }}"> 219 <div class="main__vacancies-item main__employer-page-two-item" data-id="{{ $Q->id }}">
220 220
221 <a href="{{ route('list-vacancies', ['categories' => $categories->id]) }}" class="back main__employer-page-two-item-back"> 221 <a href="{{ route('list-vacancies', ['categories' => $categories->id]) }}" class="back main__employer-page-two-item-back">
222 <svg> 222 <svg>
223 <use xlink:href="{{ asset('images/sprite.svg#back') }}"></use> 223 <use xlink:href="{{ asset('images/sprite.svg#back') }}"></use>
224 </svg> 224 </svg>
225 <span> 225 <span>
226 Вернуться к списку вакансий 123 226 Вернуться к списку вакансий 123
227 </span> 227 </span>
228 </a> 228 </a>
229 229
230 <div class="main__employer-page-two-item-toper"> 230 <div class="main__employer-page-two-item-toper">
231 @if (!empty($Q->employer->logo)) 231 @if (!empty($Q->employer->logo))
232 <img src="{{ asset(Storage::url($Q->employer->logo)) }}" alt="{{ $Q->employer->name }}"> 232 <img src="{{ asset(Storage::url($Q->employer->logo)) }}" alt="{{ $Q->employer->name }}">
233 @else 233 @else
234 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $Rec->title }}" class="main__vacancies-thing-pic"> 234 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $Rec->title }}" class="main__vacancies-thing-pic">
235 @endif 235 @endif
236 <span>@if (!empty($Q->name)) {{ $Q->name }} @endif</span> 236 <span>@if (!empty($Q->name)) {{ $Q->name }} @endif</span>
237 </div> 237 </div>
238 238
239 <div class="main__employer-page-two-item-text"> 239 <div class="main__employer-page-two-item-text">
240 <div class="main__employer-page-two-item-text-name">Судоходная компания ведет набор 240 <div class="main__employer-page-two-item-text-name">Судоходная компания ведет набор
241 специалистов на следующие должности:</div> 241 специалистов на следующие должности:</div>
242 <div class="main__employer-page-two-item-text-links"> 242 <div class="main__employer-page-two-item-text-links">
243 @if (isset($Q->jobs)) 243 @if (isset($Q->jobs))
244 @foreach ($Q->jobs as $key => $j) 244 @foreach ($Q->jobs as $key => $j)
245 <a>“{{ $j->name }}” – з/п от @if (isset($Q->jobs_code[$key]->min_salary)) {{ $Q->jobs_code[$key]->min_salary }} @endif - @if (isset($Q->jobs_code[$key]->max_salary)) {{ $Q->jobs_code[$key]->max_salary }} @endif рублей (на руки)</a> 245 <a>“{{ $j->name }}” <!--– з/п от if (isset($Q->jobs_code[$key]->min_salary)) { $Q->jobs_code[$key]->min_salary }} endif - if (isset($Q->jobs_code[$key]->max_salary)) { $Q->jobs_code[$key]->max_salary }} endif рублей (на руки)-->
246 </a>
246 @endforeach 247 @endforeach
247 @endif 248 @endif
248 </div> 249 </div>
249 </div> 250 </div>
250 251
251 <div class="main__employer-page-two-item-text"> 252 <div class="main__employer-page-two-item-text">
252 <div class="main__employer-page-two-item-text-name">Мы предлагаем:</div> 253 <div class="main__employer-page-two-item-text-name">Мы предлагаем:</div>
253 <div class="main__employer-page-two-item-text-body"> 254 <div class="main__employer-page-two-item-text-body">
254 {!! $Q->text !!} 255 {!! $Q->text !!}
255 </div> 256 </div>
256 </div> 257 </div>
257 <div class="main__employer-page-two-item-text"> 258 <!--<div class="main__employer-page-two-item-text">
258 <div class="main__employer-page-two-item-text-name">Наши ожидания:</div> 259 <div class="main__employer-page-two-item-text-name">Наши ожидания:</div>
259 <div class="main__employer-page-two-item-text-body"> 260 <div class="main__employer-page-two-item-text-body">
260 {!! $Q->description !!} 261 !! $Q->description !!}
261 </div> 262 </div>
262 </div> 263 </div>
263 <div class="main__employer-page-two-item-text"> 264 <div class="main__employer-page-two-item-text">
264 <div class="main__employer-page-two-item-text-name">Резюме направляйте на почту:</div> 265 <div class="main__employer-page-two-item-text-name">Резюме направляйте на почту:</div>
265 <div class="main__employer-page-two-item-text-body"> 266 <div class="main__employer-page-two-item-text-body">
266 {!! $Q->contacts_emails !!} 267 !! $Q->contacts_emails !!}
267 </div> 268 </div>
268 </div> 269 </div>
269 <div class="main__employer-page-two-item-text"> 270 <div class="main__employer-page-two-item-text">
270 <div class="main__employer-page-two-item-text-name">Или звоните:</div> 271 <div class="main__employer-page-two-item-text-name">Или звоните:</div>
271 <div class="main__employer-page-two-item-text-body"> 272 <div class="main__employer-page-two-item-text-body">
272 {!! $Q->contacts_telephones !!} 273 !! $Q->contacts_telephones !!}
273 </div> 274 </div>
274 </div> 275 </div>-->
275 276
276 <div class="main__employer-page-two-item-tags"> 277 <div class="main__employer-page-two-item-tags">
277 @if (!empty($Q->jobs_code[0]->position_ship)) 278 @if (!empty($Q->jobs_code[0]->position_ship))
278 <span class="main__employer-page-two-item-tag"> #{{ $Q->jobs_code[0]->position_ship }}</span> 279 <span class="main__employer-page-two-item-tag"> #{{ $Q->jobs_code[0]->position_ship }}</span>
279 @else 280 @else
280 @if (isset($Q->jobs)) 281 @if (isset($Q->jobs))
281 @foreach ($Q->jobs as $key => $j) 282 @foreach ($Q->jobs as $key => $j)
282 <span class="main__employer-page-two-item-tag"> #{{ $j->name }}</span> 283 <span class="main__employer-page-two-item-tag"> #{{ $j->name }}</span>
283 @endforeach 284 @endforeach
284 @endif 285 @endif
285 @endif 286 @endif
286 </div> 287 </div>
287 <div class="main__employer-page-two-item-buttons"> 288 <div class="main__employer-page-two-item-buttons">
288 @guest 289 @guest
289 <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' 290 <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}'
290 class="button main__employer-page-two-item-button">Откликнуться</button> 291 class="button main__employer-page-two-item-button">Откликнуться</button>
291 @else 292 @else
292 @if (App\Classes\StatusUser::Status()==1) 293 @if (App\Classes\StatusUser::Status()==1)
293 <button type="button" data-fancybox data-src="#send" data-vacancy="{{ $Q->id }}" data-uid="{{ $uid }}" data-tuid="{{ $Q->employer->user_id }}" data-options='{"touch":false,"autoFocus":false}' 294 <button type="button" data-fancybox data-src="#send" data-vacancy="{{ $Q->id }}" data-uid="{{ $uid }}" data-tuid="{{ $Q->employer->user_id }}" data-options='{"touch":false,"autoFocus":false}'
294 class="button main__employer-page-two-item-button js_send_for_emp">Откликнуться</button> 295 class="button main__employer-page-two-item-button js_send_for_emp">Откликнуться</button>
295 @else 296 @else
296 <button type="button" data-fancybox data-src="#send2" data-vacancy="{{ $Q->id }}" data-uid="{{ $uid }}" data-tuid="{{ $Q->employer->user_id }}" data-options='{"touch":false,"autoFocus":false}' 297 <button type="button" data-fancybox data-src="#send2" data-vacancy="{{ $Q->id }}" data-uid="{{ $uid }}" data-tuid="{{ $Q->employer->user_id }}" data-options='{"touch":false,"autoFocus":false}'
297 class="button main__employer-page-two-item-button js_send_it_button">Откликнуться</button> 298 class="button main__employer-page-two-item-button js_send_it_button">Откликнуться</button>
298 @endif 299 @endif
299 @endguest 300 @endguest
300 <a href="{{ route('vacancie', ['vacancy' => $Q->id]) }}" class="button button_light main__employer-page-two-item-button">Подробнее</a> 301 <a href="{{ route('vacancie', ['vacancy' => $Q->id]) }}" class="button button_light main__employer-page-two-item-button">Подробнее</a>
301 </div> 302 </div>
302 <div class="main__employer-page-two-item-bottom"> 303 <div class="main__employer-page-two-item-bottom">
303 <div class="main__employer-page-two-item-bottom-date">{{ date('d.m.Y H:i:s', strtotime($Q->created_at)) }}</div> 304 <div class="main__employer-page-two-item-bottom-date">{{ date('d.m.Y H:i:s', strtotime($Q->created_at)) }}</div>
304 <button type="button" id="like{{ $Q->id }}" data-val="{{ $Q->id }}" class="like main__employer-page-two-item-bottom-like js-toggle js_vac_favorite {{ \App\Classes\LikesClass::get_status_vacancy($Q) }}"> 305 <button type="button" id="like{{ $Q->id }}" data-val="{{ $Q->id }}" class="like main__employer-page-two-item-bottom-like js-toggle js_vac_favorite {{ \App\Classes\LikesClass::get_status_vacancy($Q) }}">
305 <svg> 306 <svg>
306 <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> 307 <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use>
307 </svg> 308 </svg>
308 </button> 309 </button>
309 </div> 310 </div>
310 </div> 311 </div>
311 @php $i++ @endphp 312 @php $i++ @endphp
312 @endforeach 313 @endforeach
313 <div style="margin-top: 20px"> 314 <div style="margin-top: 20px">
314 {{ $Query->onEachSide(0)->appends($_GET)->links('paginate') }} 315 {{ $Query->onEachSide(0)->appends($_GET)->links('paginate') }}
315 </div><!-- конец --> 316 </div><!-- конец -->
316 317
317 </div> 318 </div>
318 </div> 319 </div>
319 </div> 320 </div>
320 </main> 321 </main>
321 @endsection 322 @endsection
322 323