__('Status 10'), '20' => __('Status 20'), '30' => __('Status 30'), '40' => __('Status 40'), '50' => __('Status 50'), '-10' => __('Status -10'), '-20' => __('Status -20'), '-30' => __('Status -30')]; } public function getCollectList() { return ['0' => __('Collect 0'), '1' => __('Collect 1')]; } public function getDispatchTypeList() { return ['10' => __('Dispatch_type 10'), '11' => __('Dispatch_type 11'), '20' => __('Dispatch_type 20')]; } public function getStatusTextAttr($value, $data) { $value = $value ?: ($data['status'] ?? ''); $list = $this->getStatusList(); return $list[$value] ?? ''; } public function getCollectTextAttr($value, $data) { $value = $value ?: ($data['collect'] ?? ''); $list = $this->getCollectList(); return $list[$value] ?? ''; } public function getDispatchTypeTextAttr($value, $data) { $value = $value ?: ($data['dispatch_type'] ?? ''); $list = $this->getDispatchTypeList(); return $list[$value] ?? ''; } }