update fix
This commit is contained in:
@@ -118,7 +118,25 @@ class LivechatController extends Controller
|
|||||||
$status = $liveChat->sStatus;
|
$status = $liveChat->sStatus;
|
||||||
$nIDUser = $liveChat->user->nIDUser ?? 0; // Principal or Dependent
|
$nIDUser = $liveChat->user->nIDUser ?? 0; // Principal or Dependent
|
||||||
$paymentMethod = $liveChat->appointment ? Helper::sPaymentMethod($liveChat->appointment->sPaymentMethod) : 'N/A';
|
$paymentMethod = $liveChat->appointment ? Helper::sPaymentMethod($liveChat->appointment->sPaymentMethod) : 'N/A';
|
||||||
$fullNameDoctor = $liveChat->doctor->user != null ? $liveChat->doctor->user->detail->sTitlePrefix . ' ' . $liveChat->doctor->user->full_name . ' ' . $liveChat->doctor->user->detail->sTitleSuffix : '-' ;
|
$fullNameDoctor = '-';
|
||||||
|
if ($liveChat->doctor->user !== null) {
|
||||||
|
$fullNameDoctor = '';
|
||||||
|
|
||||||
|
if ($liveChat->doctor->user->detail !== null) {
|
||||||
|
if ($liveChat->doctor->user->detail->sTitlePrefix !== null) {
|
||||||
|
$fullNameDoctor .= $liveChat->doctor->user->detail->sTitlePrefix . ' ';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($liveChat->doctor->user->full_name !== null) {
|
||||||
|
$fullNameDoctor .= $liveChat->doctor->user->full_name . ' ';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($liveChat->doctor->user->detail->sTitleSuffix !== null) {
|
||||||
|
$fullNameDoctor .= $liveChat->doctor->user->detail->sTitleSuffix;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$recordType = 'P';
|
$recordType = 'P';
|
||||||
if ($nIDUser){
|
if ($nIDUser){
|
||||||
$recordType = 'D';
|
$recordType = 'D';
|
||||||
|
|||||||
Reference in New Issue
Block a user