$member->id == auth()->user()->id,
])>
{{ $member->name }}
|
{{ $member->email }}
|
{{ data_get($member, 'pivot.role') }}
|
@if (auth()->user()->isAdminFromSession())
@if ($member->id !== auth()->user()->id)
@if (auth()->user()->isOwner())
@if (data_get($member, 'pivot.role') === 'owner')
To Admin
To Member
Remove
@endif
@if (data_get($member, 'pivot.role') === 'admin')
To Owner
To Member
Remove
@endif
@if (data_get($member, 'pivot.role') === 'member')
To Owner
To Admin
Remove
@endif
@elseif (auth()->user()->isAdmin())
@if (data_get($member, 'pivot.role') === 'admin')
To Member
Remove
@endif
@if (data_get($member, 'pivot.role') === 'member')
To Admin
Remove
@endif
@endif
@else
(This is you)
@endif
@endif
|