Commit 951d4aeffdf8bd5e3c4d181252b2f39fa4d25fa6

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

Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su

Showing 1 changed file Inline Diff

resources/views/employers/bd.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 $(document).ready(function(){ 5 $(document).ready(function(){
6 $('[name="job_title_list[]"]').chosen({ 6 $('[name="job_title_list[]"]').chosen({
7 width: '100%' 7 width: '100%'
8 }) 8 })
9 $('[name="job_title"]').change(function(){ 9 $('[name="job_title"]').change(function(){
10 if ($(this).is(':checked')){ 10 if ($(this).is(':checked')){
11 $(".job-title-list-wrap").css("display", "block"); 11 $(".job-title-list-wrap").css("display", "block");
12 } else { 12 } else {
13 $(".job-title-list-wrap").css("display", "none"); 13 $(".job-title-list-wrap").css("display", "none");
14 } 14 }
15 }); 15 });
16 $('.cabinet__export-button-wrap button').click(function(){ 16 $('.cabinet__export-button-wrap button').click(function(){
17 $('.cabinet__export-error').parent().remove(); 17 $('.cabinet__export-error').parent().remove();
18 }); 18 });
19 }); 19 });
20 20
21 21
22 $(document).on('click', '.die_black', function() { 22 $(document).on('click', '.die_black', function() {
23 var this_ = $(this); 23 var this_ = $(this);
24 var ajax_ = $('#ajax_flot_div'); 24 var ajax_ = $('#ajax_flot_div');
25 var id_ = this_.attr('data-test'); 25 var id_ = this_.attr('data-test');
26 var url_ = this_.attr('data-link'); 26 var url_ = this_.attr('data-link');
27 27
28 console.log(url_); 28 console.log(url_);
29 $.ajax({ 29 $.ajax({
30 type: "GET", 30 type: "GET",
31 url: url_, 31 url: url_,
32 success: function (data) { 32 success: function (data) {
33 console.log('Ответка'); 33 console.log('Ответка');
34 ajax_.html(data); 34 ajax_.html(data);
35 }, 35 },
36 headers: { 36 headers: {
37 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 37 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
38 }, 38 },
39 error: function (data) { 39 error: function (data) {
40 console.log('Error: ' + data); 40 console.log('Error: ' + data);
41 } 41 }
42 }); 42 });
43 43
44 }); 44 });
45 </script> 45 </script>
46 @endsection 46 @endsection
47 47
48 @section('content') 48 @section('content')
49 <section class="cabinet"> 49 <section class="cabinet">
50 <div class="container"> 50 <div class="container">
51 <ul class="breadcrumbs cabinet__breadcrumbs"> 51 <ul class="breadcrumbs cabinet__breadcrumbs">
52 <li><a href="{{ route('index') }}">Главная</a></li> 52 <li><a href="{{ route('index') }}">Главная</a></li>
53 <li><b>Личный кабинет</b></li> 53 <li><b>Личный кабинет</b></li>
54 </ul> 54 </ul>
55 <div class="cabinet__wrapper"> 55 <div class="cabinet__wrapper">
56 <div class="cabinet__side"> 56 <div class="cabinet__side">
57 <div class="cabinet__side-toper"> 57 <div class="cabinet__side-toper">
58 @include('employers.emblema') 58 @include('employers.emblema')
59 </div> 59 </div>
60 @include('employers.menu', ['item' => 7]) 60 @include('employers.menu', ['item' => 7])
61 </div> 61 </div>
62 62
63 <div class="cabinet__body"> 63 <div class="cabinet__body">
64 <div class="cabinet__body-item"> 64 <div class="cabinet__body-item">
65 <h2 class="title cabinet__title">База данных</h2> 65 <h2 class="title cabinet__title">База данных</h2>
66 </div> 66 </div>
67 <div class="cabinet__body-item"> 67 <div class="cabinet__body-item">
68 <div class="cabinet__filters"> 68 <div class="cabinet__filters">
69 <div class="cabinet__filters-item"> 69 <div class="cabinet__filters-item">
70 <form class="search" action="{{ route('employer.bd') }}"> 70 <form class="search" action="{{ route('employer.bd') }}">
71 <input type="search" name="search" id="search" class="input" placeholder="Поиск&hellip;" value="@if (isset($_GET['search'])) {{ $_GET['search'] }} @endif"> 71 <input type="search" name="search" id="search" class="input" placeholder="Поиск&hellip;" value="@if (isset($_GET['search'])) {{ $_GET['search'] }} @endif">
72 <button type="submit" class="button">Найти</button> 72 <button type="submit" class="button">Найти</button>
73 <span> 73 <span>
74 <svg> 74 <svg>
75 <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use> 75 <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use>
76 </svg> 76 </svg>
77 </span> 77 </span>
78 </form> 78 </form>
79 </div> 79 </div>
80 </div> 80 </div>
81 <div class="cabinet__filters"> 81 <div class="cabinet__filters">
82 <div class="cabinet__export-wrap"> 82 <div class="cabinet__export-wrap">
83 <form action="{{ route('resume_download_all') }}" method="GET" target="_blank"> 83 <form action="{{ route('resume_download_all') }}" method="GET" target="_blank">
84 <div class="cabinet__export-button-wrap"> 84 <div class="cabinet__export-button-wrap">
85 <button type="submit" class="button"> 85 <button type="submit" class="button">
86 <svg> 86 <svg>
87 <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use> 87 <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use>
88 </svg> 88 </svg>
89 Экспорт 89 Экспорт
90 </button> 90 </button>
91 </div> 91 </div>
92 <div class="cabinet__export-options-wrap"> 92 <div class="cabinet__export-options-wrap">
93 @foreach ($export_options as $key => $value) 93 @foreach ($export_options as $key => $value)
94 <label class="checkbox"> 94 <label class="checkbox">
95 <input type="checkbox" value="1" name="{{$key}}" class="checkbox__input" checked=""> 95 <input type="checkbox" value="1" name="{{$key}}" class="checkbox__input" checked="">
96 <span class="checkbox__icon"> 96 <span class="checkbox__icon">
97 <svg> 97 <svg>
98 <use xlink:href="http://localhost/rekamore/public/images/sprite.svg#v"></use> 98 <use xlink:href="{{ asset('images/sprite.svg#v') }}"></use>
99 </svg> 99 </svg>
100 </span> 100 </span>
101 <span class="checkbox__text"> 101 <span class="checkbox__text">
102 <span>{{$value}}</span> 102 <span>{{$value}}</span>
103 </span> 103 </span>
104 </label> 104 </label>
105 @endforeach 105 @endforeach
106 </div> 106 </div>
107 <div class="job-title-list-wrap"> 107 <div class="job-title-list-wrap">
108 <select name="job_title_list[]" data-placeholder="Выберите должности" multiple > 108 <select name="job_title_list[]" data-placeholder="Выберите должности" multiple >
109 @foreach($jobs_titles as $job_title) 109 @foreach($jobs_titles as $job_title)
110 <option value="{{$job_title['id']}}">{{$job_title['name']}}</option> 110 <option value="{{$job_title['id']}}">{{$job_title['name']}}</option>
111 @endforeach 111 @endforeach
112 </select> 112 </select>
113 </div> 113 </div>
114 </form> 114 </form>
115 </div> 115 </div>
116 </div> 116 </div>
117 @if(session('error')) 117 @if(session('error'))
118 <div class="cabinet__filters"> 118 <div class="cabinet__filters">
119 <p class="cabinet__export-error">{{ session('error') }}</p> 119 <p class="cabinet__export-error">{{ session('error') }}</p>
120 </div> 120 </div>
121 @endif 121 @endif
122 122
123 </div> 123 </div>
124 124
125 <div class="cabinet__body-item"> 125 <div class="cabinet__body-item">
126 <div class="cabinet__table-header"> 126 <div class="cabinet__table-header">
127 <div><!--_if (isset($it->workers[0]->job_titles[0]->name)) _ $it->workers[0]->job_titles[0]->name }}_else Не указано _endif--> 127 <div><!--_if (isset($it->workers[0]->job_titles[0]->name)) _ $it->workers[0]->job_titles[0]->name }}_else Не указано _endif-->
128 Позиции работников 128 Позиции работников
129 </div> 129 </div>
130 <span> 130 <span>
131 Всего вакансий найдено: 131 Всего вакансий найдено:
132 <b>{{ $count_users->count() }}</b> 132 <b>{{ $count_users->count() }}</b>
133 </span> 133 </span>
134 </div> 134 </div>
135 <div class="table table_spoiler"> 135 <div class="table table_spoiler">
136 <!--<button type="button" class="table__button js-toggle js-parent-toggle button button_light button_more"> 136 <!--<button type="button" class="table__button js-toggle js-parent-toggle button button_light button_more">
137 <span>Показать ещё</span> 137 <span>Показать ещё</span>
138 <span>Свернуть</span> 138 <span>Свернуть</span>
139 </button>--> 139 </button>-->
140 140
141 <div class="table__scroll"> 141 <div class="table__scroll">
142 <div class="table__body table__body_min-width"> 142 <div class="table__body table__body_min-width">
143 <table> 143 <table>
144 <thead> 144 <thead>
145 <tr> 145 <tr>
146 <th>ФИО соискателя</th> 146 <th>ФИО соискателя</th>
147 <th>Номер телефона</th> 147 <th>Номер телефона</th>
148 <th>Электронная<br>почта</th> 148 <th>Электронная<br>почта</th>
149 <th>Наличие<br>анкеты</th> 149 <th>Наличие<br>анкеты</th>
150 </tr> 150 </tr>
151 </thead> 151 </thead>
152 <tbody> 152 <tbody>
153 @php 153 @php
154 $categories = 0; 154 $categories = 0;
155 155
156 @endphp 156 @endphp
157 157
158 @if ($users->count()) 158 @if ($users->count())
159 @foreach ($users as $key => $it) 159 @foreach ($users as $key => $it)
160 <tr> 160 <tr>
161 <td>{{ $it->surname." ".$it->name_man }}<br>{{ $it->surname2 }}</td> 161 <td>{{ $it->surname." ".$it->name_man }}<br>{{ $it->surname2 }}</td>
162 162
163 <td> 163 <td>
164 164
165 @if (!empty($it->workers[0]->telephone)) 165 @if (!empty($it->workers[0]->telephone))
166 <a href="tel:{{ $it->workers[0]->telephone }}"> 166 <a href="tel:{{ $it->workers[0]->telephone }}">
167 {{ $it->workers[0]->telephone }} 167 {{ $it->workers[0]->telephone }}
168 </a> 168 </a>
169 @else 169 @else
170 - 170 -
171 @endif 171 @endif
172 172
173 @if (!empty($it->workers[0]->telephone2)) 173 @if (!empty($it->workers[0]->telephone2))
174 <br><a href="tel:{{ $it->workers[0]->telephone2 }}"> 174 <br><a href="tel:{{ $it->workers[0]->telephone2 }}">
175 {{ $it->workers[0]->telephone2 }} 175 {{ $it->workers[0]->telephone2 }}
176 </a> 176 </a>
177 @endif 177 @endif
178 </td> 178 </td>
179 179
180 <td> 180 <td>
181 @if (!empty($it->workers[0]->email)) 181 @if (!empty($it->workers[0]->email))
182 <a href="emailto:{{ $it->workers[0]->email }}">{{ $it->workers[0]->email }}</a> 182 <a href="emailto:{{ $it->workers[0]->email }}">{{ $it->workers[0]->email }}</a>
183 @else 183 @else
184 - 184 -
185 @endif 185 @endif
186 </td> 186 </td>
187 187
188 <td> 188 <td>
189 @if (isset($it->workers[0]->id)) 189 @if (isset($it->workers[0]->id))
190 <a href="{{ route('resume_download', ['worker' => $it->workers[0]->id]) }}" class="table__link"> 190 <a href="{{ route('resume_download', ['worker' => $it->workers[0]->id]) }}" class="table__link">
191 <svg> 191 <svg>
192 <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use> 192 <use xlink:href="{{ asset('images/sprite.svg#share') }}"></use>
193 </svg> 193 </svg>
194 Скачать 194 Скачать
195 </a> 195 </a>
196 @endif 196 @endif
197 </td> 197 </td>
198 </tr> 198 </tr>
199 @endforeach 199 @endforeach
200 @endif 200 @endif
201 </tbody> 201 </tbody>
202 </table> 202 </table>
203 </div> 203 </div>
204 204
205 </div> 205 </div>
206 </div> 206 </div>
207 {{ $users->onEachSide(0)->appends($_GET)->links('paginate') }} 207 {{ $users->onEachSide(0)->appends($_GET)->links('paginate') }}
208 </div> 208 </div>
209 </div> 209 </div>
210 </div> 210 </div>
211 </div> 211 </div>
212 </section> 212 </section>
213 </div> 213 </div>
214 @endsection 214 @endsection
215 215