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