lasthourcloud/resources/views/livewire/settings/index.blade.php

32 lines
1.8 KiB
PHP
Raw Normal View History

2024-01-07 15:23:41 +00:00
<div>
<x-settings.navbar />
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex h-full pt-1 gap-8 sm:flex-row flex-col">
<div class="flex sm:flex-col gap-2 xl:w-48 overflow-x-scroll">
<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>
<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>
<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>
<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>
<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>
<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>