public function find_nhif_coverage($message)
 {
     $location = $this->get_location($message);
     if ($location == null) {
         $this->success = 0;
         return $this->error_message(2);
     } else {
         //Get NHIF coverage
         $result = NHIFController::coverage("0", "", $location, true);
         return $this->process_result($result, 1);
     }
 }
Beispiel #2
0
Route::get('singleDoctor', function () {
    $term = Request::input('q');
    $result = '';
    if (isset($term)) {
        $result = str_replace("\n", "<br />", (new DoctorsController())->singleDoctor($term));
    }
    return $result;
});
Route::get('/filter_feed', function () {
    $tag = Request::input('tag');
    return (new WelcomeController())->filter_feed($tag);
});
Route::get('/reverse_geocode', function () {
    $q = Request::input('q');
    return (new HospitalsController())->reverse_geocode($q);
});
Route::get('nhifcoverage', function () {
    $type = Request::input('type');
    $gps = Request::input('gps');
    $address = Request::input('address');
    return str_replace("\n", "<br />", NHIFController::coverage($type, $gps, $address, false));
});
Route::get('specialty', function () {
    $specialty = Request::input('specialty');
    $gps = Request::input('gps');
    $address = Request::input('address');
    return str_replace("\n", "<br />", HospitalsController::specialty($specialty, $gps, $address, false));
});
Route::get('profile', ['middleware' => 'auth', 'uses' => 'UserController@showProfile']);
Route::get('home', 'HomeController@index');
Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']);