@extends('admin.layouts.app', ['title' => 'Permission Builder']) @push('head') @endpush @section('content')

Permission Builder

Create new custom permissions from the admin panel and assign them inside roles.
Back To Roles
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
New permissions created here will appear automatically inside the role page. If you also add a matching route pattern, middleware can protect that module's routes too.
Create Custom Permission
Use this when a new module needs a new role permission.
@csrf @include('admin.admin_permissions._form', [ 'adminPermission' => $newPermission, 'fieldPrefix' => 'new_admin_permission_', ])
@forelse ($permissions as $adminPermission) @empty @endforelse
Permission Group Route Pattern Status Actions
{{ $adminPermission->label }}
{{ $adminPermission->key }}
@if ($adminPermission->description)
{{ $adminPermission->description }}
@endif
{{ $adminPermission->group_name ?: 'Custom Modules' }} {{ $adminPermission->route_pattern ?: 'Not linked' }} {{ $adminPermission->is_active ? 'Active' : 'Inactive' }}
@csrf @method('DELETE')
Edit {{ $adminPermission->label }}
@csrf @method('PUT') @include('admin.admin_permissions._form', [ 'adminPermission' => $adminPermission, 'fieldPrefix' => 'edit_admin_permission_' . $adminPermission->id . '_', ])
No custom permissions found.
{{ $permissions->links() }}
@endsection