This commit is contained in:
ivan-sim
2024-07-11 08:50:50 +07:00
parent bfa21b97e4
commit c3e1e4061e

View File

@@ -120,7 +120,7 @@ class LivechatController extends Controller
$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 = '-'; $fullNameDoctor = '-';
if ($liveChat->doctor->user !== null) { if (!empty($liveChat->doctor->user)) {
$fullNameDoctor = ''; $fullNameDoctor = '';
if ($liveChat->doctor->user->detail !== null) { if ($liveChat->doctor->user->detail !== null) {