diff --git a/app/Http/Controllers/Admin/WorkersController.php b/app/Http/Controllers/Admin/WorkersController.php index c027b7b..85c157c 100644 --- a/app/Http/Controllers/Admin/WorkersController.php +++ b/app/Http/Controllers/Admin/WorkersController.php @@ -64,7 +64,9 @@ class WorkersController extends Controller $users = $users->where(function($query) use($find_key) { $query->Where('name_man', 'LIKE', "%$find_key%") ->orWhere('email', 'LIKE', "%$find_key%") - ->orWhere('telephone', 'LIKE', "%$find_key%"); + ->orWhere('telephone', 'LIKE', "%$find_key%") + ->orWhere('surname', 'LIKE', "%$find_key%") + ->orWhere('surname2', 'LIKE', "%$find_key%"); }); } diff --git a/resources/views/admin/users/profile.blade.php b/resources/views/admin/users/profile.blade.php index 5e975c9..7371c31 100644 --- a/resources/views/admin/users/profile.blade.php +++ b/resources/views/admin/users/profile.blade.php @@ -92,10 +92,10 @@ - Назад + >Назад--> @if ($visible==true) - Соискатель-пользователь: "{{$worker->users->surname}} {{$worker->users->name_man}} {{$worker->users->surname2}} ({{$worker->user_id}})" + Соискатель-пользователь: "{{$worker->users->surname}} {{$worker->users->name_man}} {{$worker->users->surname2}} ({{$worker->user_id}})"