@extends('layouts.app') @section('title', 'Permissions') @section('content')

Permissions

Manage Roles
@csrf
Permission Matrix Toggle permissions for each role below
@foreach($roles as $role) @endforeach @foreach($modules as $module => $perms) @foreach($perms as $key => $label) @foreach($roles as $role) @endforeach @endforeach @endforeach
Permission
{{ $role->name }}
{{ $role->users_count }} user{{ $role->users_count == 1 ? '' : 's' }}
@if($role->slug !== 'admin')
All / None
@else
Full access
@endif
{{ \App\Support\Permissions::moduleName($module) }}
{{ $label }}
{{ $key }}
@if($role->slug === 'admin') @else permissionKeys()) ? 'checked' : '' }} data-role="{{ $role->id }}"> @endif
@push('scripts') @endpush @endsection