@section('title') Roles @endsection @section('breadcrumbs') {{ Breadcrumbs::render('user-management.roles.show', $role) }} @endsection

{{ ucwords($role->name) }}

@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

Users Assigned ({{ $role->users->count() }})

{{ $dataTable->table() }}
@push('scripts') {{ $dataTable->scripts() }} @endpush