2023-03-20 12:04:22 +00:00
|
|
|
<div>
|
2024-09-16 09:25:20 +00:00
|
|
|
<form class="flex flex-col gap-2 justify-center xl:items-end xl:flex-row"
|
2024-06-25 18:29:33 +00:00
|
|
|
wire:submit="$dispatchSelf('connectToContainer')">
|
2024-09-16 09:25:20 +00:00
|
|
|
<x-forms.select id="server" required wire:model.live="selected_uuid">
|
2023-05-04 08:00:08 +00:00
|
|
|
@foreach ($servers as $server)
|
2023-05-12 13:39:07 +00:00
|
|
|
@if ($loop->first)
|
2024-09-16 09:25:20 +00:00
|
|
|
<option disabled value="default">Select a server or container</option>
|
2023-05-12 13:39:07 +00:00
|
|
|
@endif
|
2024-09-16 09:25:20 +00:00
|
|
|
<option value="{{ $server->uuid }}">{{ $server->name }}</option>
|
2024-06-25 18:29:33 +00:00
|
|
|
@foreach ($containers as $container)
|
|
|
|
|
@if ($container['server_uuid'] == $server->uuid)
|
|
|
|
|
<option value="{{ $container['uuid'] }}">
|
|
|
|
|
{{ $server->name }} -> {{ $container['name'] }}
|
|
|
|
|
</option>
|
|
|
|
|
@endif
|
|
|
|
|
@endforeach
|
2023-05-04 08:00:08 +00:00
|
|
|
@endforeach
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.select>
|
2024-09-13 10:37:32 +00:00
|
|
|
<x-forms.button type="submit">Connect</x-forms.button>
|
2023-05-04 08:00:08 +00:00
|
|
|
</form>
|
2024-06-25 18:29:33 +00:00
|
|
|
<livewire:project.shared.terminal />
|
2023-03-20 12:04:22 +00:00
|
|
|
</div>
|