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)
|
||||||
|
@if($loop->last)
|
||||||
|
{{$label->label}}
|
||||||
|
@else
|
||||||
|
{{$label->label}},
|
||||||
|
@endif
|
||||||
|
@endforeach</code>
|
||||||
|
</div>
|
||||||
|
<div class="col-12 col-md-6 text-md-end">
|
||||||
|
<h6 class="text-muted pe-lg-4">{{$dns->id }}</h6>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 col-lg-6">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-borderless text-nowrap">
|
<table class="table table-borderless text-nowrap">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Type</td>
|
<td class="px-2 py-2 font-bold text-muted">Type</td>
|
||||||
<td>{{ $dns->dns_type }}</td>
|
<td>{{ $dns->dns_type }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Name</td>
|
<td class="px-2 py-2 font-bold text-muted">Name</td>
|
||||||
<td>{{ $dns->hostname }}</td>
|
<td>{{ $dns->hostname }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Address</td>
|
<td class="px-2 py-2 font-bold text-muted">Address</td>
|
||||||
<td>{{ $dns->address }}</td>
|
<td><code>{{ $dns->address }}</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Server</td>
|
<td class="px-2 py-2 font-bold text-muted">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>
|
<td>
|
||||||
@if(!is_null($dns->created_at))
|
@if(isset($dns->server_id))
|
||||||
{{ date_format(new DateTime($dns->created_at), 'jS F Y') }}
|
<a href="{{route('servers.show', $dns->server_id )}}"></a>{{ $dns->server_id }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="px-4 py-2 font-bold">Last updated</td>
|
<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>
|
<td>
|
||||||
@if(!is_null($dns->updated_at))
|
@if(!is_null($dns->updated_at))
|
||||||
{{ date_format(new DateTime($dns->updated_at), 'jS F Y') }}
|
{{ date_format(new DateTime($dns->updated_at), 'jS M y g:i a') }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</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