diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 2e7687a..af7ca84 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -461,7 +461,7 @@ class EmployerController extends Controller $Workers = Worker::query()->whereIn('id', $A); } else { - $Workers = Worker::query(); + $Workers = Worker::query()->where('id', '=', '0'); } if (($request->has('search')) && (!empty($request->get('search')))) { diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index d265918..3f41a8a 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -526,7 +526,7 @@ class WorkerController extends Controller $Query = Ad_employer::query()->whereIn('id', $A); } else { - $Query = Ad_employer::query(); + $Query = Ad_employer::query()->where('id', '=', '0'); } $Query = $Query->with('jobs')->