@extends('layouts.management') @section('content')
Roles Matrix / Configure Role

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

@if(strtolower($role->name) === 'super admin') Root Role @endif

Modify institutional role title, update description, and adjust granted permissions.

@csrf @method('PUT')
@error('name')

{{ $message }}

@enderror
@php $currentPermIds = old('permissions', $role->permissions->pluck('id')->toArray()); @endphp

Assigned System Permissions

Check the statutory authorities granted to this role. Permissions are grouped by module.

@foreach($moduleGroups as $group) @php $groupCheckedCount = $group['permissions']->filter(fn($p) => in_array($p->id, $currentPermIds))->count(); @endphp
@foreach($group['permissions'] as $permission) @endforeach
@endforeach
Cancel
@endsection