column('name','value'); return $dictData[$data['follow_type']]; } public function getProjectAssuranceTextAttr($value,$data) { $dictData = DictData::where('type_value','project_assurance')->column('name','value'); return $dictData[$data['project_assurance']]; } public function getFollowStatusTextAttr($value,$data) { $dictData = DictData::where('type_value','follow_status')->column('name','value'); return $dictData[$data['follow_status']]; } public function getFollowStageTextAttr($value,$data) { $dictData = DictData::where('type_value','follow_stage')->column('name','value'); return $dictData[$data['follow_stage']]; } public function getFollowDateAttr($value): string { return !empty($value) ? date('Y-m-d',$value) : ''; } public function getNextFollowUpDateAttr($value): string { return !empty($value) ? date('Y-m-d',$value) : ''; } public function getAnnexAttr($value) { return !empty($value) ? json_decode($value) : ''; } }