Destinations | MapleDeploy

Destinations

{{ $destinations->count() }} {{ Str::plural('network endpoint', $destinations->count()) }}

@if ($servers->count() > 0) @can('createAnyResource')
@endcan @endif
@if ($destinations->isEmpty()) @else @php $items = $destinations->map(fn ($destination) => [ 'name' => $destination->name, 'server' => $destination->server->name, 'type' => $destination->getMorphClass() === 'App\\Models\\SwarmDocker' ? 'Docker Swarm' : 'Standalone Docker', ])->values(); @endphp
@include('livewire.shared.list-search-controls', ['placeholder' => 'Search destinations', 'singular' => 'destination', 'plural' => 'destinations'])
Destination
Server
Type
@foreach ($destinations as $destination) @php($isSwarm = $destination->getMorphClass() === 'App\\Models\\SwarmDocker')
{{ $destination->name }}
{{ $destination->server->name }}
@endforeach
@include('livewire.shared.list-search-empty', ['label' => 'destinations'])
@endif