@if (auth()->user()->otherTeams()->count() > 0)

Switch to:

@foreach (auth()->user()->otherTeams() as $team) {{ $team->name }} @endforeach
@endif