@extends('layouts.app') @section('title', 'Peran') @section('content')

Data Peran Pengguna

Berikut adalah data peran pengguna yang tersedia di aplikasi ini.

@if ($errors->any())
@endif
@foreach ($roles as $role)

Total {{ $role->users_count }} pengguna

    @foreach ($role->users as $index => $user) @if ($index < 3)
  • Avatar
  • @endif @endforeach @if ($role->users->count() > 3)
  • +{{ $role->users->count() - 3 }}
  • @endif
{{ str($role->name)->title() }}
@if ($role->id != 1) @endif
@endforeach @include('_partials._widgets.add_role')
@include('_partials._modals.roles.add_role')
@endsection @push('scripts') @vite('resources/js/console/roles/script.js') @endpush