From 928cb372893aa38b465f90bc2f7a09b5d4bd4ae6 Mon Sep 17 00:00:00 2001 From: ivan-sim Date: Fri, 27 Feb 2026 16:08:57 +0700 Subject: [PATCH] update hospital --- .../Http/Controllers/Api/MemberController.php | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Modules/Primaya/Http/Controllers/Api/MemberController.php b/Modules/Primaya/Http/Controllers/Api/MemberController.php index aa75487d..19cee3f0 100644 --- a/Modules/Primaya/Http/Controllers/Api/MemberController.php +++ b/Modules/Primaya/Http/Controllers/Api/MemberController.php @@ -104,19 +104,20 @@ class MemberController extends Controller // $res_data['type'] = $request->type; // Provider - // $providers = DB::table('organizations') - // ->where('organizations.type', '=', 'hospital') - // ->where('organizations.corporate_id_partner', '!=', 8) - // ->orWhere('organizations.corporate_id_partner', NULL) - // ->where('status', '=', 'active') - // ->orderBy('organizations.name','asc') - // ->select( - // 'organizations.id', - // 'organizations.name' - // ) - // ->get(); + $providers = DB::table('organizations') + ->where('organizations.type', '=', 'hospital') + ->where('organizations.corporate_id_partner', '!=', 8) + ->orWhere('organizations.corporate_id_partner', NULL) + ->where('status', '=', 'active') + ->where('type', '=', 'hospital') + ->orderBy('organizations.name','asc') + ->select( + 'organizations.id', + 'organizations.name' + ) + ->get(); - // $res_data['providers'] = $providers; + $res_data['providers'] = $providers; //company // $companies = DB::table('corporates')