__('Type 1'), '2' => __('Type 2'), '3' => __('Type 3')]; } public function getStatusList() { return ['1' => __('Status 1'), '2' => __('Status 2')]; } public function getReviewStatusList() { return ['1' => __('Review_status 1'), '2' => __('Review_status 2'), '3' => __('Review_status 3'), '4' => __('Review_status 4')]; } public function getTypeTextAttr($value, $data) { $value = $value ?: ($data['type'] ?? ''); $list = $this->getTypeList(); return $list[$value] ?? ''; } public function getStatusTextAttr($value, $data) { $value = $value ?: ($data['status'] ?? ''); $list = $this->getStatusList(); return $list[$value] ?? ''; } public function getReviewStatusTextAttr($value, $data) { $value = $value ?: ($data['review_status'] ?? ''); $list = $this->getReviewStatusList(); return $list[$value] ?? ''; } }