TEAM #{{__($team->id)}} - {{__($user->name)}}

@if ( ! $user->belongsToTeam($team) ) {{__('apply to team')}} @else {{ $user->ownsTeam($team) ? __('Owner') : __($user->teamRole($team)->name ) }} @endif

{{-- @if ( Gate::check( 'addTeamMember', $team ) ) --}} {{-- --}} {{--
@livewire( 'teams.team-member-manager', [ 'team' => $team ] )
--}} {{-- @endif --}} @if ( !$user->belongsToTeam($team) && !$team->hasUser($user) ) @include('messages.message-access-reply-false', ['info'=> 'You are not in this team'])
@include('messages.message-access-reply-true', ['info'=> 'show team application form'])
You are not in this team 1
You are not in this team 2
You are not in this team 3
@else @if ( $user->currentTeam->id !== $team->id )
In team, but team not set as Current Team
@include('messages.message-access-reply-false', ['info'=> 'Team NOT set as Current']) @else
In team, and Team IS set as Current Team
@include('messages.message-access-reply-true', ['info'=> 'Team IS set as Current']) @endif
@if ( ! $user->ownsTeam($team) )
{{ $user->teamRole($team)->name }}
@if ( $team->personal_team ) {{__('PERMENANT')}} @else {{__('CREATED')}} @endif
@foreach ( $user->teamPermissions($team) as $key => $perm )
{{__($perm)}}
@endforeach
@else
{{__('owner')}}
@if ( $team->personal_team ) {{__('PERMENANT')}} @else {{__('CREATED')}} @endif
@foreach ( $user->teamPermissions($team) as $key => $perm )
{{__($perm)}}
@endforeach
@endif
@if ( $user->ownsTeam($team) )
{{__('Owner')}} {{__('Owner')}}
@include('messages.message-access-reply-owner', ['info'=> 'owner only'])
@else
{{__($user->teamRole($team)->name)}} {{__($user->teamRole($team)->name)}}
@include('messages.message-access-reply-owner',['info'=>$user->teamRole($team)->name])
@endif
@if (Gate::check('update_name', $team))
{{__('update_name')}} {{__('update_name')}}
{{-- @include( 'teams.show-team-name-form', [ 'team' => $team ] ) --}} @include('messages.message-access-reply-true', ['info'=> 'show team name form'])
@else
{{__('update_name')}} {{__('update_name')}}
@include('messages.message-access-reply-false', ['info'=> 'Cannot update team name'])
@endif
@if (Gate::check('auto_add_member', $team))
{{__('auto_add_member')}} {{__('auto_add_member')}}
@include('messages.message-access-reply-true', ['info'=> 'show auto add form']) {{-- @include( 'teams.add-team-member-form', [ 'team' => $team ] ) --}}
@else
{{__('auto_add_member')}}
{{__('Auto Add Members Form')}}
{{__('auto_add_member')}}
@include('messages.message-access-reply-false', ['info'=> 'Cannot use auto add form'])
@endif
{{--
@if (Gate::check('abandon', $team))
{{__('abandon')}} {{__('abandon')}}
@include('messages.message-access-reply-true', ['info'=> 'show abandon team form'])
@else
{{__('abandon')}}
{{__('abandon')}}
{{__('abandon')}}
@include('messages.message-access-reply-false', ['info'=> 'Cannot abandon team'])
@endif
--}}
view_roles {{-- @if (Gate::check('view_roles', $team))
{{__('view_roles')}}
{{__('view_roles')}}
{{__('view_roles')}}
@foreach ( Laravel\Jetstream\Jetstream::$roles as $role) {{__($role->name)}} @endforeach @include('messages.message-access-reply-true', ['info'=> 'show role manager'])
--}} {{--
{{ __('Available Team Roles') }}
{{ __('All roles that can be assigned to members') }}

@foreach ( Laravel\Jetstream\Jetstream::$roles as $role) {{__($role->name)}} @endforeach
--}} {{-- @else
{{__('view_roles')}}
{{__('view_roles')}}
{{__('view_roles')}}
@include('messages.message-access-reply-false', ['info'=> 'Cannot access role manager'])
@endif --}}
@if (Gate::check('view_api_manager', $team))
{{-- --}} {{__('view_api_manager')}} {{-- @livewire('api.api-token-manager') --}} @include('messages.message-access-reply-true', ['info'=> 'show API token manager'])
@else
{{-- --}} {{__('view_api_manager')}} {{-- {{__('view_api_manager')}} --}} @include('messages.message-access-reply-false', ['info'=> 'Cannot access API token manager'])
@endif
@if (Gate::check('view_recruit_list', $team))
{{-- --}}
{{__('view_recruit_list')}} {{__('view_recruit_list')}}
{{-- {{__('view_recruit_list')}} --}} @include('messages.message-access-reply-true', ['info'=> 'show recruits']) {{-- @include( 'teams.show-members-form', [ 'team' => $team ] ) --}}
@else
{{-- --}}
{{__('view_recruit_list')}} {{__('view_recruit_list')}}
{{-- {{__('view_recruit_list')}} --}} @include('messages.message-access-reply-false', ['info'=> 'Cannot view recruits'])
@endif
@if (Gate::check('view_member_list', $team))
{{-- --}}
{{__('view_member_list')}} {{__('view_member_list')}}
{{-- {{__('view_member_list')}} --}} @include('messages.message-access-reply-true', ['info'=> 'show members']) {{-- @include( 'teams.show-members-form', [ 'team' => $team ] ) --}}
@else
{{-- --}}
{{__('view_member_list')}} {{__('view_member_list')}}
@include('messages.message-access-reply-false', ['info'=> 'Cannot access members'])
@endif
{{-- @foreach ( $user->teamPermissions($team) as $index => $team_perm) {{__($team_perm)}}
@include( 'teams.show-invite-form', [ 'team' => $team ] )
@endforeach --}}
@if (Gate::check('view_invite_list', $team))
{{-- --}}
{{__('view_invite_list')}} {{__('view_invite_list')}}
{{-- {{__('view_invite_list')}} --}} {{-- @include( 'teams.show-invite-form', [ 'team' => $team ] ) --}} @include('messages.message-access-reply-true', ['info'=> 'show invites'])
@else
{{-- --}}
{{__('view_invite_list')}} {{__('view_invite_list')}}
@include('messages.message-access-reply-false', ['info'=> 'Cannot access invites'])
@endif
@if (Gate::check('view_request_list', $team))
{{-- --}}
{{__('view_request_list')}} {{__('view_request_list')}}
{{-- {{__('view_request_list')}} --}} {{-- @include( 'teams.show-request-form', [ 'team' => $team ] ) --}} @include('messages.message-access-reply-true', ['info'=> 'show requests'])
@else
{{-- --}}
{{__('view_request_list')}} {{__('view_request_list')}}
{{-- {{__('view_request_list')}} --}} @include('messages.message-access-reply-false', ['info'=> 'Cannot access requests'])
@endif
@if ( Gate::check( 'delete', $team ) && ! $team->personal_team )
{{-- --}}
{{__('delete')}} {{__('delete')}}
{{-- {{__('delete')}} --}} {{-- @livewire( 'teams.delete-team-form', [ 'team' => $team ] ) --}} @include('messages.message-access-reply-true', ['info'=> 'Show team delete form'])
@else
{{-- --}}
{{__('delete')}} {{__('delete')}}
{{-- {{__('delete')}} --}} @include('messages.message-access-reply-false', ['info'=> 'Cannot delete'])
@endif
{{-- @if (Gate::check('view_members', $team)) @livewire( 'teams.update-team-name-form', [ 'team' => $team ] ) @else
@include('messages.message-access-reply', ['info'=> 'replace this message with the information as above, but with a form'])
@endif --}} {{-- @include('teams.show-team-information', ['team' => $team]) --}} {{-- @if ($user->hasTeamPermission($team, 'update_name'))
@livewire( 'teams.update-team-name-form', [ 'team' => $team ] )
@else
@include('messages.message-access-reply', ['info'=> 'No access to update_name'])
@endif --}} {{-- @if ( Gate::check( 'update', $team ) )
Update Form Here
@include('errors.403', ['message' => 'reeeeeeeee']) @livewire( 'teams.update-team-name-form', [ 'team' => $team ] )
@else
No Update Permission
@livewire( 'teams.update-team-name-form', [ 'team' => $team ] )
@endif --}} {{-- @if (Gate::check('view', $team))
@include('messages.message-access-reply', ['info'=> 'Can view'])
@else
@include('messages.message-access-reply', ['info'=> 'Cannot view'])
@endif @if (Gate::check('view_name', $team))
@include('messages.message-access-reply', ['info'=> 'Can view_name'])
@else
@include('messages.message-access-reply', ['info'=> 'Cannot view_name'])
@endif @if (Gate::check('update_name', $team))
@include('messages.message-access-reply', ['info'=> 'Can update_name'])
@else
@include('messages.message-access-reply', ['info'=> 'Cannot update_name'])
@endif @if (Gate::check('view_member', $team))
@include('messages.message-access-reply', ['info'=> 'Can view_member'])
@else
@include('messages.message-access-reply', ['info'=> 'Cannot view_member'])
@endif @if (Gate::check('view_members', $team))
@include('messages.message-access-reply', ['info'=> 'Can view_members'])
@else
@include('messages.message-access-reply', ['info'=> 'Cannot view_members'])
@endif @if (Gate::check('update', $team))
@include('messages.message-access-reply', ['info'=> 'Can update'])
@else
@include('messages.message-access-reply', ['info'=> 'Cannot update'])
@endif @if (Gate::check('delete', $team))
@include('messages.message-access-reply', ['info'=> 'Can delete'])
@else
@include('messages.message-access-reply', ['info'=> 'Cannot delete'])
@endif --}} {{-- @if ($user->hasTeamPermission($team, 'addTeamMember'))
@livewire( 'teams.team-member-manager', [ 'team' => $team ] ) @include('messages.message-access-reply', ['info'=> 'Can addTeamMember2'])
@else
@include('messages.message-access-reply', ['info'=> 'Cannot addTeamMember2'])
@endif --}} {{-- @if ( Gate::check( 'addTeamMember', $team ) ) --}} {{-- --}} {{--
@livewire( 'teams.team-member-manager', [ 'team' => $team ] )
--}} {{-- @endif --}} {{-- @if ( Gate::check( 'delete', $team ) && ! $team->personal_team ) --}} {{-- --}} {{-- @endif --}}
@endif
{{-- {{ __('Manage Role') }}
@foreach ( Laravel\Jetstream\Jetstream::$roles as $index => $role) @endforeach
{{ __('Cancel') }} {{ __('Save') }}
--}} {{--
@livewire('api.api-token-manager')
--}}