@php $editing = $role->exists; $checked = array_map('intval', old('permissions', $granted)); $checkbox = 'size-4 rounded border-gray-300 text-brand-600 focus:ring-brand-500 disabled:opacity-50 dark:border-gray-700 dark:bg-gray-900'; @endphp @unless ($canEdit)
{{ $isOwnRole ? __('This is your own role, so another admin has to change it.') : __('You can view this role but not change it.') }}
@endunless
@csrf @if ($editing) @method('PUT') @endif
@if ($canEdit) {{ __('Select all') }} {{ __('Clear') }} @endif

{{ __('Most actions also need View to open their page. Firebase, Maps & SMS and payment keys stay with Super Admins.') }}

@error('permissions')

{{ $message }}

@enderror @error('permissions.*')

{{ $message }}

@enderror
@foreach ($modules as $module => $permissions)
@foreach ($permissions as $permission) @endforeach
@endforeach

{{ __('Permissions') }}: {{ count($checked) }} / {{ $modules->flatten(1)->count() }}

@if ($canEdit)
{{ $editing ? __('Save changes') : __('Create role') }} {{ __('Cancel') }}
@endif