Commit bfc7d8856d91b02193ac943a17de1e63b4c57c8e
1 parent
136bdb8d27
Exists in
master
and in
1 other branch
Финальные изменения
Showing 4 changed files with 12 additions and 5 deletions Side-by-side Diff
app/Http/Controllers/WorkerController.php
... | ... | @@ -126,6 +126,12 @@ class WorkerController extends Controller |
126 | 126 | // анкета соискателя |
127 | 127 | public function resume_profile(Worker $worker) |
128 | 128 | { |
129 | + if (isset(Auth()->user()->id)) { | |
130 | + $idiot = Auth()->user()->id; | |
131 | + } else { | |
132 | + $idiot = 0; | |
133 | + } | |
134 | + | |
129 | 135 | $status_work = $this->status_work; |
130 | 136 | $Query = Worker::query()->with('users')->with('job_titles') |
131 | 137 | ->with('place_worker')->with('sertificate')->with('prev_company') |
... | ... | @@ -154,7 +160,7 @@ class WorkerController extends Controller |
154 | 160 | ->where('user_id', '=', $worker->id) |
155 | 161 | ->get(); |
156 | 162 | |
157 | - return view('worker', compact('Query', 'status_work')); | |
163 | + return view('worker', compact('Query', 'status_work', 'idiot')); | |
158 | 164 | } |
159 | 165 | |
160 | 166 | // скачать анкету соискателя |
resources/views/employers/favorite.blade.php
... | ... | @@ -161,7 +161,7 @@ |
161 | 161 | </div> |
162 | 162 | </div> |
163 | 163 | <div class="cvs__item-button"> |
164 | - <a href="" class="button">Написать соискателю</a> | |
164 | + <a href="{{ route('resume_profile', ['worker' => $it->id]) }}" class="button">Написать соискателю</a> | |
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | </div> |
resources/views/worker.blade.php
... | ... | @@ -28,6 +28,7 @@ |
28 | 28 | }); |
29 | 29 | }); |
30 | 30 | </script> |
31 | + @include('js.favorite-worker') | |
31 | 32 | @endsection |
32 | 33 | |
33 | 34 | @section('content') |
... | ... | @@ -217,7 +218,7 @@ |
217 | 218 | <div class="main__resume-profile-about"> |
218 | 219 | <h2 class="main__resume-profile-about-title">О себе</h2> |
219 | 220 | <p class="main__resume-profile-about-text">{{ $Query[0]->text }}</p> |
220 | - <div class="button main__resume-profile-about-button" data-fancybox data-src="#send" data-options='{"touch":false,"autoFocus":false}'>Написать сообщение</div> | |
221 | + <!--<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]->id }}" data-options='{"touch":false,"autoFocus":false}'>Написать сообщение</div>--> | |
221 | 222 | </div> |
222 | 223 | <div class="main__resume-profile-info"> |
223 | 224 | <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2> |
resources/views/workers/favorite.blade.php
... | ... | @@ -113,8 +113,8 @@ |
113 | 113 | @endif |
114 | 114 | </div> |
115 | 115 | <div class="main__employer-page-two-item-buttons"> |
116 | - <button type="button" | |
117 | - class="button main__employer-page-two-item-button">Откликнуться</button> | |
116 | + <!--<button type="button" | |
117 | + class="button main__employer-page-two-item-button">Откликнуться</button>--> | |
118 | 118 | <a href="{{ route('vacancie', ['vacancy' => $Q->id]) }}" class="button button_light main__employer-page-two-item-button">Подробнее</a> |
119 | 119 | </div> |
120 | 120 | <div class="main__employer-page-two-item-bottom"> |