diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index 8305a02..f08ed22 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -988,8 +988,8 @@ class WorkerController extends Controller //Сохранение стандартого документа public function add_document_save(DocumentsRequest $request) { $params = $request->all(); - $place_work = place_works::create($params); - return redirect()->route('worker.cabinet')->with('success', 'Вы успешно добавили запись!'); + place_works::create($params); + return response()->json(['success' => true]); } // Редактирование документа @@ -1088,9 +1088,9 @@ class WorkerController extends Controller public function add_prev_company(PrevCompanyRequest $request) { // Возвращение параметров $all = $request->all(); - $PrevCompany = PrevCompany::create($all); + PrevCompany::create($all); - return redirect()->route('worker.cabinet')->with('success', 'Вы успешно отредактировали запись'); + return response()->json(['success' => true]); } // Редактирование контакта компании diff --git a/public/css/style_may2024.css b/public/css/style_may2024.css index 16a90dd..cef1225 100644 --- a/public/css/style_may2024.css +++ b/public/css/style_may2024.css @@ -9325,3 +9325,7 @@ body .cke_notifications_area{ padding: 0; width: 100%; } + +.review-image-modal{ + cursor: pointer; +} diff --git a/public/js/func.js b/public/js/func.js index 8ac238f..7d9a0b3 100644 --- a/public/js/func.js +++ b/public/js/func.js @@ -1,3 +1,18 @@ +$(function(){ + $('.review-image-modal').click(function(){ + cl($(this)); + $(this).fancybox({ + 'autoScale': true, + 'transitionIn': 'elastic', + 'transitionOut': 'elastic', + 'speedIn': 500, + 'speedOut': 300, + 'autoDimensions': true, + 'centerOnScroll': true + }) + }); +}); + var spinStart = function(button) { button.prop('disabled', true); @@ -10,3 +25,9 @@ var spinStop= function(button) { button.prop('disabled', false); button.find('.button-loader').remove(); }; + +var cl = function(obj){ + console.log(obj); +} + + diff --git a/resources/views/info_company_new.blade.php b/resources/views/info_company_new.blade.php index 18f3524..af3faf7 100644 --- a/resources/views/info_company_new.blade.php +++ b/resources/views/info_company_new.blade.php @@ -101,7 +101,7 @@ @endif @if (!empty($company[0]->logo)) - + @else @endif diff --git a/resources/views/workers/docs.blade.php b/resources/views/workers/docs.blade.php index b3a847e..7f55b32 100644 --- a/resources/views/workers/docs.blade.php +++ b/resources/views/workers/docs.blade.php @@ -1,120 +1,153 @@ -@extends('layout.frontend', ['title' => 'Добавление стандартного документа - РекаМоре']) +@extends('workers.cabinet_layout', ['title' => 'Добавление стандартного документа - РекаМоре']) -@section('scripts') +@section('cabinet_content') +