diff --git a/resources/views/panel/users.blade.php b/resources/views/panel/users.blade.php index 0108c5a..48f5c4d 100755 --- a/resources/views/panel/users.blade.php +++ b/resources/views/panel/users.blade.php @@ -40,9 +40,13 @@ {{ $user->role }} Edit View - @if(env('REGISTER_AUTH') !== 'auth')@if($user->email_verified_at == '')no@elseyes@endif@endif - {{ $user->block }} -
Delete
+ @if(env('REGISTER_AUTH') !== 'auth') + @if($user->find($user->id)->role == 'admin' and $user->email_verified_at != '')yes @else + @if($user->email_verified_at == '')no@elseyes@endif + @endif + @endif + @if($user->find($user->id)->role == 'admin')-@else{{ $user->block }}@endif + @if($user->find($user->id)->role == 'admin')
-
@else
Delete
@endif @endforeach