2023-04-25 08:47:13 +00:00
|
|
|
<div>
|
|
|
|
<form wire:submit.prevent='submit' class="flex flex-col">
|
|
|
|
<div class="flex flex-col gap-2 xl:flex-row">
|
|
|
|
<div class="flex flex-col w-96">
|
2023-04-25 12:43:35 +00:00
|
|
|
<x-form-input id="server.name" label="Name" required />
|
|
|
|
<x-form-input id="server.description" label="Description" />
|
2023-04-25 08:47:13 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex flex-col w-96">
|
2023-04-27 10:35:49 +00:00
|
|
|
@if ($server->id === 0)
|
|
|
|
<x-form-input id="server.ip" label="IP Address" readonly />
|
|
|
|
<x-form-input id="server.user" label="User" readonly />
|
|
|
|
<x-form-input type="number" id="server.port" label="Port" readonly />
|
|
|
|
@else
|
|
|
|
<x-form-input id="server.ip" label="IP Address" required />
|
|
|
|
<x-form-input id="server.user" label="User" required />
|
|
|
|
<x-form-input type="number" id="server.port" label="Port" required />
|
|
|
|
@endif
|
2023-04-25 08:47:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-26 13:38:50 +00:00
|
|
|
<div>
|
|
|
|
<button class="w-16 mt-4" type="submit">
|
|
|
|
Submit
|
|
|
|
</button>
|
2023-05-02 17:25:47 +00:00
|
|
|
<button wire:click.prevent='checkServer'>Check Server</button>
|
2023-05-03 07:43:01 +00:00
|
|
|
{{-- <button wire:click.prevent='installDocker'>Install Docker</button> --}}
|
2023-04-26 13:38:50 +00:00
|
|
|
</div>
|
2023-04-25 08:47:13 +00:00
|
|
|
</form>
|
2023-04-26 13:38:50 +00:00
|
|
|
@isset($uptime)
|
|
|
|
<p>Uptime: {{ $uptime }}</p>
|
2023-05-03 07:43:01 +00:00
|
|
|
@endisset
|
|
|
|
@isset($dockerVersion)
|
|
|
|
<p>Docker Engine: {{ $dockerVersion }}</p>
|
|
|
|
@endisset
|
|
|
|
@isset($dockerComposeVersion)
|
|
|
|
<p>Docker Compose: {{ $dockerComposeVersion }}</p>
|
2023-04-26 13:38:50 +00:00
|
|
|
@endisset
|
2023-05-02 17:25:47 +00:00
|
|
|
|
2023-04-25 08:47:13 +00:00
|
|
|
</div>
|