@extends('layouts.admin') @section('title', 'Edit Role') @section('content')

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

Update role information and permissions

Back to Roles
@if(session('success')) @endif
@csrf @method('PUT')
Role Information
Role slug cannot be changed
@error('display_name')
{{ $message }}
@enderror
Role type cannot be changed
@error('description')
{{ $message }}
@enderror
Permissions
Manage permissions for this role
@foreach($permissions as $group => $groupPermissions)
{{ ucfirst($group) }}
{{ $groupPermissions->count() }}
@foreach($groupPermissions as $permission)
id, old('permissions', $rolePermissionIds)) ? 'checked' : '' }}>
@endforeach
@if(!$loop->last)
@endif @endforeach
Cancel
Role Statistics
Current Permissions: {{ $role->permissions->count() }}
Assigned Users: {{ $role->users->count() }}
Role Type: {{ ucfirst($role->type) }}
Important Notes
  • Changes affect all users with this role
  • Removing permissions may restrict user access
  • Always test changes with a test user first
@endsection