lasthourcloud/resources/views/project/applications/configuration.blade.php

29 lines
1.5 KiB
PHP
Raw Normal View History

2023-04-19 10:42:15 +00:00
<x-applications.layout :applicationId="$application->id" title="Configurations">
<div x-data="{ tab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
<div class="flex gap-4">
2023-04-19 12:47:11 +00:00
<a @click.prevent="tab = 'general'; window.location.hash = 'general'" href="#">General</a>
<a @click.prevent="tab = 'secrets'; window.location.hash = 'secrets'" href="#">Secrets</a>
<a @click.prevent="tab = 'source'; window.location.hash = 'source'" href="#">Source</a>
<a @click.prevent="tab = 'destination'; window.location.hash = 'destination'" href="#">Destination
</a>
<a @click.prevent="tab = 'storages'; window.location.hash = 'storages'" href="#">Storage
</a>
2023-04-19 10:42:15 +00:00
</div>
<div x-cloak x-show="tab === 'general'">
<livewire:application.general :applicationId="$application->id" />
</div>
<div x-cloak x-show="tab === 'secrets'">
2023-04-19 12:28:39 +00:00
<livewire:application.secrets />
2023-04-19 10:42:15 +00:00
</div>
<div x-cloak x-show="tab === 'source'">
<livewire:application.source :applicationId="$application->id" />
</div>
<div x-cloak x-show="tab === 'destination'">
2023-04-19 12:00:31 +00:00
<livewire:application.destination :destination="$application->destination" />
</div>
<div x-cloak x-show="tab === 'storages'">
<livewire:application.storages :storages="$application->persistentStorages" />
2023-04-19 10:42:15 +00:00
</div>
</div>
</x-applications.layout>