diff --git a/Modules/HospitalPortal/Http/Controllers/ApotekController.php b/Modules/HospitalPortal/Http/Controllers/ApotekController.php index 6da003f9..8967dcd0 100644 --- a/Modules/HospitalPortal/Http/Controllers/ApotekController.php +++ b/Modules/HospitalPortal/Http/Controllers/ApotekController.php @@ -244,9 +244,9 @@ class ApotekController extends Controller return $item; }); $apotek_phone = DB::connection('mysql')->table('organizations') - ->leftJoin('addresses', 'addresses.id','=', 'organizations.main_address_id') + // ->leftJoin('addresses', 'addresses.id','=', 'organizations.main_address_id') ->whereIn('organizations.id', $apotekIds) - ->pluck('addresses.phone', 'organizations.id'); + ->pluck('organizations.phone', 'organizations.id'); $results->getCollection()->transform(function ($item) use ($apotek_phone) { $item->phone_apotek = $apotek_phone->get($item->nIDApotek, '-'); // Default to 'Unknown' if not found return $item;