coolify/resources/views/livewire/destination/show.blade.php

43 lines
1.8 KiB
PHP
Raw Normal View History

2023-06-15 15:38:15 +02:00
<div>
2023-09-12 13:14:01 +02:00
@if ($server->isFunctional())
2023-07-14 13:38:24 +02:00
<div class="flex items-end gap-2">
<h2>Destinations</h2>
2024-03-25 11:33:38 +01:00
<x-modal-input buttonTitle="+ Add" title="New Destination">
<livewire:destination.new.docker :server_id="$server->id" />
</x-modal-input>
2024-03-22 11:34:15 +01:00
<x-forms.button wire:click='scan'>Scan Destinations</x-forms.button>
2023-07-14 13:38:24 +02:00
</div>
<div class="pt-2 pb-6 ">Destinations are used to segregate resources by network.</div>
<div class="flex gap-2 ">
Available for using:
@forelse ($server->standaloneDockers as $docker)
2024-03-22 11:34:15 +01:00
<a href="{{ route('destination.show', ['destination_uuid' => data_get($docker, 'uuid')]) }}">
2024-03-24 16:00:25 +01:00
<button class="dark:text-white btn-link">{{ data_get($docker, 'network') }} </button>
2023-12-15 15:48:01 +01:00
</a>
@empty
@endforelse
@forelse ($server->swarmDockers as $docker)
2024-03-22 11:34:15 +01:00
<a href="{{ route('destination.show', ['destination_uuid' => data_get($docker, 'uuid')]) }}">
2024-03-24 16:00:25 +01:00
<button class="dark:text-white btn-link">{{ data_get($docker, 'network') }} </button>
2023-07-14 13:38:24 +02:00
</a>
@empty
@endforelse
</div>
2023-08-23 10:14:39 +02:00
<div class="pt-2">
2023-07-14 13:38:24 +02:00
@if (count($networks) > 0)
2023-08-23 10:14:39 +02:00
<h3 class="pb-4">Found Destinations</h3>
2023-07-14 13:38:24 +02:00
@endif
2023-08-23 10:14:39 +02:00
<div class="flex flex-wrap gap-2 ">
2023-12-07 19:06:32 +01:00
@foreach ($networks as $network)
2024-03-22 11:34:15 +01:00
<div class="min-w-fit">
<x-forms.button wire:click="add('{{ data_get($network, 'Name') }}')">Add
{{ data_get($network, 'Name') }}</x-forms.button>
2023-12-07 19:06:32 +01:00
</div>
@endforeach
2023-08-23 10:14:39 +02:00
</div>
</div>
2023-07-14 13:38:24 +02:00
@else
<div>Server is not validated. Validate first.</div>
@endif
2023-06-15 15:38:15 +02:00
</div>