@extends('layouts.app') @section('title', 'Refine Permissions') @section('content')
@csrf @method('PUT')

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

@error('name') {{ $message }} @enderror
Feature-Level Permissions Matrix
@php $userPerms = is_array($role->permissions) ? $role->permissions : []; @endphp @foreach($permissions as $category => $actions)
{{ $category }}
every(fn($p) => in_array($p, $userPerms)) ? 'checked' : '' }}>
@foreach($actions as $key => $label)
@endforeach
@endforeach
@push('scripts') @endpush @endsection