2024-01-07 15:23:41 +00:00
|
|
|
<div>
|
|
|
|
<x-settings.navbar />
|
2024-05-06 11:58:19 +00:00
|
|
|
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex flex-col h-full gap-8 pt-1 sm:flex-row">
|
|
|
|
<div class="flex gap-6 overflow-x-scroll sm:gap-2 sm:overflow-x-hidden scrollbar sm:flex-col whitespace-nowrap">
|
2024-05-05 17:18:48 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'general' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
|
2024-05-05 17:18:48 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'backup' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'backup'; window.location.hash = 'backup'" href="#">Instance Backup</a>
|
2024-05-05 17:18:48 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'smtp' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'smtp'; window.location.hash = 'smtp'" href="#">Transactional
|
|
|
|
Email</a>
|
2024-05-05 17:18:48 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'auth' && 'menu-item-active'"
|
|
|
|
@click.prevent="activeTab = 'auth'; window.location.hash = 'auth'" href="#">Authentication
|
|
|
|
(OAuth)</a>
|
2024-01-07 15:23:41 +00:00
|
|
|
</div>
|
2024-05-05 17:18:48 +00:00
|
|
|
<div class="w-full">
|
2024-01-07 15:23:41 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'general'" class="h-full">
|
|
|
|
<livewire:settings.configuration :settings="$settings" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'backup'" class="h-full">
|
|
|
|
<livewire:settings.backup :settings="$settings" :database="$database" :s3s="$s3s" />
|
|
|
|
</div>
|
|
|
|
<div x-cloak x-show="activeTab === 'smtp'" class="h-full">
|
|
|
|
<livewire:settings.email :settings="$settings" />
|
|
|
|
</div>
|
2024-03-06 16:30:19 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'auth'" class="h-full">
|
|
|
|
<livewire:settings.auth />
|
|
|
|
</div>
|
2024-01-07 15:23:41 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|