= 254 ? 255 : $maxPosition + 1; } public static function direction() { $maxPosition = Direction::max('position'); return $maxPosition >= 254 ? 255 : $maxPosition + 1; } public static function educationalInstitution() { $maxPosition = EducationalInstitution::max('position'); return $maxPosition >= 254 ? 255 : $maxPosition + 1; } public static function directionProfile() { $maxPosition = DirectionProfile::max('position'); return $maxPosition >= 254 ? 255 : $maxPosition + 1; } public static function subjectType() { $maxPosition = SubjectType::max('position'); return $maxPosition >= 254 ? 255 : $maxPosition + 1; } public static function subject() { $maxPosition = Subject::max('position'); return $maxPosition >= 254 ? 255 : $maxPosition + 1; } public static function examinationType() { $maxPosition = ExaminationType::max('position'); return $maxPosition >= 254 ? 255 : $maxPosition + 1; } }