diff --git a/resources/views/private/roles/index.blade.php b/resources/views/private/roles/index.blade.php index 66f46b9..ca143c9 100644 --- a/resources/views/private/roles/index.blade.php +++ b/resources/views/private/roles/index.blade.php @@ -27,23 +27,23 @@ {{ $role->code }} @if($role->is_remove) -
- @csrf - @method('DELETE') - -
+ @can('delete', $role) +
+ @csrf + @method('DELETE') + +
+ @endcan @endif @endforeach -