coolify/resources/views/settings/configuration.blade.php

25 lines
1.3 KiB
PHP
Raw Normal View History

2023-06-07 22:07:26 +02:00
<x-layout>
2023-08-11 20:19:42 +02:00
<x-settings.navbar />
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex h-full pt-1">
2023-08-11 16:13:53 +02:00
<div class="flex flex-col gap-4 min-w-fit">
<a :class="activeTab === 'general' && 'text-white'"
2023-08-11 20:19:42 +02:00
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
2023-08-11 16:13:53 +02:00
<a :class="activeTab === 'backup' && 'text-white'"
2023-08-31 15:00:59 +02:00
@click.prevent="activeTab = 'backup'; window.location.hash = 'backup'" href="#">Instance Backup</a>
2023-08-11 16:13:53 +02:00
<a :class="activeTab === 'smtp' && 'text-white'"
2023-08-31 15:00:59 +02:00
@click.prevent="activeTab = 'smtp'; window.location.hash = 'smtp'" href="#">Transactional/Shared Email</a>
2023-08-11 16:13:53 +02:00
</div>
<div class="w-full pl-8">
<div x-cloak x-show="activeTab === 'general'" class="h-full">
2023-08-11 20:19:42 +02:00
<livewire:settings.configuration :settings="$settings" />
2023-08-11 16:13:53 +02:00
</div>
<div x-cloak x-show="activeTab === 'backup'" class="h-full">
2023-08-11 20:48:52 +02:00
<livewire:settings.backup :settings="$settings" :database="$database" :s3s="$s3s" />
2023-08-11 16:13:53 +02:00
</div>
<div x-cloak x-show="activeTab === 'smtp'" class="h-full">
2023-08-11 20:19:42 +02:00
<livewire:settings.email :settings="$settings" />
2023-08-11 16:13:53 +02:00
</div>
</div>
</div>
2023-06-07 22:07:26 +02:00
</x-layout>