From 8c2ae4882e3b0f6c76961ebf6b30538df07a81ec Mon Sep 17 00:00:00 2001 From: cp6 Date: Sun, 20 Feb 2022 00:07:35 +1100 Subject: [PATCH] Updated servers show blade to hide empty data on no yabs Updated servers show blade to hide empty data on no yabs --- resources/views/servers/show.blade.php | 105 ++++++++++++++----------- 1 file changed, 57 insertions(+), 48 deletions(-) diff --git a/resources/views/servers/show.blade.php b/resources/views/servers/show.blade.php index 93dd35d..d89fc82 100644 --- a/resources/views/servers/show.blade.php +++ b/resources/views/servers/show.blade.php @@ -60,7 +60,9 @@ CPU - {{ $server_extras[0]->cpu_cores }} @ {{ $server_extras[0]->cpu_freq }} + {{ $server_extras[0]->cpu }} @if($server_extras[0]->has_yabs) + @ {{ $server_extras[0]->cpu_freq }} + @endif RAM @@ -123,55 +125,62 @@
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @foreach($network_speeds as $ns) + @if($server_extras[0]->has_yabs) +
+
GB5 Single/Multi - {{$server_extras[0]->gb5_single}} / {{$server_extras[0]->gb5_multi}} -
CPU{{$server_extras[0]->cpu}}
AES{{ ($server_extras[0]->aes === 1) ? 'Yes' : 'No' }}
VM{{ ($server_extras[0]->vm === 1) ? 'Yes' : 'No' }}
Disk 4k{{$server_extras[0]->d_4k}} {{$server_extras[0]->d_4k_type}}
Disk 64k{{$server_extras[0]->d_64k}} {{$server_extras[0]->d_64k_type}}
Disk 512k{{$server_extras[0]->d_512k}} {{$server_extras[0]->d_512k_type}}
Disk 1m{{$server_extras[0]->d_1m}} {{$server_extras[0]->d_1m_type}}
Network speed (s/r)
+ - - + + - @endforeach - -
{{$ns['location']}}{{$ns['send']}} {{$ns['send_type']}} {{$ns['receive']}} {{$ns['receive_type']}}GB5 Single/Multi + {{$server_extras[0]->gb5_single}} / {{$server_extras[0]->gb5_multi}} +
-
+ + CPU + {{$server_extras[0]->cpu_model}} + + + AES + {{ ($server_extras[0]->aes === 1) ? 'Yes' : 'No' }} + + + VM + {{ ($server_extras[0]->vm === 1) ? 'Yes' : 'No' }} + + + Disk 4k + {{$server_extras[0]->d_4k}} {{$server_extras[0]->d_4k_type}} + + + Disk 64k + {{$server_extras[0]->d_64k}} {{$server_extras[0]->d_64k_type}} + + + + Disk 512k + {{$server_extras[0]->d_512k}} {{$server_extras[0]->d_512k_type}} + + + + Disk 1m + {{$server_extras[0]->d_1m}} {{$server_extras[0]->d_1m_type}} + + + Network speed (s/r) + + @foreach($network_speeds as $ns) + + {{$ns['location']}} + {{$ns['send']}} {{$ns['send_type']}} {{$ns['receive']}} + {{$ns['receive_type']}} + + @endforeach + + +
+ @else +

Please add a YABs to see Geekbench, disk and network speeds

+ @endif