Role Information
| Role Name |
{{ $role->name }} |
| Created At |
{{ $role->created_at->format('d M Y H:i') }} |
| Updated At |
{{ $role->updated_at->format('d M Y H:i') }} |
Assigned Permissions
@php
$groupedPermissions = [];
foreach($role->permissions as $permission) {
$parts = explode('-', $permission->name);
$module = ucfirst($parts[0]);
$action = $parts[1] ?? '';
$groupedPermissions[$module][] = ucfirst($action);
}
@endphp
@foreach($groupedPermissions as $module => $actions)
{{ $module }}
@foreach($actions as $action)
{{ $action }}
@endforeach
@endforeach