2022-10-13 07:03:31 +02:00
|
|
|
@section("title", "{$server_data->hostname} server")
|
2022-09-07 06:00:21 +02:00
|
|
|
@section('scripts')
|
|
|
|
<script>
|
|
|
|
function showYabsCode() {
|
|
|
|
const el = document.querySelector('#yabs_code');
|
|
|
|
el.classList.remove("d-none");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
@endsection
|
2022-03-05 16:29:58 +01:00
|
|
|
<x-app-layout>
|
|
|
|
<x-slot name="header">
|
|
|
|
{{ __('Server details') }}
|
|
|
|
</x-slot>
|
|
|
|
<div class="container">
|
|
|
|
<x-card class="shadow mt-3">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-md-6 mb-2">
|
2022-07-19 05:12:51 +02:00
|
|
|
<h2>{{ $server_data->hostname }}</h2>
|
|
|
|
@foreach($server_data->labels as $label)
|
|
|
|
<span class="badge bg-primary mx-1">{{$label->label->label}}</span>
|
|
|
|
@endforeach
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-6 text-md-end">
|
2022-07-19 05:12:51 +02:00
|
|
|
<h6 class="text-muted pe-lg-4">{{ $server_data->id }}</h6>
|
|
|
|
@if($server_data->active !== 1)
|
2022-03-05 16:29:58 +01:00
|
|
|
<h6 class="text-danger pe-lg-4">not active</h6>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-lg-6">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-borderless text-nowrap">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Type</td>
|
|
|
|
<td>
|
2022-10-04 02:13:57 +02:00
|
|
|
{{ $server_data->serviceServerType($server_data->server_type, false) }}
|
2022-03-05 16:29:58 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">OS</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{ $server_data->os->name }}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Location</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{$server_data->location->name}}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Provider</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{$server_data->provider->name}}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Price</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{ $server_data->price->price }} {{ $server_data->price->currency }}
|
|
|
|
<small>{{\App\Process::paymentTermIntToString($server_data->price->term)}}</small>
|
2022-03-05 16:29:58 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Next due date</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{Carbon\Carbon::parse($server_data->price->next_due_date)->diffForHumans()}}
|
|
|
|
({{Carbon\Carbon::parse($server_data->price->next_due_date)->format('d/m/Y')}})
|
2022-03-05 16:29:58 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">CPU</td>
|
|
|
|
<td>
|
2022-07-19 05:12:51 +02:00
|
|
|
{{ $server_data->cpu }} @if($server_data->has_yabs)
|
|
|
|
<small>@</small> {{ $server_data->yabs[0]->cpu_freq }} Mhz
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">RAM</td>
|
|
|
|
<td>
|
2022-07-19 05:12:51 +02:00
|
|
|
@if(isset($server_data->yabs[0]->ram))
|
|
|
|
{{ $server_data->yabs[0]->ram }} {{ $server_data->yabs[0]->ram_type }}
|
2022-03-05 16:29:58 +01:00
|
|
|
@else
|
2022-07-19 05:12:51 +02:00
|
|
|
{{ $server_data->ram }} {{ $server_data->ram_type }}
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Disk</td>
|
|
|
|
<td>
|
2022-07-19 05:12:51 +02:00
|
|
|
@if(isset($server_data->yabs[0]->disk))
|
|
|
|
{{ $server_data->yabs[0]->disk }} {{ $server_data->yabs[0]->disk_type }}
|
2022-03-05 16:29:58 +01:00
|
|
|
@else
|
2022-07-19 05:12:51 +02:00
|
|
|
{{ $server_data->disk }} {{ $server_data->disk_type }}
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Bandwidth</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{ $server_data->bandwidth }} GB</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
2022-07-19 05:12:51 +02:00
|
|
|
@foreach($server_data->ips as $ip)
|
2022-03-05 16:29:58 +01:00
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">@if($ip['is_ipv4'])
|
|
|
|
IPv4
|
|
|
|
@else
|
|
|
|
IPv6
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td><code>{{ $ip['address'] }}</code></td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Was promo</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{ ($server_data->was_promo === 1) ? 'Yes' : 'No' }}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Owned since</td>
|
|
|
|
<td>
|
2022-07-19 05:12:51 +02:00
|
|
|
@if(!is_null($server_data->owned_since))
|
|
|
|
{{ date_format(new DateTime($server_data->owned_since), 'jS F Y') }}
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Inserted</td>
|
|
|
|
<td>
|
2022-07-19 05:12:51 +02:00
|
|
|
@if(!is_null($server_data->created_at))
|
|
|
|
{{ date_format(new DateTime($server_data->created_at), 'jS M y g:i a') }}
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Updated</td>
|
|
|
|
<td>
|
2022-07-19 05:12:51 +02:00
|
|
|
@if(!is_null($server_data->updated_at))
|
|
|
|
{{ date_format(new DateTime($server_data->updated_at), 'jS M y g:i a') }}
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-07-19 16:19:43 +02:00
|
|
|
<x-back-btn>
|
|
|
|
<x-slot name="route">{{ route('servers.index') }}</x-slot>
|
|
|
|
</x-back-btn>
|
|
|
|
<x-edit-btn>
|
|
|
|
<x-slot name="route">{{ route('servers.edit', $server_data->id) }}</x-slot>
|
|
|
|
</x-edit-btn>
|
2022-09-07 06:00:21 +02:00
|
|
|
<a href="#" class="btn btn-light btn-sm mx-1" onclick="showYabsCode()">
|
|
|
|
Show code to add a YABS
|
|
|
|
</a>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-6">
|
2022-07-19 05:12:51 +02:00
|
|
|
@if($server_data->has_yabs)
|
2022-03-05 16:29:58 +01:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-borderless text-nowrap">
|
|
|
|
<tbody>
|
2023-09-21 14:24:02 +02:00
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">GB6 S/M</td>
|
|
|
|
<td>{{$server_data->yabs[0]->gb6_single ?? null}} / {{$server_data->yabs[0]->gb6_multi ?? null}}</td>
|
|
|
|
</tr>
|
2022-03-05 16:29:58 +01:00
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">CPU</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{$server_data->yabs[0]->cpu_model}}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">AES</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{ ($server_data->yabs[0]->aes === 1) ? 'Yes' : 'No' }}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">VM</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{ ($server_data->yabs[0]->vm === 1) ? 'Yes' : 'No' }}</td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Disk 4k</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{$server_data->yabs[0]->disk_speed->d_4k}}
|
|
|
|
<small>{{$server_data->yabs[0]->disk_speed->d_4k_type}}</small></td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Disk 64k</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{$server_data->yabs[0]->disk_speed->d_64k}}
|
|
|
|
<small>{{$server_data->yabs[0]->disk_speed->d_64k_type}}</small>
|
2022-03-05 16:29:58 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Disk 512k</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{$server_data->yabs[0]->disk_speed->d_512k}}
|
|
|
|
<small>{{$server_data->yabs[0]->disk_speed->d_512k_type}}</small>
|
2022-03-05 16:29:58 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold text-muted">Disk 1m</td>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td>{{$server_data->yabs[0]->disk_speed->d_1m}}
|
|
|
|
<small>{{$server_data->yabs[0]->disk_speed->d_1m_type}}</small></td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="px-2 py-2 font-bold">Network speed (s/r)</td>
|
|
|
|
</tr>
|
2022-07-19 05:12:51 +02:00
|
|
|
@foreach($server_data->yabs[0]->network_speed as $ns)
|
2022-03-05 16:29:58 +01:00
|
|
|
<tr>
|
2022-07-19 05:12:51 +02:00
|
|
|
<td class="px-2 py-2 font-bold text-muted">{{$ns->location}}</td>
|
|
|
|
<td>{{$ns->send}} <small>{{$ns->send_type}}</small> {{$ns->receive}}
|
|
|
|
<small>{{$ns->receive_type}}</small></td>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
@else
|
2022-11-02 12:02:12 +01:00
|
|
|
<p>Please add a YABS to
|
2022-10-20 06:45:26 +02:00
|
|
|
see Geekbench, disk and network speeds:</p>
|
|
|
|
<code>curl -sL yabs.sh | bash -s -- -s "{{route('api.store-yabs', [$server_data->id, \Illuminate\Support\Facades\Auth::user()->api_token])}}"</code>
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
</div>
|
2022-09-07 06:00:21 +02:00
|
|
|
<p id="yabs_code" class="d-none pt-3"><code>curl -sL yabs.sh | bash -s -- -s "{{route('api.store-yabs', [$server_data->id, \Illuminate\Support\Facades\Auth::user()->api_token])}}"</code></p>
|
2022-12-02 03:57:28 +01:00
|
|
|
@if(isset($server_data->note))
|
|
|
|
<p class="font-bold text-muted mt-3 mb-1 pb-0">Note:</p>
|
2024-06-26 10:02:03 +02:00
|
|
|
<p class="pt-0">{!! $server_data->note->note !!}</p>
|
2022-12-02 03:57:28 +01:00
|
|
|
@endif
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</x-card>
|
2022-10-20 02:59:03 +02:00
|
|
|
<x-details-footer></x-details-footer>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</x-app-layout>
|