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

31 lines
1.6 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">
<div class="flex flex-col gap-4 min-w-fit">
2024-03-24 15:00:25 +00:00
<a :class="activeTab === 'general' && 'dark:text-white'"
2024-01-07 15:23:41 +00:00
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
2024-03-24 15:00:25 +00:00
<a :class="activeTab === 'backup' && 'dark:text-white'"
2024-01-07 15:23:41 +00:00
@click.prevent="activeTab = 'backup'; window.location.hash = 'backup'" href="#">Instance Backup</a>
2024-03-24 15:00:25 +00:00
<a :class="activeTab === 'smtp' && 'dark:text-white'"
2024-01-07 15:23:41 +00:00
@click.prevent="activeTab = 'smtp'; window.location.hash = 'smtp'" href="#">Transactional
Email</a>
2024-03-24 15:00:25 +00:00
<a :class="activeTab === 'auth' && 'dark:text-white'"
2024-03-20 14:46:59 +00:00
@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 pl-8">
<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>