Update Status Livechat
This commit is contained in:
@@ -198,22 +198,27 @@ class LivechatController extends Controller
|
||||
}
|
||||
switch ($status) {
|
||||
case 0:
|
||||
$statusLivechat = "Request TC";
|
||||
$statusLivechat = "Canceled by Doctor";
|
||||
break;
|
||||
case 1:
|
||||
$statusLivechat = "Accepted by Doctor but User not Payment";
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
break;
|
||||
case 2:
|
||||
$statusLivechat = "Payment Success";
|
||||
$statusLivechat = "Resolved";
|
||||
break;
|
||||
case 3:
|
||||
$statusLivechat = "Decline by Doctor";
|
||||
$statusLivechat = "Canceled by Doctor";
|
||||
break;
|
||||
case 4:
|
||||
$statusLivechat = "Payment Expired";
|
||||
$statusLivechat = "Resolved";
|
||||
case 5:
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
break;
|
||||
case 6:
|
||||
$statusLivechat = "Canceled by system";
|
||||
break;
|
||||
default:
|
||||
$statusLivechat = "Cancel by Patient";
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
}
|
||||
|
||||
$requestTime = Carbon::parse($liveChat->dRequestTime);
|
||||
@@ -527,22 +532,27 @@ class LivechatController extends Controller
|
||||
}
|
||||
switch ($status) {
|
||||
case 0:
|
||||
$statusLivechat = "Request TC";
|
||||
$statusLivechat = "Canceled by Doctor";
|
||||
break;
|
||||
case 1:
|
||||
$statusLivechat = "Accepted by Doctor but User not Payment";
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
break;
|
||||
case 2:
|
||||
$statusLivechat = "Payment Success";
|
||||
$statusLivechat = "Resolved";
|
||||
break;
|
||||
case 3:
|
||||
$statusLivechat = "Decline by Doctor";
|
||||
$statusLivechat = "Canceled by Doctor";
|
||||
break;
|
||||
case 4:
|
||||
$statusLivechat = "Payment Expired";
|
||||
$statusLivechat = "Resolved";
|
||||
case 5:
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
break;
|
||||
case 6:
|
||||
$statusLivechat = "Canceled by system";
|
||||
break;
|
||||
default:
|
||||
$statusLivechat = "Cancel by Patient";
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
}
|
||||
|
||||
$requestTime = Carbon::parse($liveChat->dRequestTime);
|
||||
@@ -753,22 +763,27 @@ class LivechatController extends Controller
|
||||
|
||||
switch ($status) {
|
||||
case 0:
|
||||
$statusLivechat = "Request TC";
|
||||
$statusLivechat = "Canceled by Doctor";
|
||||
break;
|
||||
case 1:
|
||||
$statusLivechat = "Accepted by Doctor but User not Payment";
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
break;
|
||||
case 2:
|
||||
$statusLivechat = "Payment Success";
|
||||
$statusLivechat = "Resolved";
|
||||
break;
|
||||
case 3:
|
||||
$statusLivechat = "Decline by Doctor";
|
||||
$statusLivechat = "Canceled by Doctor";
|
||||
break;
|
||||
case 4:
|
||||
$statusLivechat = "Payment Expired";
|
||||
$statusLivechat = "Resolved";
|
||||
case 5:
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
break;
|
||||
case 6:
|
||||
$statusLivechat = "Canceled by system";
|
||||
break;
|
||||
default:
|
||||
$statusLivechat = "Cancel by Patient";
|
||||
$statusLivechat = "Ended chat by patient";
|
||||
}
|
||||
|
||||
$requestTime = Carbon::parse($liveChat->dRequestTime);
|
||||
|
||||
@@ -19,13 +19,23 @@ class Livechat extends Model
|
||||
// 4 => 'Expired',
|
||||
// ];
|
||||
|
||||
// public $sStatusNames = [
|
||||
// 0 => 'Request TC',
|
||||
// 1 => 'Accepted by Doctor but User not Payment',
|
||||
// 3 => 'Decline by Doctor',
|
||||
// 2 => 'Payment Success',
|
||||
// 4 => 'Payment Expired',
|
||||
// 5 => 'Cancel by Patient'
|
||||
// ];
|
||||
|
||||
public $sStatusNames = [
|
||||
0 => 'Request TC',
|
||||
1 => 'Accepted by Doctor but User not Payment',
|
||||
3 => 'Decline by Doctor',
|
||||
2 => 'Payment Success',
|
||||
4 => 'Payment Expired',
|
||||
5 => 'Cancel by Patient'
|
||||
0 => 'Canceled by Doctor',
|
||||
1 => 'Ended chat by patient',
|
||||
2 => 'Resolved',
|
||||
3 => 'Canceled by Doctor',
|
||||
4 => 'Resolved',
|
||||
5 => 'Ended chat by patient',
|
||||
6 => 'Canceled by system'
|
||||
];
|
||||
|
||||
const CREATED_AT = 'dCreateOn';
|
||||
|
||||
@@ -20,12 +20,13 @@ class LivechatSummary extends Model
|
||||
// ];
|
||||
|
||||
public $sStatusNames = [
|
||||
0 => 'Request TC',
|
||||
1 => 'Accepted by Doctor but User not Payment',
|
||||
3 => 'Decline by Doctor',
|
||||
2 => 'Payment Success',
|
||||
4 => 'Payment Expired',
|
||||
5 => 'Cancel by Patient'
|
||||
0 => 'Canceled by Doctor',
|
||||
1 => 'Ended chat by patient',
|
||||
2 => 'Resolved',
|
||||
3 => 'Canceled by Doctor',
|
||||
4 => 'Resolved',
|
||||
5 => 'Ended chat by patient',
|
||||
6 => 'Canceled by system'
|
||||
];
|
||||
|
||||
const CREATED_AT = 'dCreateOn';
|
||||
|
||||
Reference in New Issue
Block a user