@extends('layouts.admin') @section('title', 'Roles & Permissions') @section('breadcrumb', 'Roles & Permissions') @section('content')

Roles & Permissions

Control which admin menus each role of admin user can open.

Add New Role
@forelse($roles as $role) @empty @endforelse
Role Menu Access Admins Actions
{{ $role->name }} @if($role->is_super_admin) Full access @endif
@if($role->description)
{{ $role->description }}
@endif
@if($role->is_super_admin) All menus @elseif(count($role->permissionKeys()) === 0) Dashboard only @else
@foreach($role->permissionKeys() as $key) {{ \App\Support\AdminMenu::label($key) }} @endforeach
@endif
{{ $role->users_count }} @if($role->is_super_admin) Locked @else
Edit
@csrf @method('DELETE')
@endif
No roles yet. Create one to start limiting admin menu access.
Every admin can always open the Dashboard. All other menus are hidden and blocked unless the assigned role grants them.
@endsection