Update
This commit is contained in:
@@ -77,7 +77,7 @@ class LivechatController extends Controller
|
|||||||
})
|
})
|
||||||
->orderBy('nID', 'desc')
|
->orderBy('nID', 'desc')
|
||||||
->get(['nID', 'nIDUser', 'nIDDokter', 'nIDHealthCare', 'nIDAppointment', 'sStatus', 'sMediaDokter', 'sMedia', 'dCreateOn']);
|
->get(['nID', 'nIDUser', 'nIDDokter', 'nIDHealthCare', 'nIDAppointment', 'sStatus', 'sMediaDokter', 'sMedia', 'dCreateOn']);
|
||||||
|
|
||||||
$headers = [
|
$headers = [
|
||||||
['value' => 'No', 'cell' => 'A1', 'mergeCell' => true, 'mergeToCell' => 'A2'],
|
['value' => 'No', 'cell' => 'A1', 'mergeCell' => true, 'mergeToCell' => 'A2'],
|
||||||
['value' => 'Kode TC', 'cell' => 'B1', 'mergeCell' => true, 'mergeToCell' => 'B2'],
|
['value' => 'Kode TC', 'cell' => 'B1', 'mergeCell' => true, 'mergeToCell' => 'B2'],
|
||||||
@@ -120,18 +120,18 @@ 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) {
|
||||||
if ($liveChat->doctor->user->detail->sTitlePrefix !== null) {
|
if ($liveChat->doctor->user->detail->sTitlePrefix !== null) {
|
||||||
$fullNameDoctor .= $liveChat->doctor->user->detail->sTitlePrefix . '. ';
|
$fullNameDoctor .= $liveChat->doctor->user->detail->sTitlePrefix . '. ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($liveChat->doctor->user->full_name !== null) {
|
if ($liveChat->doctor->user->full_name !== null) {
|
||||||
$fullNameDoctor .= $liveChat->doctor->user->full_name . ' ';
|
$fullNameDoctor .= $liveChat->doctor->user->full_name . ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($liveChat->doctor->user->detail->sTitleSuffix !== null) {
|
if ($liveChat->doctor->user->detail->sTitleSuffix !== null) {
|
||||||
$fullNameDoctor .= $liveChat->doctor->user->detail->sTitleSuffix;
|
$fullNameDoctor .= $liveChat->doctor->user->detail->sTitleSuffix;
|
||||||
}
|
}
|
||||||
@@ -141,7 +141,7 @@ class LivechatController extends Controller
|
|||||||
$recordType = 'P';
|
$recordType = 'P';
|
||||||
if ($nIDUser){
|
if ($nIDUser){
|
||||||
$recordType = 'D';
|
$recordType = 'D';
|
||||||
}
|
}
|
||||||
switch ($status) {
|
switch ($status) {
|
||||||
case 0:
|
case 0:
|
||||||
$statusLivechat = "Request TC";
|
$statusLivechat = "Request TC";
|
||||||
|
|||||||
Reference in New Issue
Block a user