@@ -96,14 +96,14 @@ |
||
96 | 96 | ->when(isset($searchData->name), function($q) use ($searchData) |
97 | 97 | { |
98 | 98 | $q->where('name', 'like', '%'.$searchData->name.'%') |
99 | - ->orWhere('cust_id', 'like', '%'.$searchData->name.'%') |
|
100 | - ->orWhere('dba_name', 'like', '%'.$searchData->name.'%'); |
|
99 | + ->orWhere('cust_id', 'like', '%'.$searchData->name.'%') |
|
100 | + ->orWhere('dba_name', 'like', '%'.$searchData->name.'%'); |
|
101 | 101 | }) |
102 | 102 | // Search by equipment type |
103 | 103 | ->when($includeSystems, function($q) |
104 | 104 | { |
105 | 105 | $q->with('CustomerSystems.SystemTypes') |
106 | - ->with('ParentSystems.SystemTypes'); |
|
106 | + ->with('ParentSystems.SystemTypes'); |
|
107 | 107 | }) |
108 | 108 | ->paginate($pagination->perPage); |
109 | 109 | } |