@if(isset($role)) @method('PUT') @endif
{{--
--}}
@php if(@$role){ $currentPermissions = old('permissions', @$role->permissions->pluck('name')->toArray()); }else{ $currentPermissions = null; } @endphp @foreach ($permissions as $key => $permission)
@endforeach