{{ __('roles.title') }}

{{ __('roles.subtitle') }}

{{-- Neue Rolle. Ein Feld, ein Knopf — die Rechte bekommt sie danach in ihrer eigenen Karte, weil eine leere Rolle noch nichts kaputtmachen kann und die Matrix im selben Formular unlesbar würde. --}}
{{ __('roles.create') }}
@foreach ($roles as $role) @php $isProtected = $role->name === $protectedRole; @endphp

{{ $role->name }} @if ($isProtected) {{ __('roles.locked_badge') }} @endif @if (in_array($role->name, $ownRoles, true)) {{ __('roles.your_role') }} @endif

{{ trans_choice('roles.holders', $role->users_count, ['count' => $role->users_count]) }}

@unless ($isProtected)
{{ __('common.save') }} @if ($role->users_count === 0) {{ __('roles.delete') }} @endif
@endunless
@error('granted.'.$role->id)

{{ $message }}

@enderror @if ($isProtected)

{{ __('roles.owner_locked') }}

@endif {{-- Die Matrix. Auch für Owner sichtbar, nur nicht änderbar: was der Owner darf, ist die Antwort auf „was gibt es überhaupt", und die soll man nachlesen können. --}}
@foreach ($permissions as $permission) @endforeach
@endforeach @error('newRole')

{{ $message }}

@enderror