2024-01-07 15:23:41 +00:00
|
|
|
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'general' }">
|
2023-11-07 11:11:47 +00:00
|
|
|
<livewire:project.service.navbar :service="$service" :parameters="$parameters" :query="$query" />
|
2024-05-06 12:28:16 +00:00
|
|
|
<div class="flex flex-col h-full gap-8 pt-6 sm:flex-row">
|
2024-05-06 12:30:50 +00:00
|
|
|
<div class="flex flex-col items-start gap-2 min-w-fit">
|
2024-05-06 12:28:16 +00:00
|
|
|
<a class="menu-item"
|
2025-04-29 07:04:24 +00:00
|
|
|
class="{{ request()->routeIs('project.service.configuration') ? 'menu-item-active' : '' }}"
|
2025-03-12 15:33:35 +00:00
|
|
|
href="{{ route('project.service.configuration', [...$parameters, 'stack_service_uuid' => null]) }}">
|
2024-01-07 15:23:41 +00:00
|
|
|
<button><- Back</button>
|
2023-10-25 08:43:07 +00:00
|
|
|
</a>
|
2024-05-06 12:28:16 +00:00
|
|
|
<a class="menu-item" :class="activeTab === 'general' && 'menu-item-active'"
|
2024-01-07 15:23:41 +00:00
|
|
|
@click.prevent="activeTab = 'general'; window.location.hash = 'general'; if(window.location.search) window.location.search = ''"
|
2025-04-29 07:04:24 +00:00
|
|
|
href="#">General</a>
|
2025-04-30 14:44:44 +00:00
|
|
|
@if ($serviceDatabase?->isBackupSolutionAvailable() || $serviceDatabase?->is_migrated)
|
2024-05-06 12:28:16 +00:00
|
|
|
<a :class="activeTab === 'backups' && 'menu-item-active'" class="menu-item"
|
2025-04-29 07:04:24 +00:00
|
|
|
@click.prevent="activeTab = 'backups'; window.location.hash = 'backups'" href="#backups">Backups</a>
|
2024-01-07 15:23:41 +00:00
|
|
|
@endif
|
2023-09-22 09:23:49 +00:00
|
|
|
</div>
|
2024-05-05 15:23:25 +00:00
|
|
|
<div class="w-full">
|
2024-01-07 15:23:41 +00:00
|
|
|
@isset($serviceApplication)
|
2024-06-07 09:01:10 +00:00
|
|
|
<x-slot:title>
|
|
|
|
|
{{ data_get_str($service, 'name')->limit(10) }} >
|
|
|
|
|
{{ data_get_str($serviceApplication, 'name')->limit(10) }} | Coolify
|
|
|
|
|
</x-slot>
|
2024-01-07 15:23:41 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'general'" class="h-full">
|
2024-02-05 13:40:54 +00:00
|
|
|
<livewire:project.service.service-application-view :application="$serviceApplication" />
|
2023-09-22 09:23:49 +00:00
|
|
|
</div>
|
2024-01-07 15:23:41 +00:00
|
|
|
@endisset
|
|
|
|
|
@isset($serviceDatabase)
|
2024-10-03 08:48:25 +00:00
|
|
|
<x-slot:title>
|
|
|
|
|
{{ data_get_str($service, 'name')->limit(10) }} >
|
|
|
|
|
{{ data_get_str($serviceDatabase, 'name')->limit(10) }} | Coolify
|
|
|
|
|
</x-slot>
|
2024-01-07 15:23:41 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'general'" class="h-full">
|
|
|
|
|
<livewire:project.service.database :database="$serviceDatabase" />
|
2023-09-22 09:23:49 +00:00
|
|
|
</div>
|
2025-04-30 14:44:44 +00:00
|
|
|
@if ($serviceDatabase?->isBackupSolutionAvailable() || $serviceDatabase?->is_migrated)
|
2024-10-03 08:48:25 +00:00
|
|
|
<div x-cloak x-show="activeTab === 'backups'">
|
|
|
|
|
<div class="flex gap-2 ">
|
|
|
|
|
<h2 class="pb-4">Scheduled Backups</h2>
|
2025-05-03 11:34:20 +00:00
|
|
|
@if (filled($serviceDatabase->custom_type) || !$serviceDatabase->is_migrated)
|
2025-04-30 14:44:44 +00:00
|
|
|
<x-modal-input buttonTitle="+ Add" title="New Scheduled Backup">
|
|
|
|
|
<livewire:project.database.create-scheduled-backup :database="$serviceDatabase" />
|
|
|
|
|
</x-modal-input>
|
|
|
|
|
@endif
|
2024-10-03 08:48:25 +00:00
|
|
|
</div>
|
|
|
|
|
<livewire:project.database.scheduled-backups :database="$serviceDatabase" />
|
2025-04-30 14:44:44 +00:00
|
|
|
</div>
|
2024-10-03 08:48:25 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
@endisset
|
2023-09-22 09:23:49 +00:00
|
|
|
</div>
|
2023-10-12 07:12:46 +00:00
|
|
|
</div>
|