@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | 6 | use Carbon\Carbon; |
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 | use App\Admin; |
@@ -135,9 +135,9 @@ |
||
135 | 135 | |
136 | 136 | public function searchDoctor(Request $request) |
137 | 137 | { |
138 | - if ($request->nama == null AND $request->location != null){ |
|
138 | + if ($request->nama == null and $request->location != null){ |
|
139 | 139 | $doctor = Doctor::where('city_id',$request->location)->orderBy('name','asc')->paginate(5); |
140 | - }elseif ($request->location == null AND $request->nama != null){ |
|
140 | + }elseif ($request->location == null and $request->nama != null){ |
|
141 | 141 | $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->orderBy('name','asc')->paginate(5); |
142 | 142 | }else{ |
143 | 143 | $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->where('city_id',$request->location)->orderBy('name','asc')->paginate(5); |