diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 40d2f51..4a650a9 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -258,20 +258,19 @@ class EmployerController extends Controller $params = $request->all(); $params_job["job_title_id"] = $params['job_title_id']; - //$jobs['flot'] = $params['flot']; - //$jobs['job_title_id'] = $params['job_title_id']; - //$titles['position_id'] = $params['position_id']; - //unset($params['job_title_id']); - //dd($params); $ad_employer->update($params); $ad_employer->jobs()->sync($request->get('job_title_id')); - //$job_ = Ad_jobs::query()->where('job_title_id', $jobs['job_title_id'])-> - // where('ad_employer_id', $ad_employer->id)->first(); - //$data = Ad_jobs::find($job_->id); - //$ad_jobs = $data->update($jobs); + $id = Auth()->user()->id; + $Positions = Category::query()->where('is_remove', '=', '0')->get(); + $jobs = Job_title::query()->orderByDesc('sort')->OrderBy('name') + ->where('is_remove', '=', '0') + ->where('is_bd', '=', '0') + ->get(); - return redirect()->route('employer.vacancy_list'); + $Employer = Employer::query() + ->with('users')->with('ads')->with('flots')->where('user_id', $id)->first(); + return view('employers.edit_vacancy', compact('ad_employer', 'Positions','Employer', 'jobs')); } // Сохранение карточки вакансии diff --git a/public/css/style_may2024.css b/public/css/style_may2024.css index 7e13831..265f2de 100644 --- a/public/css/style_may2024.css +++ b/public/css/style_may2024.css @@ -4028,26 +4028,36 @@ h1 { } } .main__resume-base-body-item-buttons { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; - gap: 10px; - position: absolute; - top: 10px; - right: 10px; + margin-top: 10px; } -@media (min-width: 768px) { - .main__resume-base-body-item-buttons { - top: 20px; - right: 20px; - } +.main__resume-base-body-item-buttons button, a.main__resume-base-body-item-link{ + width: 100%; + margin-bottom: 10px; +} +.main__resume-base-body-item-buttons a.main__resume-base-body-item-link{ + background: #377d87; + color: #fff; +} +.main__resume-base-body-item-buttons .chat.active{ + background: #fff; + color: #377d87; +} +.main__resume-base-body-item-buttons button.like.active{ + background-color: #ffffff; + color: #eb5757; +} +.main__resume-base-body-item-buttons button span{ + margin-left: 10px; +} +.main__resume-base-body-item-buttons .like .in-favorites{ + display: none; +} +.main__resume-base-body-item-buttons .like.active .in-favorites{ + display: block; + color: #eb5757; +} +.main__resume-base-body-item-buttons .like.active .to-favorites{ + display: none; } .main__resume-base-body-item-wrapper { display: -webkit-box; @@ -4093,6 +4103,29 @@ h1 { flex-direction: column; gap: 10px; width: 100%; + row-gap: 10px; +} +.main__resume-base-body-item-inner .horizontal{ + -webkit-box-orient: horizontal; + -ms-flex-direction: unset; + flex-direction: row; + align-items: start; +} +.main__resume-base-item-status{ + width: fit-content; + background-color: #e6e6e6; + font-weight: bold; + padding: 5px 10px; + border-radius: 8px; +} +.main__resume-base-item-status.looking-for-job{ + background-color: #eb5757; + color: #fff; +} +.main__resume-base-item-updated-at{ + padding: 5px 10px; + border-radius: 8px; + border: 1px #e6e6e6 solid; } @media (min-width: 768px) { .main__resume-base-body-item-inner { @@ -4105,6 +4138,7 @@ h1 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; + row-gap: 10px; } } .main__resume-base-body-item-inner div { diff --git a/resources/views/ajax/list_vacancies.blade.php b/resources/views/ajax/list_vacancies.blade.php index 5e306a3..61ab295 100644 --- a/resources/views/ajax/list_vacancies.blade.php +++ b/resources/views/ajax/list_vacancies.blade.php @@ -109,7 +109,7 @@ Подробнее