|
@@ -29,6 +29,7 @@ class User extends Model
|
|
|
'logintime_text',
|
|
|
'jointime_text',
|
|
|
'status_text',
|
|
|
+ 'oldstatus_text',
|
|
|
'notice_email_text',
|
|
|
'notice_whatsapp_text',
|
|
|
'is_first_text'
|
|
@@ -41,6 +42,12 @@ class User extends Model
|
|
|
return ['0' => __('Status 0'), '1' => __('Status 1')];
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public function getOldStatusList()
|
|
|
+ {
|
|
|
+ return ['0' => __('Oldstatus 0'), '1' => __('Oldstatus 1')];
|
|
|
+ }
|
|
|
+
|
|
|
public function getNoticeEmailList()
|
|
|
{
|
|
|
return ['1' => __('Notice_email 1'), '0' => __('Notice_email 0')];
|
|
@@ -86,6 +93,14 @@ class User extends Model
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public function getOldStatusTextAttr($value, $data)
|
|
|
+ {
|
|
|
+ $value = $value ? $value : (isset($data['oldstatus']) ? $data['oldstatus'] : '');
|
|
|
+ $list = $this->getOldStatusList();
|
|
|
+ return isset($list[$value]) ? $list[$value] : '';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public function getNoticeEmailTextAttr($value, $data)
|
|
|
{
|
|
|
$value = $value ? $value : (isset($data['notice_email']) ? $data['notice_email'] : '');
|