lasthourcloud/resources/views/server/show.blade.php

26 lines
1.0 KiB
PHP
Raw Normal View History

2023-04-25 08:47:13 +00:00
<x-layout>
2023-05-23 07:53:24 +00:00
<h1 class="pb-0">Server</h1>
2023-05-31 20:23:17 +00:00
<div class="text-sm breadcrumbs">
2023-05-23 07:53:24 +00:00
<ul>
<li>{{ data_get($server, 'name') }}</li>
</ul>
</div>
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }" class="flex pt-10">
2023-05-18 11:26:35 +00:00
<div class="flex flex-col gap-4 min-w-fit">
2023-05-17 07:08:32 +00:00
<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>