where('type_id',39)->select(); $status = []; foreach ($project_status as $v) { $status[$v['value']] = $v['name']; } return $status[$value]; } }