{{-- TEAM ROLE PERMISSIONS manager editor leader 'viewTeamMembers','addTeamMember','removeTeamMember','updateTeamMember','leaveTeam', officer 'viewTeamMembers','addTeamMember','updateTeamMember','leaveTeam', member 'viewTeamMembers','leaveTeam', associate 'viewTeamMembers','leaveTeam', --}}
@if ( ! request()->user()->belongsToTeam($team) )
{{ __('NOT IN THIS TEAM') }}
@else
{{ __('YOU ARE IN THIS TEAM') }}
@endif {{--
@if (request()->user()->ownsTeam($team)) @include('teams.show-as-role-owner') @else @include('teams.show-as-role-'.strtolower(request()->user()->teamRole($team)->name), [ 'team' => $team, 'role' => request()->user()->teamRole($team), ] ) @endif @foreach ( request()->user()->teamPermissions($team) as $key => $perm )
{{__(Gate::check( $perm, $team ) ? $perm.' true' : $perm.' false') }}
@endforeach
--}} {{--
{{__(Gate::check( 'view', $team ) ? 'can view true' : 'can view false') }}
{{__(Gate::check( 'viewOwner', $team ) ? 'can viewOwner - true' : 'can viewOwner false') }}
{{__(Gate::check( 'viewMembers', $team ) ? 'can viewMembers - true' : 'can viewMembers false') }}
{{__(Gate::check( 'viewIncoming', $team ) ? 'can viewIncoming - true' : 'can viewIncoming false') }}
{{__(Gate::check( 'viewOutgoing', $team ) ? 'can viewOutgoing - true' : 'can viewOutgoing false') }}
{{__(Gate::check( 'sendOutgoing', $team ) ? 'can sendOutgoing - true' : 'can sendOutgoing false') }}
{{__(Gate::check( 'sendOutgoing', $team ) ? 'can sendOutgoing - true' : 'can sendOutgoing false') }}
{{__(Gate::check( 'addMember', $team ) ? 'can addMember - true' : 'can addMember false') }}
{{__(Gate::check( 'removeTeamMember', $team ) ? 'can removeTeamMember - true' : 'can removeTeamMember false') }}
{{__(Gate::check( 'removeMember', $team ) ? 'can removeMember - true' : 'can removeMember false') }}
{{__(Gate::check( 'updateTeamMember', $team ) ? 'can updateTeamMember - true' : 'can updateTeamMember false') }}
{{__(Gate::check( 'updateMember', $team ) ? 'can updateMember - true' : 'can updateMember false') }}
{{__(Gate::check( 'inviteMember', $team ) ? 'can inviteMember - true' : 'can inviteMember false') }}
{{__(Gate::check( 'acceptJoinRequest', $team ) ? 'can acceptJoinRequest - true' : 'can acceptJoinRequest false') }}
{{__(Gate::check( 'rejectJoinRequest', $team ) ? 'can rejectJoinRequest - true' : 'can rejectJoinRequest false') }}
{{__(Gate::check( 'viewApplications', $team ) ? 'can viewApplications - true' : 'can viewApplications false') }}
{{__(Gate::check( 'create') ? 'can create - true' : 'can create false') }}
{{__(Gate::check( 'createTeam') ? 'can createTeam - true' : 'can createTeam false') }}
{{__(Gate::check( 'update', $team ) ? 'can update - true' : 'can update false') }}
{{__(Gate::check( 'updateTeam', $team ) ? 'can updateTeam - true' : 'can updateTeam false') }}
{{__(Gate::check( 'addTeamMember', $team ) ? 'can addTeamMember - true' : 'can addTeamMember false') }}
{{__(Gate::check( 'viewTeamMembers', $team ) ? 'can viewTeamMembers - true' : 'can viewTeamMembers false') }}
{{__(Gate::check( 'delete', $team ) ? 'can delete - true' : 'can delete false') }}
{{__(Gate::check( 'transferOwnership', $team ) ? 'can transferOwnership - true' : 'can transferOwnership false') }}
{{__(Gate::check( 'transferTeamOwnership', $team ) ? 'can transferTeamOwnership - true' : 'can transferTeamOwnership false') }}
{{__(Gate::check( 'leaveTeam', $team ) ? 'can leaveTeam - true' : 'can leaveTeam false') }}
{{__(Gate::check( 'leave', $team ) ? 'can leave - true' : 'can leave false') }}
{{__(Gate::check( 'promote', $team ) ? 'can promote - true' : 'can promote false') }}
{{__(Gate::check( 'demote', $team ) ? 'can demote - true' : 'can demote false') }}
{{__(Gate::check( 'kick', $team ) ? 'can kick - true' : 'can kick false') }}
{{__(Gate::check( 'ban', $team ) ? 'can ban - true' : 'can ban false') }}
{{__(Gate::check( 'viewTaskList', $team ) ? 'can viewTaskList - true' : 'can viewTaskList false') }}
{{__(Gate::check( 'viewTask', $team ) ? 'can viewTask - true' : 'can viewTask false') }}
{{__(Gate::check( 'assignTask', $team ) ? 'can assignTask - true' : 'can assignTask false') }}
{{__(Gate::check( 'updateTask', $team ) ? 'can updateTask - true' : 'can updateTask false') }}
{{__(Gate::check( 'createTask', $team ) ? 'can createTask - true' : 'can createTask false') }}
{{__(Gate::check( 'addTaskTime', $team ) ? 'can addTaskTime - true' : 'can addTaskTime false') }}
{{__(Gate::check( 'giveTask', $team ) ? 'can giveTask - true' : 'can giveTask false') }}
{{__(Gate::check( 'deleteTask', $team ) ? 'can deleteTask - true' : 'can deleteTask false') }}
{{__(Gate::check( 'viewWallet', $team ) ? 'can viewWallet - true' : 'can viewWallet false') }}
{{__(Gate::check( 'deposit', $team ) ? 'can deposit - true' : 'can deposit false') }}
{{__(Gate::check( 'withdraw', $team ) ? 'can withdraw - true' : 'can withdraw false') }}
{{__(Gate::check( 'tip', $team ) ? 'can tip - true' : 'can tip false') }}
{{__(Gate::check( 'buy', $team ) ? 'can buy - true' : 'can buy false') }}
{{__(Gate::check( 'viewTeamWallet', $team ) ? 'can viewTeamWallet - true' : 'can viewTeamWallet false') }}
{{__(Gate::check( 'changeTag', $team ) ? 'can changeTag - true' : 'can changeTag false') }}
{{__(Gate::check( 'updateTag', $team ) ? 'can updateTag - true' : 'can updateTag false') }}
{{__(Gate::check( 'updateName', $team ) ? 'can updateName - true' : 'can updateName false') }}
{{__(Gate::check( 'updateBio', $team ) ? 'can updateBio - true' : 'can updateBio false') }}
{{__(Gate::check( 'changeTeamTag', $team ) ? 'can changeTeamTag - true' : 'can changeTeamTag false') }}
--}}
@foreach ( Laravel\Jetstream\Jetstream::$roles as $role) {{__($role->name)}} @endforeach
{{-- __( request()->user->teamRole($team) ) --}} {{ __('reee') }}
{{-- @if (Gate::check('viewTeamMembers', $team)) --}} {{-- @livewire('teams.show-team-information', ['team' => $team]) --}} {{--

Team Member list (if user has viewTeamMembers permissions on team)

--}} {{-- @endif --}} {{--

{{ __('more.....') }}

--}} {{-- @include('teams.show-team-information', ['team' => $team]) --}} @if ( Gate::check( 'update', $team ) )
@livewire( 'teams.update-team-name-form', [ 'team' => $team ] )
@endif @if ( Gate::check( 'addTeamMember', $team ) ) {{-- --}}
@livewire( 'teams.team-member-manager', [ 'team' => $team ] )
@endif @if ( Gate::check( 'viewTeamMembers', $team ) ) {{-- --}}
{{-- @livewire('teams.show-team-information', ['team' => $team]) --}} We put team members information here
@endif @if (Gate::check( 'delete', $team ) && ! $team->personal_team ) {{-- --}}
@livewire( 'teams.delete-team-form', [ 'team' => $team ] )
@endif