@php $editing = isset($role); $selectedPermissions = old('permissions_present') !== null ? old('permissions', []) : ($editing ? $role->permissions->pluck('name')->all() : []); $title = $editing ? 'Edit Role' : 'Add Role'; @endphp
All rolesAccess management

{{ $title }}

{{ $editing ? 'Update the role name and the permissions it grants.' : 'Create a role and choose the permissions it grants.' }}

@include('superadmin.property.partials.workspace_feedback')
@csrf

Role Details

A clear name helps identify this role when assigning users.

@error('role')
{{ $message }}
@enderror

Permissions

Search by module or action and select the access this role needs.

@include('superadmin.roles.partials.permission_picker')