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 +
+
Назад