21 lines
924 B
PHP
Raw Normal View History

2023-04-25 10:47:13 +02:00
<x-layout>
2023-05-18 13:26:35 +02:00
<h1>Server</h1>
2023-05-16 20:47:59 +02:00
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex pt-6">
2023-05-18 13:26:35 +02:00
<div class="flex flex-col gap-4 min-w-fit">
2023-05-17 09:08:32 +02:00
<a :class="activeTab === 'general' && 'text-white'"
2023-05-16 11:02:51 +02:00
@click.prevent="activeTab = 'general'; window.location.hash = 'general'" href="#">General</a>
2023-05-17 09:08:32 +02:00
<a :class="activeTab === 'proxy' && 'text-white'"
2023-05-16 11:02:51 +02:00
@click.prevent="activeTab = 'proxy'; window.location.hash = 'proxy'" href="#">Proxy
</a>
</div>
2023-05-16 20:47:59 +02:00
<div class="w-full pl-8">
<div x-cloak x-show="activeTab === 'general'">
<livewire:server.form :server_id="$server->id" />
2023-05-16 11:02:51 +02:00
</div>
2023-05-16 20:47:59 +02:00
<div x-cloak x-show="activeTab === 'proxy'">
<livewire:server.proxy :server="$server" />
2023-05-16 11:02:51 +02:00
</div>
</div>
</div>
2023-04-25 10:47:13 +02:00
</x-layout>