Update Status Livechat

This commit is contained in:
ivan-sim
2025-09-25 14:16:07 +07:00
parent 04752ffcd7
commit d547b6d374
3 changed files with 137 additions and 111 deletions

View File

@@ -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';