@section('title') نقش‌ها @endsection @section('breadcrumbs') {{ Breadcrumbs::render('admin.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)
و {{ $role->permissions->count() - 5 }} مجوز دیگر ...
@endif @if ($role->permissions->count() === 0)
مجوزی داده نشده است ...
@endif

کاربران ({{ $role->users->count() }})

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