@use('App\Enums\RoleName')
@php
$role ??= null;
$isBuiltIn = $role !== null && RoleName::isBuiltIn($role->name);
$selectedPermissions = old('permissions', $role?->permissions->pluck('name')->all() ?? []);
@endphp
{{ __('Built-in roles cannot be renamed.') }}
@else{{ __('A short name people will recognise, like Manager or Accountant.') }}
{{ __('Tick what this role is allowed to do in each part of the app. Everyone can always open the dashboard and their own profile.') }}
{{ trans_choice('{1} :count permission|[2,*] :count permissions', count($permissions)) }}