@error('name')

{{ $message }}

@enderror
show_on_registration) ? '1' : '') == '1' ? 'checked' : '' }} class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 dark:border-gray-500 rounded dark:bg-gray-700"> @error('show_on_registration')

{{ $message }}

@enderror

Permissions

@if(empty($permissions))

No permissions defined yet. You can create permissions via seeds or another admin interface.

@else
@foreach($permissions as $group => $groupPermissions)
{{ Str::title(str_replace(['_', '-'], ' ', $group)) }}
@foreach($groupPermissions as $permission)
id, $rolePermissions)) ? 'checked' : '' }} class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 dark:border-gray-500 rounded dark:bg-gray-700">
@endforeach
@endforeach
@error('permissions')

{{ $message }}

@enderror @error('permissions.*')

{{ $message }}

@enderror @endif
{{-- Show Module and Setting Group permissions for new roles, or existing roles other than super_admin --}} @if( (isset($role) && $role->name !== 'super_admin') || !isset($role->name) ) {{-- !isset($role->name) covers the create case --}}

Module Access Permissions

@if(isset($allModules) && count($allModules) > 0)
Grant Access to Modules
@foreach($allModules as $module)
getName(), $roleModulePermissions)) ? 'checked' : '' }} class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 dark:border-gray-500 rounded dark:bg-gray-700">

{{ $module->get('description', 'No description') }}

@endforeach
@error('module_access.*')

{{ $message }}

@enderror @else

No modules available to assign permissions.

@endif

Setting Group Access Permissions

@if(isset($allSettingGroups) && $allSettingGroups->isNotEmpty())
@foreach($allSettingGroups as $groupName) @php $currentPerms = $roleSettingGroupPermissions[$groupName] ?? null; @endphp
{{ $groupName }}
can_view) ? 'checked' : '' }} class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 dark:border-gray-500 rounded dark:bg-gray-700">
can_edit) ? 'checked' : '' }} class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 dark:border-gray-500 rounded dark:bg-gray-700">
@endforeach
@else

No setting groups found.

@endif
@endif
Cancel