Updated shared show blade
Updated shared show blade
This commit is contained in:
parent
35492de070
commit
a3b7cfb88f
|
@ -4,131 +4,139 @@
|
||||||
{{ __('Share hosting details') }}
|
{{ __('Share hosting details') }}
|
||||||
</x-slot>
|
</x-slot>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="card shadow mt-3">
|
<x-card class="shadow mt-3">
|
||||||
<div class="card-body">
|
<div class="row">
|
||||||
<div class="row">
|
<div class="col-12 col-md-6 mb-2">
|
||||||
<div class="'col-12 col-lg-6">
|
<h2>{{ $shared->main_domain }}</h2>
|
||||||
<div class="table-responsive">
|
<code>@foreach($labels as $label)
|
||||||
<table class="table table-borderless text-nowrap">
|
@if($loop->last)
|
||||||
<tbody>
|
{{$label->label}}
|
||||||
<tr>
|
@else
|
||||||
<td class="px-4 py-2 font-bold">Labels</td>
|
{{$label->label}},
|
||||||
<td>
|
@endif
|
||||||
@foreach($labels as $label)
|
@endforeach</code>
|
||||||
@if($loop->last)
|
</div>
|
||||||
{{$label->label}}
|
<div class="col-12 col-md-6 text-md-end">
|
||||||
@else
|
<h6 class="text-muted pe-lg-4">{{ $shared->id }}</h6>
|
||||||
{{$label->label}},
|
@if($shared->active !== 1)
|
||||||
@endif
|
<h6 class="text-danger pe-lg-4">not active</h6>
|
||||||
@endforeach
|
@endif
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="row">
|
||||||
<td class="px-4 py-2 font-bold">Id</td>
|
<div class="'col-12 col-lg-6">
|
||||||
<td>{{ $shared->id }}</td>
|
<div class="table-responsive">
|
||||||
</tr>
|
<table class="table table-borderless text-nowrap">
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Main domain</td>
|
|
||||||
<td>{{ $shared->main_domain }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Location</td>
|
|
||||||
<td>{{ $shared_extras[0]->location }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Provider</td>
|
|
||||||
<td>{{ $shared_extras[0]->provider_name }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Price</td>
|
|
||||||
<td>{{ $shared_extras[0]->price }} {{ $shared_extras[0]->currency }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Term</td>
|
|
||||||
<td>{{ \App\Process::paymentTermIntToString($shared_extras[0]->term) }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Has dedicated IP?</td>
|
|
||||||
<td>{{ ($shared->has_dedicated_ip)? 'Yes': 'No' }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">IP</td>
|
|
||||||
<td>{{ $shared->ip }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Owned since</td>
|
|
||||||
<td>
|
|
||||||
@if(!is_null($shared->owned_since))
|
|
||||||
{{ date_format(new DateTime($shared->owned_since), 'jS F Y') }}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Next due date</td>
|
|
||||||
<td>
|
|
||||||
@if(!is_null($shared_extras[0]->next_due_date))
|
|
||||||
{{ date_format(new DateTime($shared_extras[0]->next_due_date), 'jS F Y') }}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Created on</td>
|
|
||||||
<td>{{ date_format($shared->created_at, 'jS F Y') }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Last updated</td>
|
|
||||||
<td>{{ date_format($shared->updated_at, 'jS F Y') }}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="'col-12 col-lg-6">
|
|
||||||
<table class="table table-borderless">
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Disk GB</td>
|
<td class="px-2 py-2 font-bold text-muted">Type</td>
|
||||||
<td>{{$shared->disk_as_gb}}</td>
|
<td>{{ $shared->shared_type }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Bandwidth GB</td>
|
<td class="px-2 py-2 font-bold text-muted">Location</td>
|
||||||
<td>{{$shared->bandwidth}}</td>
|
<td>{{ $shared_extras[0]->location }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Domains Limit</td>
|
<td class="px-2 py-2 font-bold text-muted">Provider</td>
|
||||||
<td>{{$shared->domains_limit}}</td>
|
<td>{{ $shared_extras[0]->provider_name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Subdomains Limit</td>
|
<td class="px-2 py-2 font-bold text-muted">Price</td>
|
||||||
<td>{{$shared->subdomains_limit}}</td>
|
<td>{{ $shared_extras[0]->price }} {{ $shared_extras[0]->currency }}
|
||||||
|
<small>{{\App\Process::paymentTermIntToString($shared_extras[0]->term)}}</small>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Email Limit</td>
|
<td class="px-2 py-2 font-bold text-muted">Was promo</td>
|
||||||
<td>{{$shared->email_limit}}</td>
|
<td>{{ ($shared_extras[0]->was_promo === 1) ? 'Yes' : 'No' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">DB Limit</td>
|
<td class="px-2 py-2 font-bold text-muted">Has dedicated IP?</td>
|
||||||
<td>{{$shared->db_limit}}</td>
|
<td>{{ ($shared->has_dedicated_ip)? 'Yes': 'No' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">FTP Limit</td>
|
<td class="px-2 py-2 font-bold text-muted">IP</td>
|
||||||
<td>{{$shared->ftp_limit}}</td>
|
<td>{{ $shared->ip }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Owned since</td>
|
||||||
|
<td>
|
||||||
|
@if(!is_null($shared->owned_since))
|
||||||
|
{{ date_format(new DateTime($shared->owned_since), 'jS F Y') }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Next due date</td>
|
||||||
|
<td>{{Carbon\Carbon::parse($shared_extras[0]->next_due_date)->diffForHumans()}}
|
||||||
|
({{Carbon\Carbon::parse($shared_extras[0]->next_due_date)->format('d/m/Y')}})
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Inserted</td>
|
||||||
|
<td>
|
||||||
|
@if(!is_null($shared->created_at))
|
||||||
|
{{ date_format(new DateTime($shared->created_at), 'jS M y g:i a') }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Updated</td>
|
||||||
|
<td>
|
||||||
|
@if(!is_null($shared->updated_at))
|
||||||
|
{{ date_format(new DateTime($shared->updated_at), 'jS M y g:i a') }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ route('shared.index') }}"
|
<div class="'col-12 col-lg-6">
|
||||||
class="btn btn-success btn-sm mx-2">
|
<table class="table table-borderless">
|
||||||
Go back
|
<tbody>
|
||||||
</a>
|
<tr>
|
||||||
<a href="{{ route('shared.edit', $shared->id) }}"
|
<td class="px-2 py-2 font-bold text-muted">Disk GB</td>
|
||||||
class="btn btn-primary btn-sm mx-2">
|
<td>{{$shared->disk_as_gb}}</td>
|
||||||
Edit
|
</tr>
|
||||||
</a>
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Bandwidth GB</td>
|
||||||
|
<td>{{$shared->bandwidth}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Domains Limit</td>
|
||||||
|
<td>{{$shared->domains_limit}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Subdomains Limit</td>
|
||||||
|
<td>{{$shared->subdomains_limit}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Email Limit</td>
|
||||||
|
<td>{{$shared->email_limit}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">DB Limit</td>
|
||||||
|
<td>{{$shared->db_limit}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">FTP Limit</td>
|
||||||
|
<td>{{$shared->ftp_limit}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<a href="{{ route('shared.index') }}"
|
||||||
|
class="btn btn-success btn-sm mx-2">
|
||||||
|
Go back
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('shared.edit', $shared->id) }}"
|
||||||
|
class="btn btn-primary btn-sm mx-2">
|
||||||
|
Edit
|
||||||
|
</a>
|
||||||
|
</x-card>
|
||||||
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
|
@if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1)
|
||||||
<p class="text-muted mt-4 text-end"><small>
|
<p class="text-muted mt-4 text-end"><small>
|
||||||
Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}
|
Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user