{{ $member->name }}
| {{ $member->email }} |
{{ data_get($member, 'pivot.role') }} |
{{-- TODO: This is not good --}}
@if (auth()->user()->isAdminFromSession())
@if ($member->id !== auth()->user()->id)
@if (data_get($member, 'pivot.role') !== 'owner')
@if (data_get($member, 'pivot.role') !== 'admin')
Convert to Admin
@else
Convert to Member
@endif
Remove
@else
Remove
@endif
@else
Remove
@endif
@endif
|