2024-11-03 21:19:41 +00:00
|
|
|
<div>
|
|
|
|
|
<x-slot:title>
|
2026-02-16 01:54:19 +00:00
|
|
|
Destinations | MapleDeploy
|
2024-11-03 21:19:41 +00:00
|
|
|
</x-slot>
|
2025-02-01 20:33:44 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2024-11-03 21:19:41 +00:00
|
|
|
<h1>Destinations</h1>
|
|
|
|
|
@if ($servers->count() > 0)
|
2025-08-26 08:27:31 +00:00
|
|
|
@can('createAnyResource')
|
|
|
|
|
<x-modal-input buttonTitle="+ Add" title="New Destination">
|
|
|
|
|
<livewire:destination.new.docker />
|
|
|
|
|
</x-modal-input>
|
|
|
|
|
@endcan
|
2024-11-03 21:19:41 +00:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
<div class="subtitle">Network endpoints to deploy your resources.</div>
|
2025-10-07 15:17:31 +00:00
|
|
|
<div class="grid gap-4 lg:grid-cols-2 -mt-1">
|
2024-11-03 21:19:41 +00:00
|
|
|
@forelse ($servers as $server)
|
|
|
|
|
@forelse ($server->destinations() as $destination)
|
|
|
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
2025-12-17 11:09:13 +00:00
|
|
|
<a class="coolbox group" {{ wireNavigate() }}
|
2024-11-08 10:51:06 +00:00
|
|
|
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
|
2025-06-30 06:50:17 +00:00
|
|
|
<div class="flex flex-col justify-center mx-6">
|
2024-11-03 21:19:41 +00:00
|
|
|
<div class="box-title">{{ $destination->name }}</div>
|
|
|
|
|
<div class="box-description">Server: {{ $destination->server->name }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
@if ($destination->getMorphClass() === 'App\Models\SwarmDocker')
|
2025-12-17 11:09:13 +00:00
|
|
|
<a class="coolbox group" {{ wireNavigate() }}
|
2024-11-08 10:51:06 +00:00
|
|
|
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
|
2024-11-03 21:19:41 +00:00
|
|
|
<div class="flex flex-col mx-6">
|
|
|
|
|
<div class="box-title">{{ $destination->name }}</div>
|
|
|
|
|
<div class="box-description">server: {{ $destination->server->name }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
@empty
|
|
|
|
|
<div>No destinations found.</div>
|
|
|
|
|
@endforelse
|
|
|
|
|
@empty
|
|
|
|
|
<div>No servers found.</div>
|
|
|
|
|
@endforelse
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|