2022-10-13 07:03:31 +02:00
|
|
|
@section("title", "Home")
|
2022-03-05 16:29:58 +01:00
|
|
|
<x-app-layout>
|
|
|
|
<div class="container">
|
|
|
|
@if (Route::has('login'))
|
|
|
|
@auth
|
|
|
|
<div class="row mt-4">
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-05 16:29:58 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h3>{{ $information['servers'] }}</h3>
|
2022-03-13 23:40:09 +01:00
|
|
|
<h5><a href="servers" class="text-decoration-none">Servers</a></h5>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-05 16:29:58 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h3>{{ $information['shared'] }}</h3>
|
2022-03-13 23:40:09 +01:00
|
|
|
<h5><a href="shared" class="text-decoration-none">Shared</a></h5>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-05 16:29:58 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h3>{{ $information['reseller'] }}</h3>
|
2022-03-13 23:40:09 +01:00
|
|
|
<h5><a href="reseller" class="text-decoration-none">Reseller</a></h5>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-05 16:29:58 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h3>{{ $information['domains'] }}</h3>
|
2022-03-13 23:40:09 +01:00
|
|
|
<h5><a href="domains" class="text-decoration-none">Domains</a></h5>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-05 16:29:58 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h3>{{ $information['misc'] }}</h3>
|
2022-06-26 18:39:22 +02:00
|
|
|
<h5><a href="misc" class="text-decoration-none">Misc</a></h5>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-05 16:29:58 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h3>{{ $information['dns'] }}</h3>
|
2022-03-13 23:40:09 +01:00
|
|
|
<h5><a href="dns" class="text-decoration-none">DNS</a></h5>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col-12 col-lg-2 mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
2022-06-27 15:56:29 +02:00
|
|
|
<h4>
|
|
|
|
{{$information['total_cost_weekly']}}
|
|
|
|
<small class="text-muted">{{$information['currency']}}</small>
|
|
|
|
</h4>
|
2022-03-05 16:29:58 +01:00
|
|
|
<p>Weekly cost</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-2 mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
2022-06-27 15:56:29 +02:00
|
|
|
<h4>
|
|
|
|
{{$information['total_cost_monthly']}}
|
|
|
|
<small class="text-muted">{{$information['currency']}}</small>
|
2022-03-05 16:29:58 +01:00
|
|
|
</h4>
|
|
|
|
<p>Monthly cost</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-2 mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
2022-06-27 15:56:29 +02:00
|
|
|
<h4>
|
|
|
|
{{$information['total_cost_yearly']}}
|
|
|
|
<small class="text-muted">{{$information['currency']}}</small>
|
|
|
|
</h4>
|
2022-03-05 16:29:58 +01:00
|
|
|
<p>Yearly cost</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-2 mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
2022-06-27 15:56:29 +02:00
|
|
|
<h4>
|
|
|
|
{{$information['total_cost_2_yearly']}}
|
|
|
|
<small class="text-muted">{{$information['currency']}}</small>
|
2022-03-05 16:29:58 +01:00
|
|
|
</h4>
|
|
|
|
<p>2 yearly cost</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-2 mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h4>{{$information['total_services']}}</h4>
|
|
|
|
<p>Active services</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-lg-2 mb-3">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h4>{{$information['total_inactive']}}</h4>
|
|
|
|
<p>Inactive services</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-03-09 03:18:30 +01:00
|
|
|
<div class="row mt-3">
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-09 03:18:30 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h4>{{$information['servers_summary']['cpu_sum']}}</h4>
|
|
|
|
<p>CPU</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-09 03:18:30 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
2022-03-13 12:15:46 +01:00
|
|
|
<h4>{{number_format($information['servers_summary']['ram_mb_sum'] / 1024, 2)}}
|
|
|
|
<small
|
2022-03-09 03:18:30 +01:00
|
|
|
class="text-muted">GB</small></h4>
|
|
|
|
<p>Ram</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-09 03:18:30 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h4>
|
|
|
|
@if($information['servers_summary']['disk_gb_sum'] >= 1000)
|
2022-03-13 12:15:46 +01:00
|
|
|
{{number_format($information['servers_summary']['disk_gb_sum'] / 1024,2)}}
|
|
|
|
<small
|
2022-03-09 03:18:30 +01:00
|
|
|
class="text-muted">TB</small>
|
|
|
|
@else
|
|
|
|
{{$information['servers_summary']['disk_gb_sum']}} <small
|
|
|
|
class="text-muted">GB</small>
|
|
|
|
@endif
|
|
|
|
</h4>
|
|
|
|
<p>Disk</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-09 03:18:30 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
2022-03-13 12:15:46 +01:00
|
|
|
<h4>{{number_format($information['servers_summary']['bandwidth_sum'] / 1024,2)}}
|
|
|
|
<small
|
2022-03-09 03:18:30 +01:00
|
|
|
class="text-muted">TB</small></h4>
|
|
|
|
<p>Bandwidth</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-09 03:18:30 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h4>{{$information['servers_summary']['locations_sum']}}</h4>
|
|
|
|
<p>Locations</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-05-14 16:15:45 +02:00
|
|
|
<div class="col-6 col-lg-2 mb-3">
|
2022-03-09 03:18:30 +01:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body text-center shadow">
|
|
|
|
<div class="row">
|
|
|
|
<h4>{{$information['servers_summary']['providers_sum']}}</h4>
|
|
|
|
<p>Providers</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-03-09 03:41:12 +01:00
|
|
|
@if(Session::get('due_soon_amount') > 0)
|
|
|
|
<h3 class="my-3">Due soon</h3>
|
|
|
|
@if(!empty($information['due_soon']))
|
|
|
|
<div class="card shadow mt-3">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead class="table-light">
|
2022-03-05 16:29:58 +01:00
|
|
|
<tr>
|
2022-03-09 03:41:12 +01:00
|
|
|
<th class="text-nowrap">Name</th>
|
|
|
|
<th class="text-nowrap">Type</th>
|
|
|
|
<th class="text-nowrap">Due</th>
|
|
|
|
<th class="text-nowrap">Price</th>
|
|
|
|
<th class="text-nowrap"></th>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
2022-03-09 03:41:12 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($information['due_soon'] as $due_soon)
|
|
|
|
<tr>
|
|
|
|
<td class="text-nowrap">
|
|
|
|
@if($due_soon->service_type === 1)
|
|
|
|
{{$due_soon->hostname}}
|
|
|
|
@elseif($due_soon->service_type === 2)
|
|
|
|
{{$due_soon->main_domain}}
|
|
|
|
@elseif($due_soon->service_type === 3)
|
|
|
|
{{$due_soon->reseller}}
|
|
|
|
@elseif($due_soon->service_type === 4)
|
|
|
|
{{$due_soon->domain}}.{{$due_soon->extension}}
|
|
|
|
@elseif($due_soon->service_type === 5)
|
|
|
|
{{$due_soon->name}}
|
2022-05-16 06:44:55 +02:00
|
|
|
@elseif($due_soon->service_type === 6)
|
|
|
|
{{$due_soon->title}}
|
2022-03-09 03:41:12 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td class="text-nowrap">
|
|
|
|
@if($due_soon->service_type === 1)
|
|
|
|
VPS
|
|
|
|
@elseif($due_soon->service_type === 2)
|
|
|
|
Shared
|
|
|
|
@elseif($due_soon->service_type === 3)
|
|
|
|
Reseller
|
|
|
|
@elseif($due_soon->service_type === 4)
|
|
|
|
Domain
|
|
|
|
@elseif($due_soon->service_type === 5)
|
|
|
|
Misc
|
2022-05-16 06:44:55 +02:00
|
|
|
@elseif($due_soon->service_type === 6)
|
|
|
|
Seedbox
|
2022-03-09 03:41:12 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td class="text-nowrap">
|
|
|
|
{{Carbon\Carbon::parse($due_soon->next_due_date)->diffForHumans()}}</td>
|
|
|
|
<td class="text-nowrap">{{$due_soon->price}} {{$due_soon->currency}} {{\App\Process::paymentTermIntToString($due_soon->term)}}</td>
|
|
|
|
<td class="text-nowrap text-center">
|
|
|
|
@if($due_soon->service_type === 1)
|
|
|
|
<a href="{{ route('servers.show', $due_soon->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($due_soon->service_type === 2)
|
|
|
|
<a href="{{ route('shared.show', $due_soon->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($due_soon->service_type === 3)
|
|
|
|
<a href="{{ route('reseller.show', $due_soon->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($due_soon->service_type === 4)
|
|
|
|
<a href="{{ route('domains.show', $due_soon->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($due_soon->service_type === 5)
|
|
|
|
<a href="{{ route('misc.show', $due_soon->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
2022-05-16 06:44:55 +02:00
|
|
|
@elseif($due_soon->service_type === 6)
|
|
|
|
<a href="{{ route('seedboxes.show', $due_soon->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
2022-03-09 03:41:12 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-03-05 16:29:58 +01:00
|
|
|
|
2022-03-09 03:41:12 +01:00
|
|
|
</div>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-09 03:41:12 +01:00
|
|
|
@endif
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
|
|
|
|
2022-03-09 03:41:12 +01:00
|
|
|
@if(Session::get('recently_added_amount') > 0)
|
|
|
|
<h3 class="mt-4">Recently added</h3>
|
|
|
|
@if(!empty($information['newest']))
|
|
|
|
<div class="card shadow mt-3">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead class="table-light">
|
2022-03-05 16:29:58 +01:00
|
|
|
<tr>
|
2022-03-09 03:41:12 +01:00
|
|
|
<th class="text-nowrap">Name</th>
|
|
|
|
<th class="text-nowrap">Type</th>
|
|
|
|
<th class="text-nowrap">Added</th>
|
|
|
|
<th class="text-nowrap">Price</th>
|
|
|
|
<th class="text-nowrap"></th>
|
2022-03-05 16:29:58 +01:00
|
|
|
</tr>
|
2022-03-09 03:41:12 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach($information['newest'] as $new)
|
|
|
|
<tr>
|
|
|
|
<td class="text-nowrap">
|
|
|
|
@if($new->service_type === 1)
|
|
|
|
{{$new->hostname}}
|
|
|
|
@elseif($new->service_type === 2)
|
|
|
|
{{$new->main_domain}}
|
|
|
|
@elseif($new->service_type === 3)
|
|
|
|
{{$new->reseller}}
|
|
|
|
@elseif($new->service_type === 4)
|
|
|
|
{{$new->domain}}.{{$new->extension}}
|
|
|
|
@elseif($new->service_type === 5)
|
|
|
|
{{$new->name}}
|
2022-05-16 06:44:55 +02:00
|
|
|
@elseif($new->service_type === 6)
|
|
|
|
{{$new->title}}
|
2022-03-09 03:41:12 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td class="text-nowrap">
|
|
|
|
@if($new->service_type === 1)
|
|
|
|
VPS
|
|
|
|
@elseif($new->service_type === 2)
|
|
|
|
Shared
|
|
|
|
@elseif($new->service_type === 3)
|
|
|
|
Reseller
|
|
|
|
@elseif($new->service_type === 4)
|
|
|
|
Domain
|
|
|
|
@elseif($new->service_type === 5)
|
|
|
|
Misc
|
2022-05-16 06:44:55 +02:00
|
|
|
@elseif($new->service_type === 6)
|
|
|
|
Seedbox
|
2022-03-09 03:41:12 +01:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td class="text-nowrap">{{Carbon\Carbon::parse($new->created_at)->diffForHumans()}}</td>
|
|
|
|
<td class="text-nowrap">{{$new->price}} {{$new->currency}} {{\App\Process::paymentTermIntToString($new->term)}}</td>
|
|
|
|
<td class="text-nowrap text-center">
|
2022-05-16 06:44:55 +02:00
|
|
|
@if($new->service_type === 1)
|
|
|
|
<a href="{{ route('servers.show', $new->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($new->service_type === 2)
|
|
|
|
<a href="{{ route('shared.show', $new->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($new->service_type === 3)
|
|
|
|
<a href="{{ route('reseller.show', $new->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($new->service_type === 4)
|
|
|
|
<a href="{{ route('domains.show', $new->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($new->service_type === 5)
|
|
|
|
<a href="{{ route('misc.show', $new->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@elseif($new->service_type === 6)
|
|
|
|
<a href="{{ route('seedboxes.show', $new->service_id) }}"
|
|
|
|
class="text-body mx-1"><i class="fas fa-eye"
|
|
|
|
title="view"></i></a>
|
|
|
|
@endif
|
2022-03-09 03:41:12 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-03-05 16:29:58 +01:00
|
|
|
|
2022-03-09 03:41:12 +01:00
|
|
|
</div>
|
2022-03-05 16:29:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-09 03:41:12 +01:00
|
|
|
@endif
|
2022-03-05 16:29:58 +01:00
|
|
|
@endif
|
2022-03-09 03:41:12 +01:00
|
|
|
|
2022-03-05 16:29:58 +01:00
|
|
|
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
|
|
|
|
<p class="text-muted mt-4 text-end"><small>Page took {{$information['execution_time']}} seconds,
|
2022-06-27 15:56:29 +02:00
|
|
|
Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}),
|
|
|
|
Rates By <a href="https://www.exchangerate-api.com">Exchange Rate API</a>
|
|
|
|
</small>
|
2022-03-05 16:29:58 +01:00
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@else
|
|
|
|
<a href="{{ route('login') }}" class="text-sm text-gray-700 underline">Login</a>
|
|
|
|
|
|
|
|
@if (Route::has('register'))
|
|
|
|
<a href="{{ route('register') }}" class="ml-4 text-sm text-gray-700 underline">Register</a>
|
|
|
|
@endif
|
|
|
|
@endauth
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</x-app-layout>
|