@foreach($role->permissions->shuffle()->take(5) as $permission)
{{ ucfirst($permission->name) }}
@endforeach
@if($role->permissions->count() > 5)
and {{ $role->permissions->count()-5 }} more...
@endif
@if($role->permissions->count() ===0)
No permissions given...
@endif