lasthourcloud/resources/views/livewire/project/clone-project.blade.php

58 lines
2.5 KiB
PHP
Raw Normal View History

2023-12-07 18:06:32 +00:00
<form wire:submit='clone'>
2023-10-20 10:34:53 +00:00
<div class="flex flex-col">
2023-12-13 13:22:23 +00:00
<h1>Clone</h1>
<div class="subtitle ">Quickly clone all resources to a new project</div>
</div>
<div class="flex items-end gap-2">
<x-forms.input required id="newProjectName" label="New Project Name" />
<x-forms.button type="submit">Clone</x-forms.button>
2023-10-20 10:34:53 +00:00
</div>
<h3 class="pt-4 pb-2">Servers</h3>
2023-12-13 13:22:23 +00:00
<div class="flex flex-col gap-4">
@foreach ($servers->sortBy('id') as $server)
<div class="p-4 border border-coolgray-500">
<h3>{{ $server->name }}</h3>
<h5>{{ $server->description }}</h5>
<div class="pt-4 pb-2">Docker Networks</div>
<div class="grid grid-cols-1 gap-2 pb-4 lg:grid-cols-4">
@foreach ($server->destinations() as $destination)
<div class="cursor-pointer box-without-bg bg-coolgray-200 group"
:class="'{{ $selectedDestination === $destination->id }}' && 'bg-coollabs text-white'"
wire:click="selectServer('{{ $server->id }}', '{{ $destination->id }}')">
{{ $destination->name }}
</div>
@endforeach
2023-10-20 10:34:53 +00:00
</div>
</div>
@endforeach
</div>
2023-12-13 13:22:23 +00:00
2023-10-20 10:34:53 +00:00
<h3 class="pt-4 pb-2">Resources</h3>
2023-12-13 13:22:23 +00:00
<div class="grid grid-cols-1 gap-2 p-4 border border-coolgray-500">
2023-10-20 10:34:53 +00:00
@foreach ($environment->applications->sortBy('name') as $application)
2023-12-13 13:22:23 +00:00
<div>
2023-10-20 10:34:53 +00:00
<div class="flex flex-col">
<div class="font-bold text-white">{{ $application->name }}</div>
<div class="description">{{ $application->description }}</div>
</div>
</div>
@endforeach
@foreach ($environment->databases()->sortBy('name') as $database)
2023-12-13 13:22:23 +00:00
<div>
2023-10-20 10:34:53 +00:00
<div class="flex flex-col">
<div class="font-bold text-white">{{ $database->name }}</div>
<div class="description">{{ $database->description }}</div>
</div>
</div>
@endforeach
@foreach ($environment->services->sortBy('name') as $service)
2023-12-13 13:22:23 +00:00
<div>
2023-10-20 10:34:53 +00:00
<div class="flex flex-col">
<div class="font-bold text-white">{{ $service->name }}</div>
<div class="description">{{ $service->description }}</div>
</div>
</div>
@endforeach
</div>
</form>