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

31 lines
1.6 KiB
PHP
Raw Normal View History

2023-04-26 11:01:09 +00:00
<x-layout>
<h1>Configuration</h1>
<x-applications.navbar :applicationId="$application->id" />
2023-04-19 10:42:15 +00:00
<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>
2023-04-19 13:38:59 +00:00
<a @click.prevent="tab = 'envs'; window.location.hash = 'envs'" href="#">Environment Variables</a>
2023-04-19 12:47:11 +00:00
<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'">
2023-04-25 09:01:56 +00:00
<livewire:project.application.general :applicationId="$application->id" />
2023-04-19 10:42:15 +00:00
</div>
2023-04-19 13:38:59 +00:00
<div x-cloak x-show="tab === 'envs'">
2023-04-25 09:01:56 +00:00
<livewire:project.application.environment-variables />
2023-04-19 10:42:15 +00:00
</div>
<div x-cloak x-show="tab === 'source'">
2023-04-25 09:01:56 +00:00
<livewire:project.application.source :applicationId="$application->id" />
2023-04-19 10:42:15 +00:00
</div>
<div x-cloak x-show="tab === 'destination'">
2023-04-25 09:01:56 +00:00
<livewire:project.application.destination :destination="$application->destination" />
2023-04-19 12:00:31 +00:00
</div>
<div x-cloak x-show="tab === 'storages'">
2023-04-25 09:01:56 +00:00
<livewire:project.application.storages :storages="$application->persistentStorages" />
2023-04-19 10:42:15 +00:00
</div>
</div>
2023-04-26 11:01:09 +00:00
</x-layout>