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 @@ Подробнее
-
{{ date('d.m.Y H:i:s', strtotime($Q->created_at)) }}
+
{{ date('d.m.Y', strtotime($Q->updated_at)) }}
-
{{ date('d.m.Y H:i:s', strtotime($Q->created_at)) }}
+
{{ date('d.m.Y', strtotime($Q->updated_at)) }}
- @guest - - @else - @if (App\Classes\StatusUser::Status()==0) - @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) - - @endif - @else - - @endif - @endif -
+
- +
+ +
+
+ + + @guest + + @else + @if (App\Classes\StatusUser::Status()==0) + @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message)) + + @endif + @else + + @endif + @endif + + Подробнее +
+
+
+
+
+ {{ $status_work[$res->status_work] }} +
+
+ Обновлено: {{ date('d.m.Y', strtotime($res->updated_at)) }} +
+
- Статус - {{ $status_work[$res->status_work] }} + Предпочтение по типу судна: +
- Имя работника + ФИО: @if (isset($res->users)){{ $res->users->surname." ".$res->users->name_man." ".$res->users->surname2 }} @endif
- Номер телефона - {{ $res->telephone }} + Наличие визы:
- Электронный адрес - {{ $res->email }} + Возраст: + @if (isset($res->old_year)) {{ $res->old_year }} @else - @endif +
+
+ Наличие танкерных документов: +
+
+ Желаемые вакансии: + + @if ($res->job_titles->count()) + @foreach ($res->job_titles as $job_title) + {{ $job_title->name }} + @if (!$loop->last) / @endif + @endforeach + @endif + +
+
+ Наличие подтверждения для работы на ВВП: +
+
+ Пожелание к З/П:
Город проживания {{ $res->city }}
- Опыт работы + Уровень английского: +
+
+ Номер телефона + {{ $res->telephone }} +
+
+ Дата готовности к посадке: +
+
+ E-mail: + {{ $res->email }} +
+
+ Опыт работы: {{ $res->experience }}
-
- @if ($res->job_titles->count()) - @if (isset($res->job_titles)) - @foreach ($res->job_titles as $key => $j) - #{{ $j->name }} - @endforeach - @endif - @endif -
- Перейти в резюме
@endforeach diff --git a/resources/views/vacance-item.blade.php b/resources/views/vacance-item.blade.php index 2842887..b1eecb7 100644 --- a/resources/views/vacance-item.blade.php +++ b/resources/views/vacance-item.blade.php @@ -174,7 +174,7 @@ @endguest
-
{{ date('d.m.Y H:i:s', strtotime($Q->created_at)) }}
+
{{ date('d.m.Y', strtotime($Q->updated_at)) }}