2023-06-13 08:02:58 +00:00
|
|
|
<x-layout>
|
|
|
|
<h1>Destinations</h1>
|
2023-08-14 12:00:10 +00:00
|
|
|
<div class="subtitle ">All Destinations</div>
|
2023-08-11 18:19:42 +00:00
|
|
|
<div class="grid gap-2 lg:grid-cols-2">
|
2023-06-13 08:02:58 +00:00
|
|
|
@forelse ($destinations as $destination)
|
|
|
|
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
|
|
|
|
<a class="flex gap-4 text-center hover:no-underline box group"
|
2023-08-11 18:19:42 +00:00
|
|
|
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
|
2023-06-13 08:02:58 +00:00
|
|
|
<div class="group-hover:text-white">
|
|
|
|
<div>{{ $destination->name }}</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
@endif
|
|
|
|
@if ($destination->getMorphClass() === 'App\Models\SwarmDocker')
|
|
|
|
<a class="flex gap-4 text-center hover:no-underline box group"
|
2023-08-11 18:19:42 +00:00
|
|
|
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
|
2023-06-13 08:02:58 +00:00
|
|
|
|
|
|
|
<div class="group-hover:text-white">
|
|
|
|
<div>{{ $destination->name }}</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
@endif
|
|
|
|
@empty
|
|
|
|
<div>
|
|
|
|
<div>No destinations found.</div>
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-use-magic-bar />
|
2023-06-13 08:02:58 +00:00
|
|
|
</div>
|
|
|
|
@endforelse
|
|
|
|
</div>
|
|
|
|
</x-layout>
|