|
@@ -32,6 +32,7 @@ class User extends Model
|
|
|
'oldstatus_text',
|
|
|
'notice_email_text',
|
|
|
'notice_whatsapp_text',
|
|
|
+ 'notice_phonecall_text',
|
|
|
'is_first_text'
|
|
|
];
|
|
|
|
|
@@ -42,8 +43,7 @@ class User extends Model
|
|
|
return ['0' => __('Status 0'), '1' => __('Status 1')];
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- public function getOldStatusList()
|
|
|
+ public function getOldstatusList()
|
|
|
{
|
|
|
return ['0' => __('Oldstatus 0'), '1' => __('Oldstatus 1')];
|
|
|
}
|
|
@@ -58,6 +58,11 @@ class User extends Model
|
|
|
return ['1' => __('Notice_whatsapp 1'), '0' => __('Notice_whatsapp 0')];
|
|
|
}
|
|
|
|
|
|
+ public function getNoticePhonecallList()
|
|
|
+ {
|
|
|
+ return ['1' => __('Notice_phonecall 1'), '0' => __('Notice_phonecall 0')];
|
|
|
+ }
|
|
|
+
|
|
|
public function getIsFirstList()
|
|
|
{
|
|
|
return ['0' => __('Is_first 0'), '1' => __('Is_first 1')];
|
|
@@ -93,10 +98,10 @@ class User extends Model
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function getOldStatusTextAttr($value, $data)
|
|
|
+ public function getOldstatusTextAttr($value, $data)
|
|
|
{
|
|
|
$value = $value ? $value : (isset($data['oldstatus']) ? $data['oldstatus'] : '');
|
|
|
- $list = $this->getOldStatusList();
|
|
|
+ $list = $this->getOldstatusList();
|
|
|
return isset($list[$value]) ? $list[$value] : '';
|
|
|
}
|
|
|
|
|
@@ -117,6 +122,14 @@ class User extends Model
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public function getNoticePhonecallTextAttr($value, $data)
|
|
|
+ {
|
|
|
+ $value = $value ? $value : (isset($data['notice_phonecall']) ? $data['notice_phonecall'] : '');
|
|
|
+ $list = $this->getNoticePhonecallList();
|
|
|
+ return isset($list[$value]) ? $list[$value] : '';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public function getIsFirstTextAttr($value, $data)
|
|
|
{
|
|
|
$value = $value ? $value : (isset($data['is_first']) ? $data['is_first'] : '');
|