<%= t('profile') %>
<%= form_for current_user, url: update_contact_settings_profile_index_path, method: :patch, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
<%= f.label :first_name, t('first_name'), class: 'label' %>
<%= f.text_field :first_name, required: true, class: 'base-input', dir: 'auto' %>
<%= f.label :last_name, t('last_name'), class: 'label' %>
<%= f.text_field :last_name, required: false, class: 'base-input', dir: 'auto' %>
<%= f.label :email, t('email'), class: 'label' %>
<%= f.email_field :email, autocomplete: 'off', class: 'base-input' %>
<%= f.button button_title(title: t('update'), disabled_with: t('updating')), class: 'base-button' %>
<% end %>
<%= render 'email_configs' %>
<%= t('signature') %>
<% signature = UserConfigs.load_signature(current_user) %>
<% if signature %>
<%= button_to button_title(title: t('remove'), disabled_with: t('removing')), user_signature_path, method: :delete, class: 'right-0 top-0 absolute link' %>
<% end %>
<%= t('update_signature') %>
<%= t('initials') %>
<% initials = UserConfigs.load_initials(current_user) %>
<% if initials %>
<%= button_to button_title(title: t('remove'), disabled_with: t('removing')), user_initials_path, method: :delete, class: 'right-0 top-0 absolute link' %>
<% end %>
<%= t('update_initials') %>
<% if true_user == current_user && !current_account.testing? %>
<%= t('change_password') %>
<%= form_for current_user, url: update_password_settings_profile_index_path, method: :patch, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
<%= f.label :password, t('new_password'), class: 'label' %>
<%= f.password_field :password, autocomplete: 'off', class: 'base-input' %>
<%= f.label :password_confirmation, t('confirm_password'), class: 'label' %>
<%= f.password_field :password_confirmation, autocomplete: 'off', class: 'base-input' %>
<%= f.button button_title(title: t('update'), disabled_with: t('updating')), class: 'base-button' %>
<% end %>
<%= t('two_factor_authentication') %>
<% if current_user.otp_required_for_login %>
<%= svg_icon('circle_check', class: 'stroke-success inline flex-none w-5 h-5') %>
<%= t('2fa_has_been_configured') %>
🔓 <%= t('remove_2fa') %>
<% else %>
<%= svg_icon('info_circle', class: 'stroke-warning inline flex-none w-5 h-5') %>
<%= t('2fa_is_not_configured') %>
🔒 <%= t('set_up_2fa') %>
<% end %>
<% end %>