@if($this->status !== 'none')
@if($this->status == 'OK')
@if(count($this->results) > 0)
PING {{ $this->host }} ({{ $this->ip }}) 56(84) bytes of data.
@foreach($this->results as $result) @if($result['success'])
64 bytes from {{ $this->ip }}: icmp_seq={{ $result['sequence'] }} ttl=64 time={{ $result['latency'] }}ms
@else
Request timeout for icmp_seq {{ $result['sequence'] }}
@endif @endforeach @if($this->isRunning)
Pinging...
@else
--- {{ $this->host }} ping statistics ---
{{ count($this->results) }} packets transmitted, {{ collect($this->results)->where('success', true)->count() }} received, {{ round((1 - collect($this->results)->where('success', true)->count() / count($this->results)) * 100) }}% packet loss
@endif @endif
@else
{{ trans('webtools/tools/ping.error-text') }}
{{ trans('webtools/tools/ping.error') }}
@endif
@endif
@push('scripts') @endpush