Added protection for the settings
Added protection for the settings to the view
This commit is contained in:
parent
48c0066767
commit
f6f389f6b7
|
@ -9,7 +9,7 @@
|
||||||
<table class="table table-bordered">
|
<table class="table table-bordered">
|
||||||
<thead class="table-light">
|
<thead class="table-light">
|
||||||
<tr class="bg-gray-100 bg-">
|
<tr class="bg-gray-100 bg-">
|
||||||
<th>Name</th>
|
<th class="nowrap">Name</th>
|
||||||
<th class="text-center"><i class="fas fa-box" title="Virt"></i></th>
|
<th class="text-center"><i class="fas fa-box" title="Virt"></i></th>
|
||||||
<th class="text-center">OS</th>
|
<th class="text-center">OS</th>
|
||||||
<th class="text-center"><i class="fas fa-microchip" title="CPU"></i></th>
|
<th class="text-center"><i class="fas fa-microchip" title="CPU"></i></th>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
@if(!empty($servers))
|
@if(!empty($servers))
|
||||||
@foreach($servers as $s)
|
@foreach($servers as $s)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="nowrap">
|
||||||
@if(Session::has('show_server_value_hostname') && Session::get('show_server_value_hostname') === '1')
|
@if(Session::has('show_server_value_hostname') && Session::get('show_server_value_hostname') === '1')
|
||||||
{{ $s->hostname }}
|
{{ $s->hostname }}
|
||||||
@endif
|
@endif
|
||||||
|
@ -43,31 +43,60 @@
|
||||||
{{ App\Models\Server::serviceServerType($s->server_type) }}
|
{{ App\Models\Server::serviceServerType($s->server_type) }}
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">{!!App\Models\Server::osIntToIcon($s->os_id, $s->os_name)!!}</td>
|
<td class="text-center">{!!App\Models\Server::osIntToIcon($s->os_id, $s->os_name)!!}</td>
|
||||||
<td class="text-center">{{$s->cpu_cores}}</td>
|
<td class="text-center">{{$s->cpu}}</td>
|
||||||
<td class="text-center">{{$s->cpu_freq}}</td>
|
<td class="text-nowrap">{{$s->cpu_freq}}</td>
|
||||||
<td class="text-center">
|
<td class="text-nowrap">
|
||||||
@if($s->ram_as_mb > 1024)
|
@if($s->ram_as_mb > 1024)
|
||||||
{{ number_format(($s->ram_as_mb / 1000),0) }}<small>GB</small>
|
{{ number_format(($s->ram_as_mb / 1000),0) }}<small>GB</small>
|
||||||
@else
|
@else
|
||||||
{{$s->ram_as_mb}}<small>MB</small>
|
{{$s->ram_as_mb}}<small>MB</small>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-nowrap">
|
||||||
@if($s->disk > 1000)
|
@if($s->disk > 1000)
|
||||||
{{ number_format(($s->disk / 1000),1) }}<small>TB</small>
|
{{ number_format(($s->disk / 1000),1) }}<small>TB</small>
|
||||||
@else
|
@else
|
||||||
{{$s->disk}}<small>GB</small>
|
{{$s->disk}}<small>GB</small>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td class="text-nowrap">{{ $s->location }}</td>
|
<td class="text-nowrap">
|
||||||
<td class="text-nowrap">{{ $s->provider_name }}</td>
|
@if(Session::get('show_server_value_location') === 1)
|
||||||
|
{{ $s->location }}
|
||||||
|
@endif</td>
|
||||||
|
<td class="text-nowrap">
|
||||||
|
@if(Session::get('show_server_value_provider') === 1)
|
||||||
|
{{ $s->provider_name }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
<td class="text-nowrap">{{ $s->price }} {{$s->currency}} {{\App\Process::paymentTermIntToString($s->term)}}</td>
|
<td class="text-nowrap">{{ $s->price }} {{$s->currency}} {{\App\Process::paymentTermIntToString($s->term)}}</td>
|
||||||
<td class="text-nowrap">{{$s->gb5_single}}</td>
|
<td class="text-nowrap">
|
||||||
<td class="text-nowrap">{{$s->gb5_multi}}</td>
|
@if(Session::get('show_server_value_yabs') === 1)
|
||||||
<td class="text-nowrap">{{$s->d_4k_as_mbps}}<small>Mbps</small></td>
|
{{$s->gb5_single}}
|
||||||
<td class="text-nowrap">{{$s->d_64k_as_mbps}}<small>Mbps</small></td>
|
@endif
|
||||||
<td class="text-nowrap">{{$s->d_512k_as_mbps}}<small>Mbps</small></td>
|
</td>
|
||||||
<td class="text-nowrap">{{$s->d_1m_as_mbps}}<small>Mbps</small></td>
|
<td class="text-nowrap">
|
||||||
|
@if(Session::get('show_server_value_yabs') === 1)
|
||||||
|
{{$s->gb5_multi}}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
<td class="text-nowrap">
|
||||||
|
@if(Session::get('show_server_value_yabs') === 1)
|
||||||
|
{{$s->d_4k}}<small>{{$s->d_4k_type}}</small>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
<td class="text-nowrap">
|
||||||
|
@if(Session::get('show_server_value_yabs') === 1)
|
||||||
|
{{$s->d_64k}}<small>{{$s->d_64k_type}}</small>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
<td class="text-nowrap">
|
||||||
|
@if(Session::get('show_server_value_yabs') === 1)
|
||||||
|
{{$s->d_512k}}<small>{{$s->d_512k_type}}</small>
|
||||||
|
@endif</td>
|
||||||
|
<td class="text-nowrap">
|
||||||
|
@if(Session::get('show_server_value_yabs') === 1)
|
||||||
|
{{$s->d_1m}}<small>{{$s->d_1m_type}}</small>
|
||||||
|
@endif</td>
|
||||||
<td class="text-nowrap"> {{ $s->owned_since }}</td>
|
<td class="text-nowrap"> {{ $s->owned_since }}</td>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
@if(Session::has('show_server_value_ip') && Session::get('show_server_value_ip') === '1')
|
@if(Session::has('show_server_value_ip') && Session::get('show_server_value_ip') === '1')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user