__('Normal'), 'hidden' => __('Hidden')]; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['status']) ? $data['status'] : ''); $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } public function getSelectpicker() { $where = ['status' => 'normal']; return $this::where($where)->order('id desc')->column('id, name'); } }