Kullanıcının mevcut rolü: {{ str_replace("-", " ", $user->roles?->first()?->name) }}
@foreach ($this->permissionCategories as $category => $categoryPermissions) @foreach ($categoryPermissions as $permission) @endforeach @endforeach
{{ ucfirst($category) }}
{{ ucfirst(explode('.', $permission->name)[1]) }}