@csrf @method('put')

{{ __('Atualizar Permissão') }}

@if (isset($success) || isset($error))
{{(isset($success) ? $success : $error)}}
@endif {{-- Role --}}

{{-- Permissoes --}}
@foreach($allPermissions as $key => $permission) @if($loop->iteration <= 4)
pluck('name')->toArray()) ? 'checked' : '' }} />
@endif @endforeach

{{-- Permissoes para paginas --}}
@foreach($allPermissions as $key => $pagePermission) @if($loop->iteration > 4)
pluck('name')->toArray()) ? 'checked' : '' }} />
@endif @endforeach