Commit ca7f50e81650ed42c0e7dde4e7537fe2296f5cf4

Authored by Андрей Ларионов
1 parent 35796e00c6
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="Поиск&hellip;" value="@if ((isset($_GET['search'])) && (!empty($_GET['search']))) {{ $_GET['search'] }} @endif"> 77 <input type="search" name="search" id="search" class="input" placeholder="Поиск&hellip;" 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 class="cabinet__filters-item"> 86 <!--<div class="cabinet__filters-item">
87 <div class="select"> 87 <div class="select">
88 <select class="js-select2" id="sort_ajax" name="sort_ajax"> 88 <select class="js-select2" id="sort_ajax" name="sort_ajax">
89 <option value="default">Сортировка (по умолчанию)</option> 89 <option value="default">Сортировка (по умолчанию)</option>
90 <option value="name (asc)">По имени (возрастание)</option> 90 <option value="name (asc)">По имени (возрастание)</option>
91 <option value="name (desc)">По имени (убывание)</option> 91 <option value="name (desc)">По имени (убывание)</option>
92 <option value="created_at (asc)">По дате (возрастание)</option> 92 <option value="created_at (asc)">По дате (возрастание)</option>
93 <option value="created_at (desc)">По дате (убывание)</option> 93 <option value="created_at (desc)">По дате (убывание)</option>
94 </select> 94 </select>
95 </div> 95 </div>
96 </div>--> 96 </div>-->
97 </div> 97 </div>
98 <div class="cvs"> 98 <div class="cvs">
99 <!--<button type="button" class="cvs__button js-toggle js-parent-toggle button button_light button_more"> 99 <!--<button type="button" class="cvs__button js-toggle js-parent-toggle button button_light button_more">
100 <span>Показать ещё</span> 100 <span>Показать ещё</span>
101 <span>Скрыть</span> 101 <span>Скрыть</span>
102 </button>--> 102 </button>-->
103 @if ((isset($Workers) && ($Workers->count()))) 103 @if ((isset($Workers) && ($Workers->count())))
104 @foreach ($Workers as $it) 104 @foreach ($Workers as $it)
105 <div class="cvs__body"> 105 <div class="cvs__body">
106 <div class="cvs__item"> 106 <div class="cvs__item">
107 <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 <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) }}">
108 <svg> 108 <svg>
109 <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> 109 <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use>
110 </svg> 110 </svg>
111 </button> 111 </button>
112 <div class="cvs__item-photo"> 112 <div class="cvs__item-photo">
113 <svg> 113 <svg>
114 <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> 114 <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use>
115 </svg> 115 </svg>
116 @if (!empty($it->photo)) 116 @if (!empty($it->photo))
117 <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($it->photo)) }}" alt=""> 117 <img src="{{ asset(\Illuminate\Support\Facades\Storage::url($it->photo)) }}" alt="">
118 @else 118 @else
119 <img src="{{ asset('images/default_man.jpg') }}" alt=""> 119 <img src="{{ asset('images/default_man.jpg') }}" alt="">
120 @endif 120 @endif
121 </div> 121 </div>
122 <div class="cvs__item-text"> 122 <div class="cvs__item-text">
123 <div> 123 <div>
124 Статус 124 Статус
125 <span>@if ($it->status_work == 0) Ищу работу 125 <span>@if ($it->status_work == 0) Ищу работу
126 @elseif ($it->status_work == 1) Не указано 126 @elseif ($it->status_work == 1) Не указано
127 @elseif ($it->status_work == 2) Не ищу 127 @elseif ($it->status_work == 2) Не ищу
128 @endif 128 @endif
129 </span> 129 </span>
130 </div> 130 </div>
131 <div> 131 <div>
132 Имя кандидата 132 Имя кандидата
133 <span>({{ $it->id }}) @if (isset($it->users)) {{ $it->users->surname." ".$it->users->name_man." ".$it->users->surname2." (".$it->users->id.")" }} @endif</span> 133 <span>({{ $it->id }}) @if (isset($it->users)) {{ $it->users->surname." ".$it->users->name_man." ".$it->users->surname2." (".$it->users->id.")" }} @endif</span>
134 </div> 134 </div>
135 135
136 @if (!empty($it->telephone)) 136 @if (!empty($it->telephone))
137 <div> 137 <div>
138 Номер телефона 138 Номер телефона
139 <a href="tel:{{ $it->telephone }}">{{ $it->telephone }}</a> 139 <a href="tel:{{ $it->telephone }}">{{ $it->telephone }}</a>
140 </div> 140 </div>
141 @endif 141 @endif
142 142
143 @if (!empty($it->telephone2)) 143 @if (!empty($it->telephone2))
144 <div> 144 <div>
145 Номер телефона2 145 Номер телефона2
146 <a href="tel:{{ $it->telephone2 }}">{{ $it->telephone2 }}</a> 146 <a href="tel:{{ $it->telephone2 }}">{{ $it->telephone2 }}</a>
147 </div> 147 </div>
148 @endif 148 @endif
149 @if (!empty($it->email)) 149 @if (!empty($it->email))
150 <div> 150 <div>
151 Электронный адрес 151 Электронный адрес
152 <a href="emailto: {{ $it->email }}">{{ $it->email }}</a> 152 <a href="mailto: {{ $it->email }}">{{ $it->email }}</a>
153 </div> 153 </div>
154 @endif 154 @endif
155 @if (!empty($it->city)) 155 @if (!empty($it->city))
156 <div> 156 <div>
157 Город проживания 157 Город проживания
158 <span>{{ $it->city }}, {{ $it->address }}</span> 158 <span>{{ $it->city }}, {{ $it->address }}</span>
159 </div> 159 </div>
160 @endif 160 @endif
161 161
162 <div> 162 <div>
163 Опыт работы на танкерах 163 Опыт работы на танкерах
164 <span>@if (!empty($it->experience)) {{ $it->experience }} @else 0 @endif годов (лет).</span> 164 <span>@if (!empty($it->experience)) {{ $it->experience }} @else 0 @endif годов (лет).</span>
165 </div> 165 </div>
166 </div> 166 </div>
167 <div class="cvs__item-button"> 167 <div class="cvs__item-button">
168 <a href="{{ route('resume_profile', ['worker' => $it->id]) }}" class="button">Перейти к профилю</a> 168 <a href="{{ route('resume_profile', ['worker' => $it->id]) }}" class="button">Перейти к профилю</a>
169 </div> 169 </div>
170 </div> 170 </div>
171 </div> 171 </div>
172 @endforeach 172 @endforeach
173 </div> 173 </div>
174 @else 174 @else
175 <div class="notify"> 175 <div class="notify">
176 <svg> 176 <svg>
177 <use xlink:href="{{ asset('images/sprite.svg#i') }}"></use> 177 <use xlink:href="{{ asset('images/sprite.svg#i') }}"></use>
178 </svg> 178 </svg>
179 <span>Нет избранных кандидатов</span> 179 <span>Нет избранных кандидатов</span>
180 </div> 180 </div>
181 @endif 181 @endif
182 </div> 182 </div>
183 </div> 183 </div>
184 </div> 184 </div>
185 </div> 185 </div>
186 186
187 </section> 187 </section>
188 </div> 188 </div>
189 @endsection 189 @endsection
190 190