Commit eda864c1e50db74e9b6ad53922c04a43b590fe87
1 parent
6731fa1f2c
Exists in
master
and in
1 other branch
Коммит карточка компании - вакансии
Showing 1 changed file with 8 additions and 6 deletions Inline Diff
resources/views/vacance-item.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' => $title]) | 5 | @extends('layout.frontend', ['title' => $title]) |
6 | 6 | ||
7 | @section('scripts') | 7 | @section('scripts') |
8 | <!--include('js.favorite-vacancy')--> | 8 | <!--include('js.favorite-vacancy')--> |
9 | <script> | 9 | <script> |
10 | $(document).on('click', '.js_send_it_button', function() { | 10 | $(document).on('click', '.js_send_it_button', function() { |
11 | var this_ = $(this); | 11 | var this_ = $(this); |
12 | var code_user_id = this_.attr('data-uid'); | 12 | var code_user_id = this_.attr('data-uid'); |
13 | var code_to_user_id = this_.attr('data-tuid'); | 13 | var code_to_user_id = this_.attr('data-tuid'); |
14 | var code_vacancy = this_.attr('data-vacancy'); | 14 | var code_vacancy = this_.attr('data-vacancy'); |
15 | var user_id = $('#_user_id'); | 15 | var user_id = $('#_user_id'); |
16 | var to_user_id = $('#_to_user_id'); | 16 | var to_user_id = $('#_to_user_id'); |
17 | var vacancy = $('#_vacancy'); | 17 | var vacancy = $('#_vacancy'); |
18 | 18 | ||
19 | console.log('Клик на кнопки...'); | 19 | console.log('Клик на кнопки...'); |
20 | 20 | ||
21 | user_id.val(code_user_id); | 21 | user_id.val(code_user_id); |
22 | to_user_id.val(code_to_user_id); | 22 | to_user_id.val(code_to_user_id); |
23 | vacancy.val(code_vacancy); | 23 | vacancy.val(code_vacancy); |
24 | }); | 24 | }); |
25 | </script> | 25 | </script> |
26 | <script> | 26 | <script> |
27 | $(document).on('click', '.js_send_for_emp', function() { | 27 | $(document).on('click', '.js_send_for_emp', function() { |
28 | var this_ = $(this); | 28 | var this_ = $(this); |
29 | var code_user_id = this_.attr('data-uid'); | 29 | var code_user_id = this_.attr('data-uid'); |
30 | var code_to_user_id = this_.attr('data-tuid'); | 30 | var code_to_user_id = this_.attr('data-tuid'); |
31 | var code_vacancy = this_.attr('data-vacancy'); | 31 | var code_vacancy = this_.attr('data-vacancy'); |
32 | var user_id = $('#send_user_id'); | 32 | var user_id = $('#send_user_id'); |
33 | var to_user_id = $('#send_to_user_id'); | 33 | var to_user_id = $('#send_to_user_id'); |
34 | var vacancy = $('#send_vacancy'); | 34 | var vacancy = $('#send_vacancy'); |
35 | 35 | ||
36 | console.log('code_to_user_id='+code_to_user_id); | 36 | console.log('code_to_user_id='+code_to_user_id); |
37 | console.log('code_user_id='+code_user_id); | 37 | console.log('code_user_id='+code_user_id); |
38 | console.log('code_vacancy='+code_vacancy); | 38 | console.log('code_vacancy='+code_vacancy); |
39 | console.log('Клик на кнопке...'); | 39 | console.log('Клик на кнопке...'); |
40 | 40 | ||
41 | user_id.val(code_user_id); | 41 | user_id.val(code_user_id); |
42 | to_user_id.val(code_to_user_id); | 42 | to_user_id.val(code_to_user_id); |
43 | vacancy.val(code_vacancy); | 43 | vacancy.val(code_vacancy); |
44 | }); | 44 | }); |
45 | </script> | 45 | </script> |
46 | @include('js.favorite-vacancy-45') | 46 | @include('js.favorite-vacancy-45') |
47 | @endsection | 47 | @endsection |
48 | 48 | ||
49 | @section('content') | 49 | @section('content') |
50 | <main class="main"> | 50 | <main class="main"> |
51 | <div class="container"> | 51 | <div class="container"> |
52 | <ul class="breadcrumbs main__breadcrumbs"> | 52 | <ul class="breadcrumbs main__breadcrumbs"> |
53 | <li><a href="{{ route('index') }}">Главная</a></li> | 53 | <li><a href="{{ route('index') }}">Главная</a></li> |
54 | <li><a href="{{ route('vacancies') }}">Вакансии</a></li> | 54 | <li><a href="{{ route('vacancies') }}">Вакансии</a></li> |
55 | <li><b>{{ $title }}</b></li> | 55 | <li><b>{{ $title }}</b></li> |
56 | </ul> | 56 | </ul> |
57 | <div class="main__employer-page"> | 57 | <div class="main__employer-page"> |
58 | 58 | ||
59 | @if (isset($Query[0]->employer)) | 59 | @if (isset($Query[0]->employer)) |
60 | <h2 class="main__employer-page-title">О компании</h2> | 60 | <h2 class="main__employer-page-title">О компании</h2> |
61 | <div class="main__employer-page-two-item-toper"> | 61 | <div class="main__employer-page-two-item-toper"> |
62 | @if (!empty($Query[0]->employer->logo)) | 62 | @if (!empty($Query[0]->employer->logo)) |
63 | <img src="{{ asset(Storage::url($Query[0]->employer->logo)) }}" alt="{{ $Query[0]->employer->name }}"> | 63 | <img src="{{ asset(Storage::url($Query[0]->employer->logo)) }}" alt="{{ $Query[0]->employer->name }}"> |
64 | @else | 64 | @else |
65 | <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $Query[0]->employer->name }}"> | 65 | <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $Query[0]->employer->name }}"> |
66 | @endif | 66 | @endif |
67 | <span>{{ $Query[0]->employer->name_company }}</span> | 67 | <span>{{ $Query[0]->employer->name_company }}</span> |
68 | </div> | 68 | </div> |
69 | 69 | ||
70 | <div class="main__employer-page-info"> | 70 | <div class="main__employer-page-info"> |
71 | <div class="main__employer-page-item"> | 71 | <div class="main__employer-page-item"> |
72 | <b> Адрес компании</b> | 72 | <b> Адрес компании</b> |
73 | <span> | 73 | <span> |
74 | {{ $Query[0]->employer->address }} | 74 | {{ $Query[0]->employer->address }} |
75 | </span> | 75 | </span> |
76 | </div> | 76 | </div> |
77 | <div class="main__employer-page-item"> | 77 | <div class="main__employer-page-item"> |
78 | <b>Сайт</b> | 78 | <b>Сайт</b> |
79 | <span> | 79 | <span> |
80 | <a href="{{ $Query[0]->employer->site }}">{{ $Query[0]->employer->site }}</a> | 80 | <a href="{{ $Query[0]->employer->site }}">{{ $Query[0]->employer->site }}</a> |
81 | </span> | 81 | </span> |
82 | </div> | 82 | </div> |
83 | <div class="main__employer-page-item"> | 83 | <div class="main__employer-page-item"> |
84 | <b>Почта</b> | 84 | <b>Почта</b> |
85 | <span> | 85 | <span> |
86 | <a href="{{ $Query[0]->employer->email }}">{{ $Query[0]->employer->email }}</a> | 86 | <a href="{{ $Query[0]->employer->email }}">{{ $Query[0]->employer->email }}</a> |
87 | </span> | 87 | </span> |
88 | </div> | 88 | </div> |
89 | <div class="main__employer-page-item"> | 89 | <div class="main__employer-page-item"> |
90 | <b>Телефон</b> | 90 | <b>Телефон</b> |
91 | <span> | 91 | <span> |
92 | <a href="tel:{{ $Query[0]->employer->telephone }}">{{ $Query[0]->employer->telephone }}</a> | 92 | <a href="tel:{{ $Query[0]->employer->telephone }}">{{ $Query[0]->employer->telephone }}</a> |
93 | </span> | 93 | </span> |
94 | </div> | 94 | </div> |
95 | </div> | 95 | </div> |
96 | @else | 96 | @else |
97 | <div class="main__employer-page-info"> | 97 | <div class="main__employer-page-info"> |
98 | <div class="main__employer-page-item"> | 98 | <div class="main__employer-page-item"> |
99 | <b>Ничего не найдено</b> | 99 | <b>Ничего не найдено</b> |
100 | <span> | 100 | <span> |
101 | Нет данных о компании | 101 | Нет данных о компании |
102 | </span> | 102 | </span> |
103 | </div> | 103 | </div> |
104 | </div> | 104 | </div> |
105 | @endif | 105 | @endif |
106 | <h2 class="main__employer-page-title">{{ $Query[0]->name }}</h2> | 106 | <h2 class="main__employer-page-title">{{ $Query[0]->name }}</h2> |
107 | <h3 class="main__employer-page-title_">Описание вакансии</h3> | 107 | <h3 class="main__employer-page-title_">Описание вакансии</h3> |
108 | 108 | ||
109 | </div> | 109 | </div> |
110 | 110 | ||
111 | @foreach ($Query as $Q) | 111 | @foreach ($Query as $Q) |
112 | <div class="main__vacancies-item-page main__employer-page-two-item"> | 112 | <div class="main__vacancies-item-page main__employer-page-two-item"> |
113 | <div class="main__employer-page-two-item-text"> | 113 | <div class="main__employer-page-two-item-text"> |
114 | <div class="main__employer-page-two-item-text-name">Судоходная компания ведет набор | 114 | <div class="main__employer-page-two-item-text-name">Судоходная компания ведет набор |
115 | специалистов на следующие должности:</div> | 115 | специалистов на следующие должности:</div> |
116 | <div class="main__employer-page-two-item-text-links"> | 116 | <div class="main__employer-page-two-item-text-links"> |
117 | @if (isset($Q->jobs)) | 117 | @if (isset($Q->jobs)) |
118 | @foreach ($Q->jobs as $key => $j) | 118 | @foreach ($Q->jobs as $key => $j) |
119 | <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> | 119 | <a>“{{ $j->name }}” |
120 | <!--– з/п от 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 рублей (на руки)--> | ||
121 | </a> | ||
120 | @endforeach | 122 | @endforeach |
121 | @endif | 123 | @endif |
122 | </div> | 124 | </div> |
123 | </div> | 125 | </div> |
124 | <div class="main__employer-page-two-item-text"> | 126 | <div class="main__employer-page-two-item-text"> |
125 | <div class="main__employer-page-two-item-text-name">Мы предлагаем:</div> | 127 | <div class="main__employer-page-two-item-text-name">Мы предлагаем:</div> |
126 | <div class="main__employer-page-two-item-text-body"> | 128 | <div class="main__employer-page-two-item-text-body"> |
127 | {!! $Q->text !!} | 129 | {!! $Q->text !!} |
128 | </div> | 130 | </div> |
129 | </div> | 131 | </div> |
130 | <div class="main__employer-page-two-item-text"> | 132 | <!--<div class="main__employer-page-two-item-text"> |
131 | <div class="main__employer-page-two-item-text-name">Наши ожидания:</div> | 133 | <div class="main__employer-page-two-item-text-name">Наши ожидания:</div> |
132 | <div class="main__employer-page-two-item-text-body"> | 134 | <div class="main__employer-page-two-item-text-body"> |
133 | {!! $Q->description !!} | 135 | !! $Q->description !!} |
134 | </div> | 136 | </div> |
135 | </div> | 137 | </div> |
136 | <div class="main__employer-page-two-item-text"> | 138 | <div class="main__employer-page-two-item-text"> |
137 | <div class="main__employer-page-two-item-text-name">Резюме направляйте на почту:</div> | 139 | <div class="main__employer-page-two-item-text-name">Резюме направляйте на почту:</div> |
138 | <div class="main__employer-page-two-item-text-body"> | 140 | <div class="main__employer-page-two-item-text-body"> |
139 | {!! $Q->contacts_emails !!} | 141 | !! $Q->contacts_emails !!} |
140 | </div> | 142 | </div> |
141 | <div class="main__employer-page-two-item-text"> | 143 | <div class="main__employer-page-two-item-text"> |
142 | <div class="main__employer-page-two-item-text-name">Или звоните:</div> | 144 | <div class="main__employer-page-two-item-text-name">Или звоните:</div> |
143 | <div class="main__employer-page-two-item-text-body"> | 145 | <div class="main__employer-page-two-item-text-body"> |
144 | {!! $Q->contacts_telephones !!} | 146 | !! $Q->contacts_telephones !!} |
145 | </div> | 147 | </div> |
146 | </div> | 148 | </div>--> |
147 | 149 | ||
148 | <div class="main__employer-page-two-item-tags"> | 150 | <div class="main__employer-page-two-item-tags"> |
149 | @if (!empty($Q->jobs_code[0]->position_ship)) | 151 | @if (!empty($Q->jobs_code[0]->position_ship)) |
150 | <span class="main__employer-page-two-item-tag">#{{ $Q->jobs_code[0]->position_ship }}</span> | 152 | <span class="main__employer-page-two-item-tag">#{{ $Q->jobs_code[0]->position_ship }}</span> |
151 | @else | 153 | @else |
152 | @if (isset($Q->jobs)) | 154 | @if (isset($Q->jobs)) |
153 | @foreach ($Q->jobs as $key => $j) | 155 | @foreach ($Q->jobs as $key => $j) |
154 | <span class="main__employer-page-two-item-tag">#{{ $j->name }}</span> | 156 | <span class="main__employer-page-two-item-tag">#{{ $j->name }}</span> |
155 | @endforeach | 157 | @endforeach |
156 | @endif | 158 | @endif |
157 | @endif | 159 | @endif |
158 | </div> | 160 | </div> |
159 | <br> | 161 | <br> |
160 | <div class="main__employer-page-two-item-buttons"> | 162 | <div class="main__employer-page-two-item-buttons"> |
161 | @guest | 163 | @guest |
162 | <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' | 164 | <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}' |
163 | class="button main__employer-page-two-item-button">Откликнуться</button> | 165 | class="button main__employer-page-two-item-button">Откликнуться</button> |
164 | @else | 166 | @else |
165 | @if (App\Classes\StatusUser::Status()==1) | 167 | @if (App\Classes\StatusUser::Status()==1) |
166 | <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}' | 168 | <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}' |
167 | class="button main__employer-page-two-item-button js_send_for_emp">Откликнуться</button> | 169 | class="button main__employer-page-two-item-button js_send_for_emp">Откликнуться</button> |
168 | @else | 170 | @else |
169 | <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}' | 171 | <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}' |
170 | class="button main__employer-page-two-item-button js_send_it_button">Откликнуться</button> | 172 | class="button main__employer-page-two-item-button js_send_it_button">Откликнуться</button> |
171 | @endif | 173 | @endif |
172 | @endguest | 174 | @endguest |
173 | </div> | 175 | </div> |
174 | <div class="main__employer-page-two-item-bottom"> | 176 | <div class="main__employer-page-two-item-bottom"> |
175 | <div class="main__employer-page-two-item-bottom-date">{{ date('d.m.Y H:i:s', strtotime($Q->created_at)) }}</div> | 177 | <div class="main__employer-page-two-item-bottom-date">{{ date('d.m.Y H:i:s', strtotime($Q->created_at)) }}</div> |
176 | <button type="button" id="like{{ $Q->id }}" data-val="{{ $Q->id }}" class="like main__employer-page-two-item-bottom-like js_vac_favorite js-toggle {{ \App\Classes\LikesClass::get_status_vacancy($Q) }}"> | 178 | <button type="button" id="like{{ $Q->id }}" data-val="{{ $Q->id }}" class="like main__employer-page-two-item-bottom-like js_vac_favorite js-toggle {{ \App\Classes\LikesClass::get_status_vacancy($Q) }}"> |
177 | <svg> | 179 | <svg> |
178 | <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> | 180 | <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> |
179 | </svg> | 181 | </svg> |
180 | </button> | 182 | </button> |
181 | </div> | 183 | </div> |
182 | 184 | ||
183 | </div> | 185 | </div> |
184 | 186 | ||
185 | @endforeach | 187 | @endforeach |
186 | 188 | ||
187 | </div> <a href="{{ redirect()->back()->getTargetUrl() }}" class="back"> | 189 | </div> <a href="{{ redirect()->back()->getTargetUrl() }}" class="back"> |
188 | <svg> | 190 | <svg> |
189 | <use xlink:href="{{ asset('images/sprite.svg#back') }}"></use> | 191 | <use xlink:href="{{ asset('images/sprite.svg#back') }}"></use> |
190 | </svg> | 192 | </svg> |
191 | <span> | 193 | <span> |
192 | Вернуться к списку вакансий | 194 | Вернуться к списку вакансий |
193 | </span> | 195 | </span> |
194 | </a> | 196 | </a> |
195 | </main> | 197 | </main> |
196 | </div> | 198 | </div> |
197 | @endsection | 199 | @endsection |
198 | 200 |