@php($selected = collect(old('permissions', $selected ?? []))->map(fn ($v) => (string) $v))
@csrf @if ($method !== 'POST') @method($method) @endif
@error('name')
{{ $message }}
@enderror

Tick what this role can access. Unticked permissions hide the matching tabs and block the routes.

@foreach ($permissions as $permission)
contains((string) $permission->id))>
@endforeach
Cancel