Commit a0ded4415907d883869705dff7995bc199908cd3

Authored by Андрей Ларионов
1 parent 658f3770ae

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

Showing 1 changed file with 7 additions and 6 deletions Inline Diff

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"> 219 <div class="main__vacancies-item main__employer-page-two-item">
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 Вернуться к списку вакансий 226 Вернуться к списку вакансий
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