Updated YABS single to be first() views updated for this
Updated YABS single use first() Updated show and compare blade views
This commit is contained in:
parent
a397333aca
commit
34a12e6ffd
|
@ -27,7 +27,7 @@ class Yabs extends Model
|
|||
{
|
||||
return Cache::remember("yabs.$yabs_id", now()->addMonth(1), function () use ($yabs_id) {
|
||||
return self::where('id', $yabs_id)->with(['server', 'disk_speed', 'network_speed', 'server.location', 'server.provider'])
|
||||
->get();
|
||||
->first();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -41,205 +41,205 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>{{ $yabs1_data[0]->id }}</th>
|
||||
<th>{{ $yabs1_data->id }}</th>
|
||||
<th>DIF</th>
|
||||
<th>{{ $yabs2_data[0]->id}}</th>
|
||||
<th>{{ $yabs2_data->id}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="td-nowrap">Date</td>
|
||||
<td class="td-nowrap">{{ date_format(new DateTime($yabs1_data[0]->output_date), 'g:ia D jS F Y') }}</td>
|
||||
<td class="td-nowrap">{{ date_format(new DateTime($yabs1_data->output_date), 'g:ia D jS F Y') }}</td>
|
||||
<td class="td-nowrap equal-td">
|
||||
{{\Carbon\Carbon::parse($yabs1_data[0]->output_date)->diffForHumans(\Carbon\Carbon::parse($yabs2_data[0]->output_date))}}
|
||||
{{\Carbon\Carbon::parse($yabs1_data->output_date)->diffForHumans(\Carbon\Carbon::parse($yabs2_data->output_date))}}
|
||||
</td>
|
||||
<td class="td-nowrap">{{ date_format(new DateTime($yabs2_data[0]->output_date), 'g:ia D jS F Y') }}</td>
|
||||
<td class="td-nowrap">{{ date_format(new DateTime($yabs2_data->output_date), 'g:ia D jS F Y') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">Server</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->server->hostname}}</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->server->hostname}}</td>
|
||||
<td class="td-nowrap equal-td"></td>
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->server->hostname}}</td>
|
||||
<td class="td-nowrap">{{$yabs2_data->server->hostname}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">CPU count</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->cpu_cores}}</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->cpu_cores, $yabs2_data[0]->cpu_cores, ' cores') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->cpu_cores}}</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->cpu_cores}}</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->cpu_cores, $yabs2_data->cpu_cores, ' cores') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->cpu_cores}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">CPU freq</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->cpu_freq}}<span class="data-type">Mhz</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->cpu_freq, $yabs2_data[0]->cpu_freq, 'Mhz') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->cpu_freq}}<span class="data-type">Mhz</span></td>
|
||||
<td class="td-nowrap">{{$yabs1_data->cpu_freq}}<span class="data-type">Mhz</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->cpu_freq, $yabs2_data->cpu_freq, 'Mhz') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->cpu_freq}}<span class="data-type">Mhz</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">RAM</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->ram_mb}}<span class="data-type">MB</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->ram_mb, $yabs2_data[0]->ram_mb, 'MB') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->ram_mb}}<span class="data-type">MB</span></td>
|
||||
<td class="td-nowrap">{{$yabs1_data->ram_mb}}<span class="data-type">MB</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->ram_mb, $yabs2_data->ram_mb, 'MB') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->ram_mb}}<span class="data-type">MB</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">Disk</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->disk_gb}}<span class="data-type">GB</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->disk_gb, $yabs2_data[0]->disk_gb, 'GB') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->disk_gb}}<span class="data-type">GB</span></td>
|
||||
<td class="td-nowrap">{{$yabs1_data->disk_gb}}<span class="data-type">GB</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->disk_gb, $yabs2_data->disk_gb, 'GB') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->disk_gb}}<span class="data-type">GB</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">GB5 single</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->gb5_single}}</td>
|
||||
@if(!is_null($yabs1_data[0]->gb5_single) && !is_null($yabs2_data[0]->gb5_single))
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->gb5_single, $yabs2_data[0]->gb5_single, '') !!}
|
||||
<td class="td-nowrap">{{$yabs1_data->gb5_single}}</td>
|
||||
@if(!is_null($yabs1_data->gb5_single) && !is_null($yabs2_data->gb5_single))
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->gb5_single, $yabs2_data->gb5_single, '') !!}
|
||||
@else
|
||||
<td>-</td>
|
||||
@endif
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->gb5_single}}</td>
|
||||
<td class="td-nowrap">{{$yabs2_data->gb5_single}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">GB5 multi</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->gb5_multi}}</td>
|
||||
@if(!is_null($yabs1_data[0]->gb5_multi) && !is_null($yabs2_data[0]->gb5_multi))
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->gb5_multi, $yabs2_data[0]->gb5_multi, '') !!}
|
||||
<td class="td-nowrap">{{$yabs1_data->gb5_multi}}</td>
|
||||
@if(!is_null($yabs1_data->gb5_multi) && !is_null($yabs2_data->gb5_multi))
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->gb5_multi, $yabs2_data->gb5_multi, '') !!}
|
||||
@else
|
||||
<td>-</td>
|
||||
@endif
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->gb5_multi}}</td>
|
||||
<td class="td-nowrap">{{$yabs2_data->gb5_multi}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">4k disk</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->disk_speed->d_4k_as_mbps}}<span class="data-type">MB/s</span>
|
||||
<td class="td-nowrap">{{$yabs1_data->disk_speed->d_4k_as_mbps}}<span class="data-type">MB/s</span>
|
||||
</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->disk_speed->d_4k_as_mbps, $yabs2_data[0]->disk_speed->d_4k_as_mbps, 'MB/s') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->disk_speed->d_4k_as_mbps}}<span class="data-type">MB/s</span>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->disk_speed->d_4k_as_mbps, $yabs2_data->disk_speed->d_4k_as_mbps, 'MB/s') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->disk_speed->d_4k_as_mbps}}<span class="data-type">MB/s</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">64k disk</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->disk_speed->d_64k_as_mbps}}<span class="data-type">MB/s</span>
|
||||
<td class="td-nowrap">{{$yabs1_data->disk_speed->d_64k_as_mbps}}<span class="data-type">MB/s</span>
|
||||
</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->disk_speed->d_64k_as_mbps, $yabs2_data[0]->disk_speed->d_64k_as_mbps, 'MB/s') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->disk_speed->d_64k_as_mbps}}<span class="data-type">MB/s</span>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->disk_speed->d_64k_as_mbps, $yabs2_data->disk_speed->d_64k_as_mbps, 'MB/s') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->disk_speed->d_64k_as_mbps}}<span class="data-type">MB/s</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">512k disk</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->disk_speed->d_512k_as_mbps}}<span
|
||||
<td class="td-nowrap">{{$yabs1_data->disk_speed->d_512k_as_mbps}}<span
|
||||
class="data-type">MB/s</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->disk_speed->d_512k_as_mbps, $yabs2_data[0]->disk_speed->d_512k_as_mbps, 'MB/s') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->disk_speed->d_512k_as_mbps}}<span
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->disk_speed->d_512k_as_mbps, $yabs2_data->disk_speed->d_512k_as_mbps, 'MB/s') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->disk_speed->d_512k_as_mbps}}<span
|
||||
class="data-type">MB/s</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">1m disk</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->disk_speed->d_1m_as_mbps}}<span class="data-type">MB/s</span>
|
||||
<td class="td-nowrap">{{$yabs1_data->disk_speed->d_1m_as_mbps}}<span class="data-type">MB/s</span>
|
||||
</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->disk_speed->d_1m_as_mbps, $yabs2_data[0]->disk_speed->d_1m_as_mbps, 'MB/s') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->disk_speed->d_1m_as_mbps}}<span class="data-type">MB/s</span>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->disk_speed->d_1m_as_mbps, $yabs2_data->disk_speed->d_1m_as_mbps, 'MB/s') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->disk_speed->d_1m_as_mbps}}<span class="data-type">MB/s</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[0]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[0]->send_as_mbps}}<span
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[0]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[0]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[0]->send_as_mbps, $yabs2_data[0]->network_speed[0]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[0]->send_as_mbps}}<span
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[0]->send_as_mbps, $yabs2_data->network_speed[0]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[0]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[0]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[0]->receive_as_mbps}}<span
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[0]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[0]->receive_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[0]->receive_as_mbps, $yabs2_data[0]->network_speed[0]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[0]->receive_as_mbps}}<span
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[0]->receive_as_mbps, $yabs2_data->network_speed[0]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[0]->receive_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
</tr>
|
||||
@if($yabs1_data[0]->network_speed[1]->location === $yabs2_data[0]->network_speed[1]->location)
|
||||
@if($yabs1_data->network_speed[1]->location === $yabs2_data->network_speed[1]->location)
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[1]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[1]->send_as_mbps}}<span
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[1]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[1]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[1]->send_as_mbps, $yabs2_data[0]->network_speed[1]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[1]->send_as_mbps}}<span
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[1]->send_as_mbps, $yabs2_data->network_speed[1]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[1]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[1]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[1]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[1]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[1]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[1]->receive_as_mbps, $yabs2_data[0]->network_speed[1]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[1]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[1]->receive_as_mbps, $yabs2_data->network_speed[1]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[1]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if($yabs1_data[0]->network_speed[2]->location === $yabs2_data[0]->network_speed[2]->location)
|
||||
@if($yabs1_data->network_speed[2]->location === $yabs2_data->network_speed[2]->location)
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[2]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[2]->send_as_mbps}}<span
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[2]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[2]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[2]->send_as_mbps, $yabs2_data[0]->network_speed[2]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[2]->send_as_mbps}}<span
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[2]->send_as_mbps, $yabs2_data->network_speed[2]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[2]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[2]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[2]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[2]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[2]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[2]->receive_as_mbps, $yabs2_data[0]->network_speed[2]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[2]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[2]->receive_as_mbps, $yabs2_data->network_speed[2]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[2]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if(isset($yabs1_data[0]->network_speed[3]) && $yabs1_data[0]->network_speed[3]->location === $yabs2_data[0]->network_speed[3]->location)
|
||||
@if(isset($yabs1_data->network_speed[3]) && $yabs1_data->network_speed[3]->location === $yabs2_data->network_speed[3]->location)
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[3]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[3]->send_as_mbps}}<span
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[3]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[3]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[3]->send_as_mbps, $yabs2_data[0]->network_speed[3]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[3]->send_as_mbps}}<span
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[3]->send_as_mbps, $yabs2_data->network_speed[3]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[3]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[3]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[3]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[3]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[3]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[3]->receive_as_mbps, $yabs2_data[0]->network_speed[3]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[3]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[3]->receive_as_mbps, $yabs2_data->network_speed[3]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[3]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if(isset($yabs1_data[0]->network_speed[4]) && $yabs1_data[0]->network_speed[4]->location === $yabs2_data[0]->network_speed[4]->location)
|
||||
@if(isset($yabs1_data->network_speed[4]) && $yabs1_data->network_speed[4]->location === $yabs2_data->network_speed[4]->location)
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[4]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[4]->send_as_mbps}}<span
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[4]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[4]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[4]->send_as_mbps, $yabs2_data[0]->network_speed[4]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[4]->send_as_mbps}}<span
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[4]->send_as_mbps, $yabs2_data->network_speed[4]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[4]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[4]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[4]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[4]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[4]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[4]->receive_as_mbps, $yabs2_data[0]->network_speed[4]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[4]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[4]->receive_as_mbps, $yabs2_data->network_speed[4]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[4]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if(isset($yabs1_data[0]->network_speed[4]) && $yabs1_data[0]->network_speed[4]->location === $yabs2_data[0]->network_speed[5]->location)
|
||||
@if(isset($yabs1_data->network_speed[4]) && $yabs1_data->network_speed[4]->location === $yabs2_data->network_speed[5]->location)
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[4]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[4]->send_as_mbps}}<span
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[4]->location}} send</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[4]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[4]->send_as_mbps, $yabs2_data[0]->network_speed[5]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[5]->send_as_mbps}}<span
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[4]->send_as_mbps, $yabs2_data->network_speed[5]->send_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[5]->send_as_mbps}}<span
|
||||
class="data-type">MBps</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[4]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data[0]->network_speed[4]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[4]->location}} receive</td>
|
||||
<td class="td-nowrap">{{$yabs1_data->network_speed[4]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data[0]->network_speed[4]->receive_as_mbps, $yabs2_data[0]->network_speed[5]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data[0]->network_speed[5]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
{!! \App\Models\Server::tableRowCompare($yabs1_data->network_speed[4]->receive_as_mbps, $yabs2_data->network_speed[5]->receive_as_mbps, 'MBps') !!}
|
||||
<td class="td-nowrap">{{$yabs2_data->network_speed[5]->receive_as_mbps}}<span class="data-type">MBps</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@section("title", "{$yab[0]->hostname} {$yab[0]->id} YABS")
|
||||
@section("title", "{$yabs->hostname} {$yabs->id} YABS")
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
{{ __('YABS details') }}
|
||||
|
@ -15,40 +15,40 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">Server</td>
|
||||
<td><a href="{{route('servers.show', ['server' => $yab[0]->server_id])}}" class="text-decoration-none">{{ $yab[0]->server->hostname }}</a></td>
|
||||
<td><a href="{{route('servers.show', ['server' => $yabs->server_id])}}" class="text-decoration-none">{{ $yabs->server->hostname }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">Uptime</td>
|
||||
<td>{{ $yab[0]->uptime }}</td>
|
||||
<td>{{ $yabs->uptime }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">Distro</td>
|
||||
<td>{{ $yab[0]->distro }}</td>
|
||||
<td>{{ $yabs->distro }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">CPU</td>
|
||||
<td>{{ $yab[0]->cpu_cores }} @ {{$yab[0]->cpu_freq}} Mhz</td>
|
||||
<td>{{ $yabs->cpu_cores }} @ {{$yabs->cpu_freq}} Mhz</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">CPU type</td>
|
||||
<td>{{ $yab[0]->cpu_model }}</td>
|
||||
<td>{{ $yabs->cpu_model }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">RAM</td>
|
||||
<td>{{ $yab[0]->ram }} {{$yab[0]->ram_type}}</td>
|
||||
<td>{{ $yabs->ram }} {{$yabs->ram_type}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">Swap</td>
|
||||
<td>{{ $yab[0]->swap }} {{$yab[0]->swap_type}}</td>
|
||||
<td>{{ $yabs->swap }} {{$yabs->swap_type}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">Disk</td>
|
||||
<td>{{ $yab[0]->disk }} {{$yab[0]->disk_type}}</td>
|
||||
<td>{{ $yabs->disk }} {{$yabs->disk_type}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">Has IPv6</td>
|
||||
<td>
|
||||
@if($yab[0]->has_ipv6 === 1)
|
||||
@if($yabs->has_ipv6 === 1)
|
||||
<span class="text-success">Yes</span>
|
||||
@else
|
||||
<span class="text-danger">No</span>
|
||||
|
@ -58,7 +58,7 @@
|
|||
<tr>
|
||||
<td class="px-4 py-2 font-bold">AES</td>
|
||||
<td>
|
||||
@if($yab[0]->aes === 1)
|
||||
@if($yabs->aes === 1)
|
||||
<span class="text-success">Yes</span>
|
||||
@else
|
||||
<span class="text-danger">No</span>
|
||||
|
@ -68,7 +68,7 @@
|
|||
<tr>
|
||||
<td class="px-4 py-2 font-bold">VM</td>
|
||||
<td>
|
||||
@if($yab[0]->vm === 1)
|
||||
@if($yabs->vm === 1)
|
||||
<span class="text-success">Yes</span>
|
||||
@else
|
||||
<span class="text-danger">No</span>
|
||||
|
@ -77,19 +77,19 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">GB5 Single</td>
|
||||
<td><a href="https://browser.geekbench.com/v5/cpu/{{$yab[0]->gb5_id}}"
|
||||
class="text-decoration-none">{{ $yab[0]->gb5_single }}</a></td>
|
||||
<td><a href="https://browser.geekbench.com/v5/cpu/{{$yabs->gb5_id}}"
|
||||
class="text-decoration-none">{{ $yabs->gb5_single }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">GB5 Multi</td>
|
||||
<td><a href="https://browser.geekbench.com/v5/cpu/{{$yab[0]->gb5_id}}"
|
||||
class="text-decoration-none">{{ $yab[0]->gb5_multi }}</a></td>
|
||||
<td><a href="https://browser.geekbench.com/v5/cpu/{{$yabs->gb5_id}}"
|
||||
class="text-decoration-none">{{ $yabs->gb5_multi }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2 font-bold">Test ran</td>
|
||||
<td>
|
||||
@if(!is_null($yab[0]->output_date))
|
||||
{{date_format(new DateTime($yab[0]->output_date), 'g:ia D jS F Y')}}
|
||||
@if(!is_null($yabs->output_date))
|
||||
{{date_format(new DateTime($yabs->output_date), 'g:ia D jS F Y')}}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -104,25 +104,25 @@
|
|||
<td class="py-2">Disk speeds:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2"><b>4k</b> {{$yab[0]->disk_speed->d_4k}}
|
||||
<small>{{$yab[0]->disk_speed->d_4k_type}}</small></td>
|
||||
<td class="px-4 py-2"><b>4k</b> {{$yabs->disk_speed->d_4k}}
|
||||
<small>{{$yabs->disk_speed->d_4k_type}}</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2"><b>64k</b> {{$yab[0]->disk_speed->d_64k}}
|
||||
<small>{{$yab[0]->disk_speed->d_64k_type}}</small></td>
|
||||
<td class="px-4 py-2"><b>64k</b> {{$yabs->disk_speed->d_64k}}
|
||||
<small>{{$yabs->disk_speed->d_64k_type}}</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2"><b>512k</b> {{$yab[0]->disk_speed->d_512k}}
|
||||
<small>{{$yab[0]->d_512k_type}}</small></td>
|
||||
<td class="px-4 py-2"><b>512k</b> {{$yabs->disk_speed->d_512k}}
|
||||
<small>{{$yabs->d_512k_type}}</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="px-4 py-2"><b>1m</b> {{$yab[0]->disk_speed->d_1m}} <small>{{$yab[0]->disk_speed->d_1m_type}}</small>
|
||||
<td class="px-4 py-2"><b>1m</b> {{$yabs->disk_speed->d_1m}} <small>{{$yabs->disk_speed->d_1m_type}}</small>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="py-2">Network speed (location|send|receive):</td>
|
||||
</tr>
|
||||
@foreach($yab[0]->network_speed as $speed_test)
|
||||
@foreach($yabs->network_speed as $speed_test)
|
||||
<tr>
|
||||
<td class="px-4 py-2 text-nowrap">
|
||||
<b>{{$speed_test->location}}</b> {{$speed_test->send}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user