From 9580525f512264699d4bf52d5b3be5de3311ec5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Thu, 25 Apr 2024 14:16:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=B8=D0=B8=D1=82=20=D0=BF=D0=BE?= =?UTF-8?q?=20=D0=BA=D0=B0=D0=B1=D0=B8=D0=BD=D0=B5=D1=82=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 13 +-- resources/views/employers/add_vacancy.blade.php | 16 ++-- resources/views/employers/edit_vacancy.blade.php | 99 ++++++++-------------- 3 files changed, 52 insertions(+), 76 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index c1f6848..7971813 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -190,7 +190,7 @@ class EmployerController extends Controller //$params_job["sytki"] = $params_emp['sytki']; //$params_job["start"] = $params_emp['start']; //$params_job["flot"] = $params_emp['flot']; - $params_job["description"] = $params_emp['description']; + //$params_job["description"] = $params_emp['description']; $ad_jobs = Ad_employer::create($params_emp); //$params_job['ad_employer_id'] = $ad_jobs->id; @@ -234,11 +234,12 @@ class EmployerController extends Controller $id = Auth()->user()->id; $Positions = Category::query()->where('is_remove', '=', '0')->get(); - if ($Positions->count()) { - $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get(); - } else { - $jobs = Job_title::query()->OrderBy('name')->where('position_id', 0)->get(); - } + //if ($Positions->count()) { + // $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get(); + //} else { + // $jobs = Job_title::query()->OrderBy('name')->where('position_id', 0)->get(); + //} + $jobs = Job_title::query()->OrderBy('name')->where('is_remove', 0)->get(); $Employer = Employer::query()->with('users')->with('ads')->with('flots')-> diff --git a/resources/views/employers/add_vacancy.blade.php b/resources/views/employers/add_vacancy.blade.php index fb70021..988690e 100644 --- a/resources/views/employers/add_vacancy.blade.php +++ b/resources/views/employers/add_vacancy.blade.php @@ -75,7 +75,7 @@ -
+ -
+ --> -
+
diff --git a/resources/views/employers/edit_vacancy.blade.php b/resources/views/employers/edit_vacancy.blade.php index b9dba48..6441d32 100644 --- a/resources/views/employers/edit_vacancy.blade.php +++ b/resources/views/employers/edit_vacancy.blade.php @@ -70,53 +70,11 @@ {{ $message }} -<<<<<<< HEAD - @enderror -
-
- -
- -
-
- - @error('postion_id') - - {{ $message }} - - @enderror -
-
-
- -
- -
-
- - @error('job_title_id') - - {{ $message }} - -======= ->>>>>>> 9f5b1d0112e53e85197df30673ccf1f2f4923df1 @enderror
-
+ -
+ -
+ - -
+
@@ -201,6 +157,25 @@ @enderror
+ +
+

Редактирование должностей

+
+ Добавить + + @if ($ad_employer->jobs->count()) + @foreach ($ad_employer->jobs as $key => $it_um) +

@if (isset($ad_employer->jobs_code[$key])) + {{$it_um->name}} + (Del) + @endif +

+ @endforeach + @else + Нет связанных
с вакансией должностей + @endif +
+
Назад -- 1.7.10.4