@@ -24,7 +24,6 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @param \Illuminate\Http\Request $request Incoming Request. |
| 26 | 26 | * @param \App\Models\JobPoster $jobPoster Incoming JobPoster object. |
| 27 | - |
|
| 28 | 27 | * @return \Illuminate\Http\Response |
| 29 | 28 | */ |
| 30 | 29 | public function show(Request $request, JobPoster $jobPoster) |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | 'label' => 'Job Poster Title', |
| 41 | 41 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 42 | 42 | $query->orWhereHas('job_poster', function ($q) use ($searchTerm) { |
| 43 | - $q->where('title', 'ilike', '%'.$searchTerm.'%'); |
|
| 43 | + $q->where('title', 'ilike', '%' . $searchTerm . '%'); |
|
| 44 | 44 | }); |
| 45 | 45 | } |
| 46 | 46 | ]); |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | 'label' => 'Applicant Name', |
| 52 | 52 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 53 | 53 | $query->orWhereHas('applicant.user', function ($q) use ($searchTerm) { |
| 54 | - $q->where('first_name', 'ilike', '%'.$searchTerm.'%') |
|
| 55 | - ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
| 54 | + $q->where('first_name', 'ilike', '%' . $searchTerm . '%') |
|
| 55 | + ->orWhere('last_name', 'ilike', '%' . $searchTerm . '%'); |
|
| 56 | 56 | }); |
| 57 | 57 | } |
| 58 | 58 | ]); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | 'label' => 'Applicant Email', |
| 64 | 64 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 65 | 65 | $query->orWhereHas('applicant.user', function ($q) use ($searchTerm) { |
| 66 | - $q->where('email', 'ilike', '%'.$searchTerm.'%'); |
|
| 66 | + $q->where('email', 'ilike', '%' . $searchTerm . '%'); |
|
| 67 | 67 | }); |
| 68 | 68 | } |
| 69 | 69 | ]); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 41 | 41 | $query->orWhereHas('user', function ($q) use ($searchTerm) { |
| 42 | 42 | $q->where('first_name', 'ilike', '%'.$searchTerm.'%') |
| 43 | - ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
| 43 | + ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
| 44 | 44 | }); |
| 45 | 45 | } |
| 46 | 46 | ]); |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | 'label' => 'Full Name', |
| 40 | 40 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 41 | 41 | $query->orWhereHas('user', function ($q) use ($searchTerm) { |
| 42 | - $q->where('first_name', 'ilike', '%'.$searchTerm.'%') |
|
| 43 | - ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
| 42 | + $q->where('first_name', 'ilike', '%' . $searchTerm . '%') |
|
| 43 | + ->orWhere('last_name', 'ilike', '%' . $searchTerm . '%'); |
|
| 44 | 44 | }); |
| 45 | 45 | } |
| 46 | 46 | ]); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | 'label' => 'Email', |
| 52 | 52 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 53 | 53 | $query->orWhereHas('user', function ($q) use ($searchTerm) { |
| 54 | - $q->where('email', 'ilike', '%'.$searchTerm.'%'); |
|
| 54 | + $q->where('email', 'ilike', '%' . $searchTerm . '%'); |
|
| 55 | 55 | }); |
| 56 | 56 | } |
| 57 | 57 | ]); |