getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function getStatusList() { return ['0' => __('Status 0'), '1' => __('Status 1')]; } public function vbotrobot() { return $this->belongsTo('VbotRobot', 'robot_id', 'id', [], 'LEFT')->setEagerlyType(0); } public function vbottemplate() { return $this->belongsTo('VbotTemplate', 'template_id', 'id', [], 'LEFT')->setEagerlyType(0); } }