Commit 748f122fa7bf40cd5e9809a09b5f70d1bc3e7d17
1 parent
f364ad5b7a
Exists in
master
and in
1 other branch
Коммит по документам в инфоблоке
Showing 3 changed files with 14 additions and 1 deletions Inline Diff
app/Models/Ad_employer.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Models; | 3 | namespace App\Models; |
4 | 4 | ||
5 | use Illuminate\Database\Eloquent\Factories\HasFactory; | 5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
6 | use Illuminate\Database\Eloquent\Model; | 6 | use Illuminate\Database\Eloquent\Model; |
7 | 7 | ||
8 | class Ad_employer extends Model | 8 | class Ad_employer extends Model |
9 | { | 9 | { |
10 | use HasFactory; | 10 | use HasFactory; |
11 | 11 | ||
12 | protected $fillable = [ | 12 | protected $fillable = [ |
13 | 'name', | 13 | 'name', |
14 | 'telephone', | 14 | 'telephone', |
15 | 'email', | 15 | 'email', |
16 | 'salary', | 16 | 'salary', |
17 | 'category_id', | 17 | 'category_id', |
18 | 'text', | 18 | 'text', |
19 | 'employer_id', | 19 | 'employer_id', |
20 | 'city', | 20 | 'city', |
21 | 'sort', | 21 | 'sort', |
22 | 'is_remove', | 22 | 'is_remove', |
23 | 'active_is', | 23 | 'active_is', |
24 | 'status', | 24 | 'status', |
25 | 'sroch_vacancy', | 25 | 'sroch_vacancy', |
26 | 'favorite_vacancy' | 26 | 'favorite_vacancy' |
27 | ]; | 27 | ]; |
28 | /* | 28 | /* |
29 | * Связь таблицы employers с таблицей ad_employers | 29 | * Связь таблицы employers с таблицей ad_employers |
30 | многие-к-одному | 30 | многие-к-одному |
31 | */ | 31 | */ |
32 | public function employer() { | 32 | public function employer() { |
33 | return $this->belongsTo(Employer::class, 'employer_id'); | 33 | return $this->belongsTo(Employer::class, 'employer_id'); |
34 | } | 34 | } |
35 | 35 | ||
36 | /* | 36 | /* |
37 | * Связь модели Вакансии (Ad_employer) с моделью Должности (Job_title) | 37 | * Связь модели Вакансии (Ad_employer) с моделью Должности (Job_title) |
38 | многие-ко-многим | 38 | многие-ко-многим |
39 | */ | 39 | */ |
40 | public function jobs() { | 40 | public function jobs() { |
41 | return $this->belongsToMany(Job_title::class, 'ad_jobs'); | 41 | return $this->belongsToMany(Job_title::class, 'ad_jobs'); |
42 | } | 42 | } |
43 | 43 | ||
44 | // Связь модели Вакансии с моделью Коды должностей и вакансий | 44 | // Связь модели Вакансии с моделью Коды должностей и вакансий |
45 | public function jobs_code() { | 45 | public function jobs_code() { |
46 | return $this->hasMany(Ad_jobs::class); | 46 | return $this->hasMany(Ad_jobs::class); |
47 | } | 47 | } |
48 | 48 | ||
49 | /* | 49 | /* |
50 | * Связь модели Вакансия (Ad_employers) с моделью Отклик на Вакансию (Ad_response) | 50 | * Связь модели Вакансия (Ad_employers) с моделью Отклик на Вакансию (Ad_response) |
51 | один-ко-многим | 51 | один-ко-многим |
52 | */ | 52 | */ |
53 | public function response() { | 53 | public function response() { |
54 | return $this->hasMany(ad_response::class); | 54 | return $this->hasMany(ad_response::class); |
55 | } | 55 | } |
56 | 56 | ||
57 | // Связь модели Категории (Categories) с моделью Вакансии | 57 | // Связь модели Категории (Categories) с моделью Вакансии |
58 | public function cat() { | 58 | public function cat() { |
59 | return $this->hasMany(Category::class, 'id'); | 59 | return $this->hasMany(Category::class, 'id'); |
60 | } | 60 | } |
61 | 61 | ||
62 | |||
63 | public function scopeActive($query) { | 62 | public function scopeActive($query) { |
64 | return $query->where('is_remove', '=', '0'); | 63 | return $query->where('is_remove', '=', '0'); |
65 | } | 64 | } |
66 | 65 | ||
67 | // | 66 | // |
68 | public function ad_job() { | 67 | public function ad_job() { |
69 | return $this->hasMany(Ad_jobs::class); | 68 | return $this->hasMany(Ad_jobs::class); |
70 | } | 69 | } |
71 | 70 | ||
72 | // Связь Вакансии с должностями (0-0 - 1) | 71 | // Связь Вакансии с должностями (0-0 - 1) |
73 | public function job_titles() { | 72 | public function job_titles() { |
74 | return $this->belongsToMany(Job_title::class, 'title_workers'); | 73 | return $this->belongsToMany(Job_title::class, 'title_workers'); |
75 | } | 74 | } |
76 | } | 75 | } |
77 | 76 |
app/Models/infobloks.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | namespace App\Models; | 3 | namespace App\Models; |
4 | 4 | ||
5 | use Illuminate\Database\Eloquent\Factories\HasFactory; | 5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
6 | use Illuminate\Database\Eloquent\Model; | 6 | use Illuminate\Database\Eloquent\Model; |
7 | 7 | ||
8 | class infobloks extends Model | 8 | class infobloks extends Model |
9 | { | 9 | { |
10 | use HasFactory; | 10 | use HasFactory; |
11 | 11 | ||
12 | protected $fillable = [ | 12 | protected $fillable = [ |
13 | 'name', | 13 | 'name', |
14 | 'is_remove', | 14 | 'is_remove', |
15 | 'sort', | 15 | 'sort', |
16 | ]; | 16 | ]; |
17 | 17 | ||
18 | public function ScopeActive($query) { | 18 | public function ScopeActive($query) { |
19 | return $query->where('is_remove', '=', '0'); | 19 | return $query->where('is_remove', '=', '0'); |
20 | } | 20 | } |
21 | |||
22 | /* | ||
23 | * Связь модели Инфоблоки (Infobloks) с моделью Доп.информация (dop_info) | ||
24 | один-ко-многим | ||
25 | */ | ||
26 | public function model_dop_info() { | ||
27 | return $this->hasMany(dop_info::class, 'infoblok_id'); | ||
28 | } | ||
21 | } | 29 | } |
22 | 30 |
resources/views/worker.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', '#jobs', function() { | 6 | $(document).on('change', '#jobs', function() { |
7 | var val = $(this).val(); | 7 | var val = $(this).val(); |
8 | var main_oskar = $('#main_ockar'); | 8 | var main_oskar = $('#main_ockar'); |
9 | 9 | ||
10 | console.log('Code='+val); | 10 | console.log('Code='+val); |
11 | console.log('Click change...'); | 11 | console.log('Click change...'); |
12 | $.ajax({ | 12 | $.ajax({ |
13 | type: "GET", | 13 | type: "GET", |
14 | url: "", | 14 | url: "", |
15 | data: "job="+val, | 15 | data: "job="+val, |
16 | success: function (data) { | 16 | success: function (data) { |
17 | console.log('Выбор сделан!'); | 17 | console.log('Выбор сделан!'); |
18 | console.log(data); | 18 | console.log(data); |
19 | main_oskar.html(data); | 19 | main_oskar.html(data); |
20 | }, | 20 | }, |
21 | headers: { | 21 | headers: { |
22 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') | 22 | 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') |
23 | }, | 23 | }, |
24 | error: function (data) { | 24 | error: function (data) { |
25 | data = JSON.stringify(data); | 25 | data = JSON.stringify(data); |
26 | console.log('Error: ' + data); | 26 | console.log('Error: ' + data); |
27 | } | 27 | } |
28 | }); | 28 | }); |
29 | }); | 29 | }); |
30 | </script> | 30 | </script> |
31 | 31 | ||
32 | <script> | 32 | <script> |
33 | $(document).on('click', '.js_it_button', function() { | 33 | $(document).on('click', '.js_it_button', function() { |
34 | var this_ = $(this); | 34 | var this_ = $(this); |
35 | var code_user_id = this_.attr('data-uid'); | 35 | var code_user_id = this_.attr('data-uid'); |
36 | var code_to_user_id = this_.attr('data-tuid'); | 36 | var code_to_user_id = this_.attr('data-tuid'); |
37 | var code_vacancy = this_.attr('data-vacancy'); | 37 | var code_vacancy = this_.attr('data-vacancy'); |
38 | var user_id = $('#_user_id'); | 38 | var user_id = $('#_user_id'); |
39 | var to_user_id = $('#_to_user_id'); | 39 | var to_user_id = $('#_to_user_id'); |
40 | var vacancy = $('#_vacancy'); | 40 | var vacancy = $('#_vacancy'); |
41 | 41 | ||
42 | console.log('code_to_user_id='+code_to_user_id); | 42 | console.log('code_to_user_id='+code_to_user_id); |
43 | console.log('code_user_id='+code_user_id); | 43 | console.log('code_user_id='+code_user_id); |
44 | console.log('code_vacancy='+code_vacancy); | 44 | console.log('code_vacancy='+code_vacancy); |
45 | console.log('Клик на кнопке...'); | 45 | console.log('Клик на кнопке...'); |
46 | 46 | ||
47 | user_id.val(code_user_id); | 47 | user_id.val(code_user_id); |
48 | to_user_id.val(code_to_user_id); | 48 | to_user_id.val(code_to_user_id); |
49 | vacancy.val(code_vacancy); | 49 | vacancy.val(code_vacancy); |
50 | }); | 50 | }); |
51 | </script> | 51 | </script> |
52 | @include('js.favorite-worker') | 52 | @include('js.favorite-worker') |
53 | @endsection | 53 | @endsection |
54 | 54 | ||
55 | @section('content') | 55 | @section('content') |
56 | <section class="thing"> | 56 | <section class="thing"> |
57 | <div class="container"> | 57 | <div class="container"> |
58 | <ul class="breadcrumbs thing__breadcrumbs"> | 58 | <ul class="breadcrumbs thing__breadcrumbs"> |
59 | <li><a href="{{ route('index') }}">Главная</a></li> | 59 | <li><a href="{{ route('index') }}">Главная</a></li> |
60 | <li><a href="{{ route('bd_resume') }}">База резюме</a></li> | 60 | <li><a href="{{ route('bd_resume') }}">База резюме</a></li> |
61 | <li><b>@if (isset($Query[0]->users)) {{ $Query[0]->users->surname." ".$Query[0]->users->name_man." ".$Query[0]->users->surname2 }} @else Неизвестно @endif</b></li> | 61 | <li><b>@if (isset($Query[0]->users)) {{ $Query[0]->users->surname." ".$Query[0]->users->name_man." ".$Query[0]->users->surname2 }} @else Неизвестно @endif</b></li> |
62 | </ul> | 62 | </ul> |
63 | <div class="thing__profile"> | 63 | <div class="thing__profile"> |
64 | <img src="@if (isset($Query[0]->photo)) {{ asset(Storage::url($Query[0]->photo)) }} @else {{ asset('images/default_man.jpg') }} @endif" alt="" class="main__resume-base-body-item-photo"> | 64 | <img src="@if (isset($Query[0]->photo)) {{ asset(Storage::url($Query[0]->photo)) }} @else {{ asset('images/default_man.jpg') }} @endif" alt="" class="main__resume-base-body-item-photo"> |
65 | <div class="thing__profile-body"> | 65 | <div class="thing__profile-body"> |
66 | <h1 class="thing__title">@if (isset($Query[0]->users)) {{ $Query[0]->users->surname." ".$Query[0]->users->name_man." ".$Query[0]->users->surname2 }} @else Неизвестно @endif</h1> | 66 | <h1 class="thing__title">@if (isset($Query[0]->users)) {{ $Query[0]->users->surname." ".$Query[0]->users->name_man." ".$Query[0]->users->surname2 }} @else Неизвестно @endif</h1> |
67 | <p class="thing__text">Сложно сказать, почему ключевые особенности структуры проекта рассмотрены | 67 | <p class="thing__text">Сложно сказать, почему ключевые особенности структуры проекта рассмотрены |
68 | исключительно в разрезе маркетинговых и финансовых предпосылок.</p> | 68 | исключительно в разрезе маркетинговых и финансовых предпосылок.</p> |
69 | <div class="thing__bottom"> | 69 | <div class="thing__bottom"> |
70 | <a class="button" href="{{ route('resume_download', ['worker' => $Query[0]->id]) }}"> | 70 | <a class="button" href="{{ route('resume_download', ['worker' => $Query[0]->id]) }}"> |
71 | Скачать резюме | 71 | Скачать резюме |
72 | <svg> | 72 | <svg> |
73 | <use xlink:href="{{ asset('images/sprite.svg#download') }}"></use> | 73 | <use xlink:href="{{ asset('images/sprite.svg#download') }}"></use> |
74 | </svg> | 74 | </svg> |
75 | </a> | 75 | </a> |
76 | <button type="button" class="like js-toggle js_box_favorit {{ \App\Classes\LikesClass::get_status_worker($Query[0]) }}" data-val="{{ $Query[0]->id }}" id="elem{{ $Query[0]->id }}"> | 76 | <button type="button" class="like js-toggle js_box_favorit {{ \App\Classes\LikesClass::get_status_worker($Query[0]) }}" data-val="{{ $Query[0]->id }}" id="elem{{ $Query[0]->id }}"> |
77 | <svg> | 77 | <svg> |
78 | <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> | 78 | <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use> |
79 | </svg> | 79 | </svg> |
80 | </button> | 80 | </button> |
81 | </div> | 81 | </div> |
82 | </div> | 82 | </div> |
83 | </div> | 83 | </div> |
84 | </div> | 84 | </div> |
85 | </section> | 85 | </section> |
86 | <main class="main"> | 86 | <main class="main"> |
87 | <div class="container"> | 87 | <div class="container"> |
88 | <div class="main__resume-profile"> | 88 | <div class="main__resume-profile"> |
89 | <div class="main__content"> | 89 | <div class="main__content"> |
90 | <div class="main__spoiler"> | 90 | <div class="main__spoiler"> |
91 | <button type="button" class="main__spoiler-toper js-toggle active"> | 91 | <button type="button" class="main__spoiler-toper js-toggle active"> |
92 | Основная информация</button> | 92 | Основная информация</button> |
93 | 93 | ||
94 | <div class="main__spoiler-body"> | 94 | <div class="main__spoiler-body"> |
95 | <table class="main__table"> | 95 | <table class="main__table"> |
96 | <tbody> | 96 | <tbody> |
97 | <tr> | 97 | <tr> |
98 | <td>Имя:</td> | 98 | <td>Имя:</td> |
99 | <td><b>{{ $Query[0]->users->name_man }}</b></td> | 99 | <td><b>{{ $Query[0]->users->name_man }}</b></td> |
100 | </tr> | 100 | </tr> |
101 | <tr> | 101 | <tr> |
102 | <td>Должность:</td> | 102 | <td>Должность:</td> |
103 | <td> | 103 | <td> |
104 | @if ($Query[0]->job_titles->count()) | 104 | @if ($Query[0]->job_titles->count()) |
105 | @foreach ($Query[0]->job_titles as $it) | 105 | @foreach ($Query[0]->job_titles as $it) |
106 | @if ($it->is_remove == 0) | 106 | @if ($it->is_remove == 0) |
107 | <b>{{ $it->name }}</b> | 107 | <b>{{ $it->name }}</b> |
108 | @endif | 108 | @endif |
109 | @endforeach | 109 | @endforeach |
110 | @endif | 110 | @endif |
111 | </td> | 111 | </td> |
112 | </tr> | 112 | </tr> |
113 | <tr> | 113 | <tr> |
114 | <td>Телефон:</td> | 114 | <td>Телефон:</td> |
115 | <td><b><a href="tel:{{ $Query[0]->telephone }}">{{ $Query[0]->telephone }}</a></b></td> | 115 | <td><b><a href="tel:{{ $Query[0]->telephone }}">{{ $Query[0]->telephone }}</a></b></td> |
116 | </tr> | 116 | </tr> |
117 | <tr> | 117 | <tr> |
118 | <td>E-mail:</td> | 118 | <td>E-mail:</td> |
119 | <td><b><a href="mailto:{{ $Query[0]->email }}">{{ $Query[0]->email }}</a></b></td> | 119 | <td><b><a href="mailto:{{ $Query[0]->email }}">{{ $Query[0]->email }}</a></b></td> |
120 | </tr> | 120 | </tr> |
121 | <tr> | 121 | <tr> |
122 | <td>Возраст:</td> | 122 | <td>Возраст:</td> |
123 | <td><b>{{ $Query[0]->old_year }}</b></td> | 123 | <td><b>{{ $Query[0]->old_year }}</b></td> |
124 | </tr> | 124 | </tr> |
125 | <tr> | 125 | <tr> |
126 | <td>Статус:</td> | 126 | <td>Статус:</td> |
127 | <td><b>{{ $status_work[$Query[0]->status_work] }}</b></td> | 127 | <td><b>{{ $status_work[$Query[0]->status_work] }}</b></td> |
128 | </tr> | 128 | </tr> |
129 | <tr> | 129 | <tr> |
130 | <td>Город проживания:</td> | 130 | <td>Город проживания:</td> |
131 | <td><b>{{ $Query[0]->city }}</b></td> | 131 | <td><b>{{ $Query[0]->city }}</b></td> |
132 | </tr> | 132 | </tr> |
133 | <tr> | 133 | <tr> |
134 | <td>Уровень английского:</td> | 134 | <td>Уровень английского:</td> |
135 | <td><b>{{ $Query[0]->en_is }}</b></td> | 135 | <td><b>{{ $Query[0]->en_is }}</b></td> |
136 | </tr> | 136 | </tr> |
137 | <tr> | 137 | <tr> |
138 | <td>Опыт работы:</td> | 138 | <td>Опыт работы:</td> |
139 | <td><b>{{ $Query[0]->experience }}</b></td> | 139 | <td><b>{{ $Query[0]->experience }}</b></td> |
140 | </tr> | 140 | </tr> |
141 | </tbody> | 141 | </tbody> |
142 | </table> | 142 | </table> |
143 | </div> | 143 | </div> |
144 | </div> | 144 | </div> |
145 | <div class="main__spoiler"> | 145 | <div class="main__spoiler"> |
146 | <button type="button" class="main__spoiler-toper js-toggle">Сертификаты / документы</button> | 146 | <button type="button" class="main__spoiler-toper js-toggle">Сертификаты / документы</button> |
147 | <div class="main__spoiler-body"> | 147 | <div class="main__spoiler-body"> |
148 | 148 | ||
149 | @if (isset($Query[0]->sertificate)) | 149 | @if (isset($Query[0]->sertificate)) |
150 | @if ($Query[0]->sertificate->count()) | 150 | @if ($Query[0]->sertificate->count()) |
151 | @foreach($Query[0]->sertificate as $it) | 151 | @foreach($Query[0]->sertificate as $it) |
152 | <table class="main__table"> | 152 | <table class="main__table"> |
153 | <tbody> | 153 | <tbody> |
154 | <tr> | 154 | <tr> |
155 | <td>Название сертификата:</td> | 155 | <td>Название сертификата:</td> |
156 | <td><b>{{ $it->name }}</b></td> | 156 | <td><b>{{ $it->name }}</b></td> |
157 | </tr> | 157 | </tr> |
158 | <tr> | 158 | <tr> |
159 | <td>Организация выдавшая документ:</td> | 159 | <td>Организация выдавшая документ:</td> |
160 | <td><b>{{ $it->education }}</b></td> | 160 | <td><b>{{ $it->education }}</b></td> |
161 | </tr> | 161 | </tr> |
162 | <tr> | 162 | <tr> |
163 | <td>Дата начала обучения:</td> | 163 | <td>Дата начала обучения:</td> |
164 | <td><b>{{ $it->date_begin }}</b></td> | 164 | <td><b>{{ $it->date_begin }}</b></td> |
165 | </tr> | 165 | </tr> |
166 | <tr> | 166 | <tr> |
167 | <td>Дата конца обучения:</td> | 167 | <td>Дата конца обучения:</td> |
168 | <td><b>{{ $it->end_begin }}</b></td> | 168 | <td><b>{{ $it->end_begin }}</b></td> |
169 | </tr> | 169 | </tr> |
170 | </tbody> | 170 | </tbody> |
171 | </table> | 171 | </table> |
172 | <br> | 172 | <br> |
173 | @endforeach | 173 | @endforeach |
174 | @endif | 174 | @endif |
175 | @endif | 175 | @endif |
176 | </div> | 176 | </div> |
177 | </div> | 177 | </div> |
178 | 178 | ||
179 | <div class="main__spoiler"> | 179 | <div class="main__spoiler"> |
180 | <button type="button" class="main__spoiler-toper js-toggle">Опыт работы</button> | 180 | <button type="button" class="main__spoiler-toper js-toggle">Опыт работы</button> |
181 | <div class="main__spoiler-body"> | 181 | <div class="main__spoiler-body"> |
182 | 182 | ||
183 | @if (isset($Query[0]->place_worker)) | 183 | @if (isset($Query[0]->place_worker)) |
184 | @if ($Query[0]->place_worker->count()) | 184 | @if ($Query[0]->place_worker->count()) |
185 | @foreach($Query[0]->place_worker as $it) | 185 | @foreach($Query[0]->place_worker as $it) |
186 | 186 | ||
187 | <table class="main__table"> | 187 | <table class="main__table"> |
188 | <tbody> | 188 | <tbody> |
189 | <tr> | 189 | <tr> |
190 | <td>Должность:</td> | 190 | <td>Должность:</td> |
191 | <td><b>{{ $it->job_title }}</b></td> | 191 | <td><b>{{ $it->job_title }}</b></td> |
192 | </tr> | 192 | </tr> |
193 | <tr> | 193 | <tr> |
194 | <td>Опыт работы в танкерном флоте:</td> | 194 | <td>Опыт работы в танкерном флоте:</td> |
195 | <td><b>@if($it->tanker==1) Есть @else Нет @endif</b></td> | 195 | <td><b>@if($it->tanker==1) Есть @else Нет @endif</b></td> |
196 | </tr> | 196 | </tr> |
197 | <tr> | 197 | <tr> |
198 | <td>Дата начала работы:</td> | 198 | <td>Дата начала работы:</td> |
199 | <td><b>{{ $it->begin_work }}</b></td> | 199 | <td><b>{{ $it->begin_work }}</b></td> |
200 | </tr> | 200 | </tr> |
201 | <tr> | 201 | <tr> |
202 | <td>Дата конца работы:</td> | 202 | <td>Дата конца работы:</td> |
203 | <td><b>{{ $it->end_work }}</b></td> | 203 | <td><b>{{ $it->end_work }}</b></td> |
204 | </tr> | 204 | </tr> |
205 | <tr> | 205 | <tr> |
206 | <td>Название компании:</td> | 206 | <td>Название компании:</td> |
207 | <td><b>{{ $it->name_company }}</b></td> | 207 | <td><b>{{ $it->name_company }}</b></td> |
208 | </tr> | 208 | </tr> |
209 | <tr> | 209 | <tr> |
210 | <td>GWT тип</td> | 210 | <td>GWT тип</td> |
211 | <td><b>{{ $it->GWT }}</b></td> | 211 | <td><b>{{ $it->GWT }}</b></td> |
212 | </tr> | 212 | </tr> |
213 | <tr> | 213 | <tr> |
214 | <td>ГД:</td> | 214 | <td>ГД:</td> |
215 | <td><b>{{ $it->KBT }}</b></td> | 215 | <td><b>{{ $it->KBT }}</b></td> |
216 | </tr> | 216 | </tr> |
217 | </tbody> | 217 | </tbody> |
218 | </table> | 218 | </table> |
219 | <br> | 219 | <br> |
220 | @endforeach | 220 | @endforeach |
221 | @endif | 221 | @endif |
222 | @endif | 222 | @endif |
223 | </div> | 223 | </div> |
224 | </div> | 224 | </div> |
225 | 225 | ||
226 | <div class="main__spoiler"> | 226 | <div class="main__spoiler"> |
227 | <button type="button" class="main__spoiler-toper js-toggle">Дополнительные документы</button> | 227 | <button type="button" class="main__spoiler-toper js-toggle">Дополнительные документы</button> |
228 | <div class="main__spoiler-body"> | 228 | <div class="main__spoiler-body"> |
229 | 229 | ||
230 | @if (isset($Query[0]->infobloks)) | 230 | @if (isset($Query[0]->infobloks)) |
231 | @if ($Query[0]->infobloks->count()) | 231 | @if ($Query[0]->infobloks->count()) |
232 | <table class="main__table"> | 232 | <table class="main__table"> |
233 | <tbody> | 233 | <tbody> |
234 | @foreach($Query[0]->infobloks as $it) | 234 | @foreach($Query[0]->infobloks as $it) |
235 | <tr> | 235 | <tr> |
236 | <td>Документ:</td> | 236 | <td>Документ:</td> |
237 | <td><b>{{ $it->name }}</b></td> | 237 | <td><b>{{ $it->name }}</b></td> |
238 | <td> | ||
239 | @if ($it->model_dop_info[0]->status == 0) Не указано | ||
240 | @elseif($it->model_dop_info[0]->status==1) В наличии | ||
241 | @else Отсутствует | ||
242 | @endif | ||
243 | </td> | ||
238 | </tr> | 244 | </tr> |
239 | @endforeach | 245 | @endforeach |
240 | </tbody> | 246 | </tbody> |
241 | </table> | 247 | </table> |
242 | @endif | 248 | @endif |
243 | @endif | 249 | @endif |
244 | </div> | 250 | </div> |
245 | </div> | 251 | </div> |
246 | </div> | 252 | </div> |
247 | 253 | ||
248 | <div class="main__resume-profile-about"> | 254 | <div class="main__resume-profile-about"> |
249 | <h2 class="main__resume-profile-about-title">О себе</h2> | 255 | <h2 class="main__resume-profile-about-title">О себе</h2> |
250 | <p class="main__resume-profile-about-text">{{ $Query[0]->text }}</p> | 256 | <p class="main__resume-profile-about-text">{{ $Query[0]->text }}</p> |
251 | @if (App\Classes\StatusUser::Status()==0) | 257 | @if (App\Classes\StatusUser::Status()==0) |
252 | @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) | 258 | @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) |
253 | <div class="button main__resume-profile-about-button js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ $idiot }}" data-tuid="{{ $Query[0]->users->id }}" data-options='{"touch":false,"autoFocus":false}'>Написать сообщение</div> | 259 | <div class="button main__resume-profile-about-button js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ $idiot }}" data-tuid="{{ $Query[0]->users->id }}" data-options='{"touch":false,"autoFocus":false}'>Написать сообщение</div> |
254 | @endif | 260 | @endif |
255 | @endif | 261 | @endif |
256 | </div> | 262 | </div> |
257 | <div class="main__resume-profile-info"> | 263 | <div class="main__resume-profile-info"> |
258 | <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2> | 264 | <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2> |
259 | <div class="main__resume-profile-info-body"> | 265 | <div class="main__resume-profile-info-body"> |
260 | @if ((isset($Query[0]->prev_company)) && ($Query[0]->prev_company->count())) | 266 | @if ((isset($Query[0]->prev_company)) && ($Query[0]->prev_company->count())) |
261 | @foreach ($Query[0]->prev_company as $it) | 267 | @foreach ($Query[0]->prev_company as $it) |
262 | <div class="main__resume-profile-info-body-item"> | 268 | <div class="main__resume-profile-info-body-item"> |
263 | <h3 class="main__resume-profile-info-body-subtitle">{{ $it->name_company }}</h3> | 269 | <h3 class="main__resume-profile-info-body-subtitle">{{ $it->name_company }}</h3> |
264 | <ul class="main__resume-profile-info-body-inner"> | 270 | <ul class="main__resume-profile-info-body-inner"> |
265 | <li> | 271 | <li> |
266 | <b>Руководитель</b> | 272 | <b>Руководитель</b> |
267 | <span>{{ $it->direct }}</span> | 273 | <span>{{ $it->direct }}</span> |
268 | </li> | 274 | </li> |
269 | <li> | 275 | <li> |
270 | <b>Телефон того, кто может дать рекомендацию</b> | 276 | <b>Телефон того, кто может дать рекомендацию</b> |
271 | <span> | 277 | <span> |
272 | @if (!empty($it->telephone)) | 278 | @if (!empty($it->telephone)) |
273 | <a href="tel:{{$it->telephone }}">{{ $it->telephone }}</a> | 279 | <a href="tel:{{$it->telephone }}">{{ $it->telephone }}</a> |
274 | @endif | 280 | @endif |
275 | @if (!empty($it->telephone2)) | 281 | @if (!empty($it->telephone2)) |
276 | <a href="tel:{{$it->telephone2 }}">{{ $it->telephone2 }}</a> | 282 | <a href="tel:{{$it->telephone2 }}">{{ $it->telephone2 }}</a> |
277 | @endif | 283 | @endif |
278 | </span> | 284 | </span> |
279 | </li> | 285 | </li> |
280 | </ul> | 286 | </ul> |
281 | </div> | 287 | </div> |
282 | @endforeach | 288 | @endforeach |
283 | @else | 289 | @else |
284 | <div class="main__resume-profile-info-body-item"> | 290 | <div class="main__resume-profile-info-body-item"> |
285 | <h3 class="main__resume-profile-info-body-subtitle">Нету данных о компании</h3> | 291 | <h3 class="main__resume-profile-info-body-subtitle">Нету данных о компании</h3> |
286 | </div> | 292 | </div> |
287 | @endif | 293 | @endif |
288 | </div> | 294 | </div> |
289 | </div> | 295 | </div> |
290 | 296 | ||
291 | <div class="main__resume-profile-review"> | 297 | <div class="main__resume-profile-review"> |
292 | <form action="{{ route('stars_answer') }}" method="POST"> | 298 | <form action="{{ route('stars_answer') }}" method="POST"> |
293 | @csrf | 299 | @csrf |
294 | <h2 class="main__resume-profile-review-title">Оставить отзыв о работнике</h2> | 300 | <h2 class="main__resume-profile-review-title">Оставить отзыв о работнике</h2> |
295 | <div class="rate"> | 301 | <div class="rate"> |
296 | <div class="rate__label">Ваша оценка:</div> | 302 | <div class="rate__label">Ваша оценка:</div> |
297 | <div class="rate__stars"> | 303 | <div class="rate__stars"> |
298 | <select name="stars" id="stars" class="star-rating js-stars"> | 304 | <select name="stars" id="stars" class="star-rating js-stars"> |
299 | <option value="5">5</option> | 305 | <option value="5">5</option> |
300 | <option value="4">4</option> | 306 | <option value="4">4</option> |
301 | <option value="3">3</option> | 307 | <option value="3">3</option> |
302 | <option value="2">2</option> | 308 | <option value="2">2</option> |
303 | <option value="1" selected>1</option> | 309 | <option value="1" selected>1</option> |
304 | </select> | 310 | </select> |
305 | </div> | 311 | </div> |
306 | </div> | 312 | </div> |
307 | <input type="hidden" name="worker_id" id="worker_id" value="{{ $Query[0]->id }}"/> | 313 | <input type="hidden" name="worker_id" id="worker_id" value="{{ $Query[0]->id }}"/> |
308 | <div class="main__resume-profile-review-body"> | 314 | <div class="main__resume-profile-review-body"> |
309 | <h3>Ваш отзыв</h3> | 315 | <h3>Ваш отзыв</h3> |
310 | <textarea class="textarea" name="message" id="message" placeholder="Текст отзыва…" required></textarea> | 316 | <textarea class="textarea" name="message" id="message" placeholder="Текст отзыва…" required></textarea> |
311 | <button type="submit" class="button">Оставить отзыв</button> | 317 | <button type="submit" class="button">Оставить отзыв</button> |
312 | </div> | 318 | </div> |
313 | </form> | 319 | </form> |
314 | </div> | 320 | </div> |
315 | </div> | 321 | </div> |
316 | </div> | 322 | </div> |
317 | </main> | 323 | </main> |
318 | </div> | 324 | </div> |
319 | @endsection | 325 | @endsection |
320 | 326 |