2024-01-22 15:08:18 +00:00
|
|
|
<div>
|
|
|
|
<h2>Resource Operations</h2>
|
|
|
|
<div class="pb-4">You can easily make different kind of operations on this resource.</div>
|
|
|
|
<h4>Clone</h4>
|
|
|
|
<div class="pb-8">
|
2024-03-25 09:41:44 +00:00
|
|
|
<div class="pb-2">
|
2024-01-22 15:08:18 +00:00
|
|
|
Clone this resource to another project / environment.
|
|
|
|
</div>
|
2024-03-25 09:41:44 +00:00
|
|
|
<div class="flex flex-col">
|
2024-01-22 15:08:18 +00:00
|
|
|
@foreach ($servers->sortBy('id') as $server)
|
|
|
|
<div>
|
|
|
|
<div class="grid grid-cols-1 gap-2 pb-4 lg:grid-cols-4">
|
|
|
|
@foreach ($server->destinations() as $destination)
|
2024-03-20 11:54:06 +00:00
|
|
|
<x-modal-confirmation action="cloneTo({{ data_get($destination, 'id') }})">
|
2024-02-04 13:07:08 +00:00
|
|
|
<x:slot name="content">
|
2024-03-25 09:41:44 +00:00
|
|
|
<div class="box">
|
|
|
|
<div class="flex flex-col gap-2 ">
|
|
|
|
<div class="font-bold dark:text-white">{{ $server->name }}</div>
|
|
|
|
<div>{{ $destination->name }}</div>
|
|
|
|
</div>
|
2024-02-04 13:07:08 +00:00
|
|
|
</div>
|
|
|
|
</x:slot>
|
|
|
|
<div>You are about to clone this resource.</div>
|
2024-03-20 11:54:06 +00:00
|
|
|
</x-modal-confirmation>
|
2024-01-22 15:08:18 +00:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h4>Move</h4>
|
|
|
|
<div>
|
|
|
|
<div class="pb-8">
|
|
|
|
This resource is currently in the <span
|
2024-03-25 09:41:44 +00:00
|
|
|
class="font-bold dark:text-warning">{{ $resource->environment->project->name }} /
|
2024-01-22 15:08:18 +00:00
|
|
|
{{ $resource->environment->name }}</span> environment.
|
|
|
|
</div>
|
|
|
|
<div class="grid gap-4">
|
|
|
|
@forelse ($projects as $project)
|
|
|
|
<div class="flex flex-row flex-wrap gap-2">
|
|
|
|
@foreach ($project->environments as $environment)
|
2024-03-25 09:41:44 +00:00
|
|
|
<x-modal-confirmation action="moveTo({{ data_get($environment, 'id') }})">
|
|
|
|
<x:slot name="content">
|
|
|
|
<div class="box">
|
|
|
|
<div class="flex flex-col gap-2 ">
|
|
|
|
<div class="font-bold dark:text-white">{{ $project->name }}</div>
|
|
|
|
<div><span class="dark:text-warning">{{ $environment->name }}</span> environment
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</x:slot>
|
|
|
|
<div>You are about to move this resource.</div>
|
|
|
|
</x-modal-confirmation>
|
2024-01-22 15:08:18 +00:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@empty
|
|
|
|
<div>No projects found to move to</div>
|
|
|
|
@endforelse
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|