{{ t('user') }}

{{ t('personal_information') }}

{{ $this->user->firstname }}
{{ t('change') }}
@if ($this->user->profile_image_url && Storage::disk('public')->exists($this->user->profile_image_url))
{{ t('remove') }}
@endif

* {{ t('firstname') }}
* {{ t('lastname') }}
* {{ t('email') }}
* {{ t('phone') }}

{{ t('default_language') }} @foreach (getLanguage(null, ['code', 'name']) as $language) @endforeach
@if (checkPermission(['user.edit', 'user.create'])) @php $authUser = auth()->user(); $isAdmin = $authUser->is_admin == 1; $isEditingNonAdmin = isset($this->user) && $this->user->id && $this->user->is_admin == 0; $canSeePasswordFields = $isAdmin || ($isEditingNonAdmin && !$isAdmin); @endphp @if (!$this->user->id || $canSeePasswordFields)
* {{ t('password') }}
* {{ t('confirm_password') }}
@endif @endif
@if (!$this->user->id)
{{ t('send_welcome_mail') }}

{{ t('sends_welcome_email_to_new_user') }}

@endif @if (!$isVerified)
{{ t('send_verification_mail') }}

{{ t('mark_email_as_verified_or_send_verification') }}

@endif

{{ t('roles_and_permissions') }}

@if (auth()->user()->is_admin)
{{ t('administrator_access') }}

{{ t('admin_user_has_full_access_to_all_features') }}

@endif
* {{ t('role') }}
@foreach ($roles as $id => $role) @endforeach
{{ t('features') }}
@php $groupedPermissions = []; // Grouping permissions by module foreach ($this->permission as $permission) { $parts = explode('.', $permission->name); $module = ucwords(str_replace(['_', '-'], ' ', $parts[0])); $action = ucfirst(str_replace(['_', '-'], ' ', $parts[1] ?? '')); // Store actions under the same module $groupedPermissions[$module][] = [ 'id' => $permission->name, 'name' => $action, ]; } @endphp @foreach ($groupedPermissions as $module => $actions)
{{ $module }}
@foreach ($actions as $action) @endforeach
@endforeach

{{ t('administrator_info') }}

{{ t('administrators_have_full_access_to_all_features_and_settings') }}

{{ t('cancel') }} {{ $user->exists ? t('update_button') : t('add_button') }}
@push('scripts') @endpush