|
@@ -214,9 +214,9 @@ |
|
|
block discarded – undo |
|
214
|
214
|
|
|
215
|
215
|
public function searchHospital(Request $request) |
|
216
|
216
|
{ |
|
217
|
|
- if($request->nama == null AND $request->location != null){ |
|
|
217
|
+ if($request->nama == null and $request->location != null){ |
|
218
|
218
|
$hospital = Hospital::where('city_id',$request->location)->orderBy('name','asc')->paginate(5); |
|
219
|
|
- }elseif ($request->location == null AND $request->nama != null){ |
|
|
219
|
+ }elseif ($request->location == null and $request->nama != null){ |
|
220
|
220
|
$hospital = Hospital::where('biography','LIKE','%'.$request->nama.'%')->orderBy('name','asc')->paginate(5); |
|
221
|
221
|
}else{ |
|
222
|
222
|
$hospital = Hospital::where('biography','LIKE','%'.$request->nama.'%')->where('city_id',$request->location)->orderBy('name','asc')->paginate(5); |
Please login to merge, or discard this patch.