Enable default zones for 4d systems

This commit is contained in:
Deon George
2021-08-16 22:26:33 +10:00
parent 111461e515
commit 628293c741
5 changed files with 91 additions and 18 deletions

View File

@@ -15,7 +15,7 @@
</div>
<div class="row">
<div class="col-6">
<div class="col-9">
@if (\App\Models\Zone::count() == 0)
@can('admin',(new \App\Models\Zone))
<p>There are no zones setup, to <a href="{{ url('ftn/zone/addedit') }}">set up your first</a>.</p>
@@ -29,6 +29,7 @@
<th>Domain</th>
<th>Zone</th>
<th>Active</th>
<th>Default</th>
<th>Systems</th>
</tr>
</thead>
@@ -39,6 +40,7 @@
<td>{{ $oo->domain->name }}</td>
<td><a href="{{ url('ftn/zone/addedit',[$oo->id]) }}">{{ $oo->zone_id }}</a></td>
<td>{{ $oo->active ? 'YES' : 'NO' }}</td>
<td>{{ $oo->default ? 'YES' : 'NO' }}</td>
<td>{{ $oo->addresses->count() }}</td>
</tr>
@endforeach