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

Edit Role

← Back to roles
{{-- Validation errors --}} @if($errors->any())
Please fix the following:
@endif
@csrf @method('PUT')
{{-- Role name --}}
name === 'Admin' ? '' : '' }}> @if($role->name === 'Admin')

Tip: You can keep the Admin name as is; this role typically has full access.

@endif
{{-- Permissions --}} @php $oldPerms = old('permissions', $current ?? []); @endphp
@foreach($permissions as $p) @php $name = (string) $p->name; @endphp @endforeach
{{-- Actions --}}
Cancel
@endsection