{{ __('Team Members') }} {{ __('All of the people that are part of this team.') }}
{{--
{{ $team->owner->name }}
{{ $team->owner->name }}
{{ $team->owner->email }}
--}}
{{ $team->owner->name }}
{{ $team->owner->name }}
{{ $team->owner->email }}
{{-- @if (Gate::check('transferOwnership', $team))
Owner also allowed to transferOwnership
@else
Owner cannot transferOwnership
@endif @if ( $user->ownsTeam($team) )
Authed user is also the team owner
@else
Authed user is NOT the team owner
@endif --}} {{-- @if (Gate::check('transferOwnership', $team)) --}} {{-- @endif --}}
{{ $team->owner->name }}
{{ $team->owner->name }}
{{ $team->owner->email }}
{{ __('Owner') }}
{{-- @if ( $user->ownsTeam($team) ) @if (Gate::check('transferOwnership', $team)) @endif @endif --}}

@foreach ($team->users->sortBy('name') as $user)
{{ $user->name }}
{{ $user->name }}
{{-- @if (Gate::check('updateTeamMember', $team) && Laravel\Jetstream\Jetstream::hasRoles()) --}} {{-- @elseif (Laravel\Jetstream\Jetstream::hasRoles()) --}}
{{ Laravel\Jetstream\Jetstream::findRole($user->membership->role)->name }}
{{-- @endif --}} {{-- @if ($this->user->id === $user->id) --}} {{-- --}} {{ __('Leave') }} {{-- @elseif (Gate::check('removeTeamMember', $team)) --}} {{-- @endif --}}
@endforeach