Yeni Kullanıcı @unless (auth()->user()->isAdmin())

Sadece yöneticiler rol değiştirebilir veya ekip üyesi kaldırabilir.

@endunless
@forelse ($users as $user) @empty @endforelse
KullanıcıE-postaRol
{{ $user->name }} @if ($user->is(auth()->user()))(sen)@endif
{{ $user->email }} @if (auth()->user()->isAdmin())
@csrf @method('PATCH')
@else {{ ucfirst($user->role) }} @endif
@if (auth()->user()->isAdmin() && ! $user->is(auth()->user()))
@csrf @method('DELETE')
@endif
Henüz kullanıcı yok.