Files
InvoiceShelf/resources/scripts/admin/views/user-settings/UserSettingsIndex.vue
Darko Gjorgjijoski 1ca915a0a3 Split CompanyController and introduce standalone User Settings page
Backend:
- Extract user profile methods (show, update, uploadAvatar) from
  CompanyController into new UserProfileController
- CompanyController now only handles company concerns (updateCompany,
  uploadCompanyLogo)
- Remove Account Settings from setting_menu config

Frontend:
- New /admin/user-settings page with 3 tabs: General, Profile Photo,
  Security (password change)
- User dropdown now links to /admin/user-settings instead of
  /admin/settings/account-settings
- Settings sidebar defaults to Company Information as first item
- Remove old monolithic AccountSetting.vue
2026-04-03 17:35:41 +02:00

48 lines
1.3 KiB
Vue

<template>
<BasePage>
<BasePageHeader :title="$t('settings.account_settings.account_settings')">
<template #actions>
<router-link to="/admin/settings">
<BaseButton variant="primary-outline">
<template #left="slotProps">
<BaseIcon name="CogIcon" :class="slotProps.class" />
</template>
{{ $t('navigation.settings') }}
</BaseButton>
</router-link>
</template>
</BasePageHeader>
<BaseCard container-class="px-4 py-5 sm:px-8 sm:py-2">
<BaseTabGroup>
<BaseTab
tab-panel-container="py-4 mt-px"
:title="$t('settings.account_settings.general')"
>
<GeneralTab />
</BaseTab>
<BaseTab
tab-panel-container="py-4 mt-px"
:title="$t('settings.account_settings.profile_picture')"
>
<ProfilePhotoTab />
</BaseTab>
<BaseTab
tab-panel-container="py-4 mt-px"
:title="$t('settings.account_settings.security')"
>
<SecurityTab />
</BaseTab>
</BaseTabGroup>
</BaseCard>
</BasePage>
</template>
<script setup>
import GeneralTab from './GeneralTab.vue'
import ProfilePhotoTab from './ProfilePhotoTab.vue'
import SecurityTab from './SecurityTab.vue'
</script>