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 @@ -
@if (isset($ad_employer->jobs_code[$key])) + {{$it_um->name}} + (Del) + @endif +
+ @endforeach + @else + Нет связанных