2023-03-20 12:04:22 +00:00
|
|
|
<div>
|
2023-12-07 18:06:32 +00:00
|
|
|
<form class="flex flex-col justify-center gap-2 xl:items-end xl:flex-row" wire:submit='runCommand'>
|
2023-08-11 18:19:42 +00:00
|
|
|
<x-forms.input placeholder="ls -l" autofocus id="command" label="Command" required />
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.select label="Server" id="server" required>
|
2023-05-04 08:00:08 +00:00
|
|
|
@foreach ($servers as $server)
|
2023-05-12 13:39:07 +00:00
|
|
|
@if ($loop->first)
|
|
|
|
<option selected value="{{ $server->uuid }}">{{ $server->name }}</option>
|
|
|
|
@else
|
|
|
|
<option value="{{ $server->uuid }}">{{ $server->name }}</option>
|
|
|
|
@endif
|
2023-05-04 08:00:08 +00:00
|
|
|
@endforeach
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.select>
|
2023-06-12 10:21:48 +00:00
|
|
|
<x-forms.button type="submit">Execute Command
|
2023-06-06 06:43:01 +00:00
|
|
|
</x-forms.button>
|
2023-05-04 08:00:08 +00:00
|
|
|
</form>
|
2023-05-08 07:16:50 +00:00
|
|
|
<div class="container w-full pt-10 mx-auto">
|
2023-09-15 13:34:25 +00:00
|
|
|
<livewire:activity-monitor header="Command output" />
|
2023-05-08 07:16:50 +00:00
|
|
|
</div>
|
2023-03-20 12:04:22 +00:00
|
|
|
</div>
|