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