2023-09-24 08:48:54 +00:00
|
|
|
<div>
|
|
|
|
@if ($server->isFunctional())
|
2023-10-13 12:25:30 +00:00
|
|
|
<div class="flex gap-2" @if ($polling) wire:poll.2000ms='checkProxy' @endif>
|
2023-09-24 08:55:15 +00:00
|
|
|
@if (data_get($server, 'proxy.status') === 'running')
|
|
|
|
<x-status.running status="Proxy Running" />
|
|
|
|
@elseif (data_get($server, 'proxy.status') === 'restarting')
|
|
|
|
<x-status.restarting status="Proxy Restarting" />
|
2023-09-24 08:48:54 +00:00
|
|
|
@else
|
2023-09-24 08:55:15 +00:00
|
|
|
<x-status.stopped status="Proxy Stopped" />
|
2023-09-24 08:48:54 +00:00
|
|
|
@endif
|
2023-10-13 12:25:30 +00:00
|
|
|
@if (data_get($server, 'proxy.status') === 'running')
|
|
|
|
<x-forms.button wire:click='checkProxy(true)'>Refresh</x-forms.button>
|
|
|
|
@endif
|
2023-09-24 08:48:54 +00:00
|
|
|
</div>
|
2023-06-02 13:15:12 +00:00
|
|
|
@endif
|
|
|
|
</div>
|