@@ -138,9 +138,9 @@ |
||
138 | 138 | |
139 | 139 | public function searchDoctor(Request $request) |
140 | 140 | { |
141 | - if($request->nama == null AND $request->location != null){ |
|
141 | + if($request->nama == null and $request->location != null){ |
|
142 | 142 | $doctor = Doctor::where('city_id',$request->location)->orderBy('name','asc')->paginate(5); |
143 | - }elseif ($request->location == null AND $request->nama != null){ |
|
143 | + }elseif ($request->location == null and $request->nama != null){ |
|
144 | 144 | $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->orderBy('name','asc')->paginate(5); |
145 | 145 | }else{ |
146 | 146 | $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->where('city_id',$request->location)->orderBy('name','asc')->paginate(5); |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use App\Common; |
6 | 6 | use Illuminate\Http\Request; |
7 | -Use Illuminate\Support\Facades\Storage; |
|
7 | +use Illuminate\Support\Facades\Storage; |
|
8 | 8 | use Illuminate\Support\Facades\Auth; |
9 | 9 | use App\Articles; |
10 | 10 |