2023-05-02 10:47:52 +00:00
|
|
|
<div>
|
|
|
|
<form class="flex flex-col" wire:submit.prevent='submit'>
|
2023-05-03 12:09:10 +00:00
|
|
|
<x-inputs.input id="name" label="Name" required />
|
|
|
|
<x-inputs.input id="network" label="Network" required />
|
|
|
|
<x-inputs.input id="server_id" label="Server ID" required />
|
2023-05-02 10:47:52 +00:00
|
|
|
@foreach ($servers as $key)
|
2023-05-03 12:09:10 +00:00
|
|
|
@if ($server_id == $key->id)
|
|
|
|
<x-inputs.button class="bg-green-500" wire:click.prevent="setServerId('{{ $key->id }}')">
|
|
|
|
{{ $key->name }}
|
|
|
|
</x-inputs.button>
|
|
|
|
@else
|
|
|
|
<x-inputs.button wire:click.prevent="setServerId('{{ $key->id }}')">{{ $key->name }}
|
|
|
|
</x-inputs.button>
|
|
|
|
@endif
|
2023-05-02 10:47:52 +00:00
|
|
|
@endforeach
|
2023-05-03 12:09:10 +00:00
|
|
|
<x-inputs.button class="mt-4" type="submit">
|
2023-05-02 10:47:52 +00:00
|
|
|
Submit
|
2023-05-03 12:09:10 +00:00
|
|
|
</x-inputs.button>
|
2023-05-02 10:47:52 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|