@extends('admin.layouts.app') @section('title', 'Edit Role') @section('page-title', 'Edit Role: ' . $role->name) @section('content')
@csrf @method('PUT')
name, ['Super Admin', 'Admin', 'Staff'], true)) readonly @endif class="w-full px-4 py-2.5 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-lg text-sm text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:border-transparent @if(in_array($role->name, ['Super Admin', 'Admin', 'Staff'], true)) opacity-60 cursor-not-allowed @endif"> @if(in_array($role->name, ['Super Admin', 'Admin', 'Staff'], true))

System-critical role names cannot be renamed.

@endif @error('name')

{{ $message }}

@enderror

Assign Permissions

Select the granular permissions to grant to this role.

@foreach($groupedPermissions as $groupName => $perms)

{{ $groupName }} Management

@foreach($perms as $perm) @endforeach
@endforeach
Cancel
@endsection