From 941699f473d82bd86a1492ce9cdbf1f6dab415df Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Tue, 1 Aug 2023 22:09:39 +0600 Subject: [PATCH] Added @can('delete', $role). --- resources/views/private/roles/index.blade.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 -