@extends('layouts.app') @section('title', 'Edit Permission') @section('page-title', 'Edit Permission') @section('content') Update the permission name used for system access control. {{-- Page Actions --}}
Back
@csrf @method('PUT')
{{-- Header --}}

Permission Information

Update the permission name and access identifier.

{{-- Form --}}
{{-- Permission Name --}}

Use the module.action format, for example students.view .

@error('name')

{{ $message }}

@enderror
{{-- Permission Details --}}
{{-- Guard --}}

Guard

{{ $permission->guard_name }}
{{-- Assigned Roles --}}

Assigned Roles

{{ $permission->roles()->count() }} {{ Str::plural( 'role', $permission->roles()->count() ) }}
{{-- Permission ID --}}

Permission ID

#{{ $permission->id }}
{{-- Warning --}} @if ($permission->roles()->exists())

Permission is currently in use

This permission is currently assigned to {{ $permission->roles()->count() }} {{ Str::plural( 'role', $permission->roles()->count() ) }}. Renaming it changes the permission identifier used by the authorization system.

@endif {{-- Naming Convention --}}

Permission Naming Convention

Permissions should follow the module.action structure so they remain consistent throughout the application.

students.view students.create students.edit students.delete
{{-- Actions --}}
Cancel
@endsection