prepare( "SELECT id, name, phone, role, is_active, created_at FROM transit_org_admins WHERE org_id=? ORDER BY created_at ASC" ); $st->execute([$orgId]); $admins = $st->fetchAll(); foreach ($admins as &$a) { if (!empty($a['phone'])) { $a['phone'] = $encryptionHelper->decryptData($a['phone']) ?: null; } } unset($a); jsonSuccess(['admins' => $admins]);