diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index 3e10710..231d1a0 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -475,7 +475,7 @@ class WorkerController extends Controller public function cabinet_save_foto(Worker $worker, Request $request){ $params = ['photo' => null]; - + if ($request->has('photo')) { if (!empty($worker->photo)) { Storage::delete($worker->photo); @@ -952,6 +952,23 @@ class WorkerController extends Controller return redirect()->route('worker.cabinet')->with('success', 'Вы успешно отредактировали запись!'); } + public function edit_diploms(Request $request, Worker $worker) { + $dop_info_data = $request->input('diploms'); + + if (empty($dop_info_data)) { + return redirect()->route('worker.additional_documents')->with('error', 'Данные не предоставлены!'); + } + + foreach ($dop_info_data as $infoblok_id => $status) { + Dop_info::updateOrCreate( + ['worker_id' => $worker->id, 'infoblok_id' => $infoblok_id], + ['status' => $status] + ); + } + + return redirect()->route('worker.additional_documents')->with('success', 'Успешно сохранено!'); + } + public function delete_add_diplom(Request $request, Worker $worker) { $infoblok_id = $request->get('infoblok_id'); diff --git a/public/css/style_may2024.css b/public/css/style_may2024.css index 75a8cd6..826d35d 100644 --- a/public/css/style_may2024.css +++ b/public/css/style_may2024.css @@ -4365,6 +4365,20 @@ h1 { .main__resume-profile-about-buttons .like{ width: 200px; } +.main__resume-profile-about-buttons .like.active{ + background: #fff; + color: #eb5757; +} +.main__resume-profile-about-buttons .like .in-favorites{ + display: none; +} +.main__resume-profile-about-buttons .like.active .in-favorites{ + display: block; + color: #eb5757; +} +.main__resume-profile-about-buttons .like.active .to-favorites{ + display: none; +} .main__resume-profile-about-text { position: relative; z-index: 2; @@ -7362,15 +7376,33 @@ main + .news { display: flex; } .cvs__item-like { - position: absolute; - top: 10px; - right: 10px; + width: unset; + padding: 5px 10px; + margin-right: 10px; } -@media (min-width: 768px) { - .cvs__item-like { - top: 20px; - right: 20px; - } +.cvs__item .cvs__item-buttons .chat{ + width: unset; + padding: 5px 10px; + margin-right: 10px; +} +.cvs__item-like.active{ + background: #ffffff; + color: #eb5757; +} +.cvs__item-like .in-favorites{ + display: none; +} +.cvs__item-like.active .in-favorites{ + display: block; + color: #eb5757; +} +.cvs__item-like.active .to-favorites{ + display: none; +} +.cvs__item .cvs__item-header{ + display: flex; + width: 100%; + justify-content: space-between; } .cvs__item-photo { position: relative; @@ -7419,71 +7451,47 @@ main + .news { -ms-flex-direction: column; flex-direction: column; gap: 10px; + width: 100%; + margin-top: 30px; } -@media (min-width: 768px) { - .cvs__item-text { - gap: 20px; - width: calc(100% - 68px); - padding-left: 20px; - padding-right: 60px; - } +.cvs__item .cvs__item-buttons{ + display: flex; + align-items: start; } -.cvs__item-text div { +.cvs.active .cvs__item { display: -webkit-box; display: -ms-flexbox; display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; } -@media (min-width: 768px) { - .cvs__item-text div { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; - } +.cvs__item-text .cvs__item-text-row{ + display: flex; + justify-content: space-between; + width: 100%; } -.cvs__item-text span, -.cvs__item-text a { - color: #000; +.cvs__item-text .cvs__item-text-row > div{ + width: 50%; } -.cvs__item-button { - 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: center; - -ms-flex-align: center; - align-items: center; +.cvs__item-text .cvs__item-text-row b{ + color: #377d87; + font-size: 18px; } -@media (min-width: 768px) { - .cvs__item-button { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; - width: 100%; - padding-top: 20px; - } +.cvs__item-text .cvs__item-text-status { + width: fit-content; + background-color: #e6e6e6; + font-weight: bold; + padding: 5px 10px; + border-radius: 8px; + margin-right: 30px; } -.cvs.active .cvs__item { - display: -webkit-box; - display: -ms-flexbox; - display: flex; +.cvs__item-text .cvs__item-text-status.looking-for-job { + background-color: #eb5757; + color: #fff; +} +.cvs__item-text .cvs__item-text-updated-at{ + padding: 5px 10px; + border-radius: 8px; + border: 1px #e6e6e6 solid; } - .faqs { display: -webkit-box; display: -ms-flexbox; diff --git a/resources/views/employers/favorite.blade.php b/resources/views/employers/favorite.blade.php index bca3e6d..c51ca92 100644 --- a/resources/views/employers/favorite.blade.php +++ b/resources/views/employers/favorite.blade.php @@ -83,90 +83,162 @@ -