Updated domains show blade
Updated domains show blade
This commit is contained in:
parent
cefbbf2dbe
commit
81986ebfd6
|
@ -5,80 +5,98 @@
|
||||||
</x-slot>
|
</x-slot>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<x-card class="shadow mt-3">
|
<x-card class="shadow mt-3">
|
||||||
<x-back-button>
|
<div class="row">
|
||||||
<x-slot name="href">{{ route('domains.index') }}</x-slot>
|
<div class="col-12 col-md-6 mb-2">
|
||||||
Go back
|
<h2>{{ $domain->domain }}.{{$domain->extension}}</h2>
|
||||||
</x-back-button>
|
<code>@foreach($labels as $label)
|
||||||
<div class="table-responsive">
|
@if($loop->last)
|
||||||
<table class="table table-borderless text-nowrap">
|
{{$label->label}}
|
||||||
<tbody>
|
@else
|
||||||
<tr>
|
{{$label->label}},
|
||||||
<td class="px-4 py-2 font-bold">Domain</td>
|
|
||||||
<td>{{ $domain->domain }}.{{$domain->extension}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Domain id</td>
|
|
||||||
<td><code>{{ $domain->id }}</code></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Provider</td>
|
|
||||||
<td>{{ $service_extras[0]->provider_name }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">NS1</td>
|
|
||||||
<td>{{ $domain->ns1 }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">NS2</td>
|
|
||||||
<td>{{ $domain->ns2 }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">NS3</td>
|
|
||||||
<td>{{ $domain->ns3 }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Price</td>
|
|
||||||
<td>{{ $domain->price }} {{ $domain->currency }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Term</td>
|
|
||||||
<td>{{\App\Process::paymentTermIntToString($service_extras[0]->term)}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Owned since</td>
|
|
||||||
<td>
|
|
||||||
@if(!is_null($domain->owned_since))
|
|
||||||
{{date_format(new DateTime($domain->owned_since), 'jS F Y')}}
|
|
||||||
@endif
|
@endif
|
||||||
</td>
|
@endforeach</code>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="col-12 col-md-6 text-md-end">
|
||||||
<td class="px-4 py-2 font-bold">Next due date</td>
|
<h6 class="text-muted pe-lg-4">{{ $domain->id }}</h6>
|
||||||
<td>
|
@if($domain->active !== 1)
|
||||||
@if(!is_null($service_extras[0]->next_due_date))
|
<h6 class="text-danger pe-lg-4">not active</h6>
|
||||||
{{date_format(new DateTime($service_extras[0]->next_due_date), 'jS F Y')}}
|
@endif
|
||||||
@endif
|
</div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Created on</td>
|
|
||||||
<td>
|
|
||||||
@if(!is_null($service_extras[0]->created_at))
|
|
||||||
{{ date_format(new DateTime($service_extras[0]->created_at), 'jS F Y') }}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Last updated</td>
|
|
||||||
<td>
|
|
||||||
@if(!is_null($service_extras[0]->updated_at))
|
|
||||||
{{ date_format(new DateTime($service_extras[0]->updated_at), 'jS F Y') }}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</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">Domain</td>
|
||||||
|
<td><a href="https://{{ $domain->domain }}.{{$domain->extension}}" class="text-decoration-none">{{ $domain->domain }}.{{$domain->extension}}</a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Provider</td>
|
||||||
|
<td>{{ $service_extras[0]->provider_name }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Price</td>
|
||||||
|
<td>{{ $service_extras[0]->price }} {{ $service_extras[0]->currency }}
|
||||||
|
<small>{{\App\Process::paymentTermIntToString($service_extras[0]->term)}}</small>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">NS1</td>
|
||||||
|
<td>{{ $domain->ns1 }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">NS2</td>
|
||||||
|
<td>{{ $domain->ns2 }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">NS3</td>
|
||||||
|
<td>{{ $domain->ns3 }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Owned since</td>
|
||||||
|
<td>
|
||||||
|
@if(!is_null($domain->owned_since))
|
||||||
|
{{ date_format(new DateTime($domain->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($service_extras[0]->next_due_date)->diffForHumans()}}
|
||||||
|
({{Carbon\Carbon::parse($service_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($domain->created_at))
|
||||||
|
{{ date_format(new DateTime($domain->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($domain->updated_at))
|
||||||
|
{{ date_format(new DateTime($domain->updated_at), 'jS M y g:i a') }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="{{ route('domains.index') }}"
|
||||||
|
class="btn btn-success btn-sm mx-2">
|
||||||
|
Go back
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('domains.edit', $domain->id) }}"
|
||||||
|
class="btn btn-primary btn-sm mx-2">
|
||||||
|
Edit
|
||||||
|
</a>
|
||||||
</x-card>
|
</x-card>
|
||||||
</div>
|
</div>
|
||||||
</x-app-layout>
|
</x-app-layout>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user