This commit is contained in:
2023-09-10 07:14:02 +07:00
parent 78e3211bdd
commit 115dfbda4d

View File

@@ -118,7 +118,7 @@ class LivechatController extends Controller
$status = $liveChat->sStatus;
$nIDUser = $liveChat->user->nIDUser ?? 0; // Principal or Dependent
$paymentMethod = $liveChat->appointment ? Helper::sPaymentMethod($liveChat->appointment->sPaymentMethod) : 'N/A';
$fullNameDoctor = $liveChat->doctor->user->full_name ? $liveChat->doctor->user->detail->sTitlePrefix . ' ' . $liveChat->doctor->user->full_name . ' ' . $liveChat->doctor->user->detail->sTitleSuffix : '-' ;
$fullNameDoctor = $liveChat->doctor->user != null ? $liveChat->doctor->user->detail->sTitlePrefix . ' ' . $liveChat->doctor->user->full_name . ' ' . $liveChat->doctor->user->detail->sTitleSuffix : '-' ;
$recordType = 'P';
if ($nIDUser){
$recordType = 'D';