|
@@ -342,21 +342,21 @@ class PracticeManagementController extends Controller
|
|
|
if ($requests && count($requests)) {
|
|
|
foreach ($requests as $mcpRequest) {
|
|
|
$client = $mcpRequest->client;
|
|
|
- if ($client->initiative) {
|
|
|
- if (strpos($this->performer->pro->initiative, $client->initiative) !== false) {
|
|
|
- $results[] = [
|
|
|
- "clientUid" => $client->uid,
|
|
|
- "name" => $client->displayName(),
|
|
|
- "initials" => substr($client->name_first, 0, 1) . substr($client->name_last, 0, 1)
|
|
|
- ];
|
|
|
- }
|
|
|
- } else {
|
|
|
- $results[] = [
|
|
|
- "clientUid" => $client->uid,
|
|
|
- "name" => $client->displayName(),
|
|
|
- "initials" => substr($client->name_first, 0, 1) . substr($client->name_last, 0, 1)
|
|
|
- ];
|
|
|
- }
|
|
|
+ // if ($client->initiative) {
|
|
|
+ // if (strpos($this->performer->pro->initiative, $client->initiative) !== false) {
|
|
|
+ // $results[] = [
|
|
|
+ // "clientUid" => $client->uid,
|
|
|
+ // "name" => $client->displayName(),
|
|
|
+ // "initials" => substr($client->name_first, 0, 1) . substr($client->name_last, 0, 1)
|
|
|
+ // ];
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ $results[] = [
|
|
|
+ "clientUid" => $client->uid,
|
|
|
+ "name" => $client->displayName(),
|
|
|
+ "initials" => substr($client->name_first, 0, 1) . substr($client->name_last, 0, 1)
|
|
|
+ ];
|
|
|
+ //}
|
|
|
}
|
|
|
}
|
|
|
return json_encode($results);
|