diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index 3f41a8a..a959665 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -126,6 +126,12 @@ class WorkerController extends Controller // анкета соискателя public function resume_profile(Worker $worker) { + if (isset(Auth()->user()->id)) { + $idiot = Auth()->user()->id; + } else { + $idiot = 0; + } + $status_work = $this->status_work; $Query = Worker::query()->with('users')->with('job_titles') ->with('place_worker')->with('sertificate')->with('prev_company') @@ -154,7 +160,7 @@ class WorkerController extends Controller ->where('user_id', '=', $worker->id) ->get(); - return view('worker', compact('Query', 'status_work')); + return view('worker', compact('Query', 'status_work', 'idiot')); } // скачать анкету соискателя diff --git a/resources/views/employers/favorite.blade.php b/resources/views/employers/favorite.blade.php index c65e190..8487ce2 100644 --- a/resources/views/employers/favorite.blade.php +++ b/resources/views/employers/favorite.blade.php @@ -161,7 +161,7 @@
- Написать соискателю + Написать соискателю
diff --git a/resources/views/worker.blade.php b/resources/views/worker.blade.php index d300d57..c56edad 100644 --- a/resources/views/worker.blade.php +++ b/resources/views/worker.blade.php @@ -28,6 +28,7 @@ }); }); + @include('js.favorite-worker') @endsection @section('content') @@ -217,7 +218,7 @@

О себе

{{ $Query[0]->text }}

-
Написать сообщение
+

Данные о прошлых компаниях

diff --git a/resources/views/workers/favorite.blade.php b/resources/views/workers/favorite.blade.php index 3bebaa9..5a903a0 100644 --- a/resources/views/workers/favorite.blade.php +++ b/resources/views/workers/favorite.blade.php @@ -113,8 +113,8 @@ @endif
- + Подробнее