You can cut down on the code repetition here:
```Ruby
user_type = current_user.is_mentor? ? 'mentor' : 'member'
@available_projects = Project.available('mentor') - @user_projects
@unavailable_projects = Project.unavailable('mentor') - @user_projects
```