@extends('layouts.app') @section('content')

Edit Role: {{ $role->name }}

Modify permissions and data scope for this role.
Back to Roles
@if($role->users_count > 0)
Changes to this role will affect {{ $role->users_count }} user{{ $role->users_count > 1 ? 's' : '' }} currently assigned to it.
@endif
@csrf @method('PUT') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
is_system ? '' : '' }}> @if($role->is_system)
System role — slug ({{ $role->slug }}) cannot be changed.
@endif
@php $rolePermissions = old('permissions', $role->permissions ?? []); @endphp
@if(in_array('*', $rolePermissions))
This role has wildcard (*) access — all modules are accessible regardless of checkboxes below.
@endif @foreach($permissionGroups as $group => $keys)
{{ $group }}
@foreach($keys as $key)
@endforeach
@endforeach
Cancel
@endsection