Commit 658f3770ae350f8977cef6cad2e5818bbd5bc316

Authored by Андрей Ларионов
1 parent 8e4c0bff21

Коммит по вакансиям компании

Showing 1 changed file with 14 additions and 12 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>