|
@@ -373,7 +373,8 @@ class HomeController extends Controller
|
|
if (empty($term)) return '';
|
|
if (empty($term)) return '';
|
|
$clientQuery= Client::where(function ($q) use ($term) {
|
|
$clientQuery= Client::where(function ($q) use ($term) {
|
|
$q->where('name_first', 'ILIKE', '%' . $term . '%')
|
|
$q->where('name_first', 'ILIKE', '%' . $term . '%')
|
|
- ->orWhere('name_last', 'ILIKE', '%' . $term . '%');
|
|
|
|
|
|
+ ->orWhere('name_last', 'ILIKE', '%' . $term . '%')
|
|
|
|
+ ->orWhere('cell_number', 'ILIKE', '%' . $term . '%');
|
|
});
|
|
});
|
|
|
|
|
|
if($pro->pro_type != 'ADMIN'){
|
|
if($pro->pro_type != 'ADMIN'){
|