Updated dns view blade
Updated dns view blade
This commit is contained in:
parent
829df33abd
commit
85e4024258
|
@ -5,60 +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('dns.index') }}</x-slot>
|
<div class="col-12 col-md-6 mb-2">
|
||||||
Go back
|
<h2>{{ $dns->hostname}}</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">Type</td>
|
|
||||||
<td>{{ $dns->dns_type }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Name</td>
|
|
||||||
<td>{{ $dns->hostname }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Address</td>
|
|
||||||
<td>{{ $dns->address }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Server</td>
|
|
||||||
<td>{{ $dns->server_id }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Shared</td>
|
|
||||||
<td>{{ $dns->shared_id }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Reseller</td>
|
|
||||||
<td>{{ $dns->reseller_id }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Domain</td>
|
|
||||||
<td>{{ $dns->domain_id }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="px-4 py-2 font-bold">Created on</td>
|
|
||||||
<td>
|
|
||||||
@if(!is_null($dns->created_at))
|
|
||||||
{{ date_format(new DateTime($dns->created_at), '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">Last updated</td>
|
<h6 class="text-muted pe-lg-4">{{$dns->id }}</h6>
|
||||||
<td>
|
</div>
|
||||||
@if(!is_null($dns->updated_at))
|
|
||||||
{{ date_format(new DateTime($dns->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">Type</td>
|
||||||
|
<td>{{ $dns->dns_type }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Name</td>
|
||||||
|
<td>{{ $dns->hostname }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Address</td>
|
||||||
|
<td><code>{{ $dns->address }}</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Server</td>
|
||||||
|
<td>
|
||||||
|
@if(isset($dns->server_id))
|
||||||
|
<a href="{{route('servers.show', $dns->server_id )}}"></a>{{ $dns->server_id }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Shared</td>
|
||||||
|
<td>
|
||||||
|
@if(isset($dns->shared_id))
|
||||||
|
<a href="{{route('shared.show', $dns->shared_id )}}"></a>{{ $dns->shared_id }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Reseller</td>
|
||||||
|
<td>
|
||||||
|
@if(isset($dns->reseller_id))
|
||||||
|
<a href="{{route('resellers.show', $dns->reseller_id )}}"></a>{{ $dns->reseller_id }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Domain</td>
|
||||||
|
<td>
|
||||||
|
@if(isset($dns->domain_id))
|
||||||
|
<a href="{{route('domains.show', $dns->domain_id )}}"></a>{{ $dns->domain_id }}
|
||||||
|
@endif</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="px-2 py-2 font-bold text-muted">Inserted</td>
|
||||||
|
<td>
|
||||||
|
@if(!is_null($dns->created_at))
|
||||||
|
{{ date_format(new DateTime($dns->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($dns->updated_at))
|
||||||
|
{{ date_format(new DateTime($dns->updated_at), 'jS M y g:i a') }}
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="{{ route('dns.index') }}"
|
||||||
|
class="btn btn-success btn-sm mx-2">
|
||||||
|
Go back
|
||||||
|
</a>
|
||||||
|
<a href="{{ route('dns.edit', $dns->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