@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $searchResults = new CustomerCollection( |
| 112 | 112 | Customers::where('cust_id', 'like', '%'.$request->search.'%') |
| 113 | 113 | ->orWhere('name', 'like', '%'.$request->search.'%') |
| 114 | - ->orWhere('dba_name', 'like', '%' . $request->search . '%') |
|
| 114 | + ->orWhere('dba_name', 'like', '%'.$request->search.'%') |
|
| 115 | 115 | ->get() |
| 116 | 116 | ); |
| 117 | 117 | } |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | // Toggle whether or not the customer is listed as a user favorite |
| 144 | 144 | public function toggleFav($action, $id) |
| 145 | 145 | { |
| 146 | - switch ($action) |
|
| 146 | + switch($action) |
|
| 147 | 147 | { |
| 148 | 148 | case 'add': |
| 149 | 149 | CustomerFavs::create([ |