Added Zones, authorisation on edits, validation enhancements

This commit is contained in:
Deon George
2021-06-18 23:01:41 +10:00
parent 491d3d55c3
commit 416e79164e
14 changed files with 511 additions and 107 deletions

View File

@@ -25,7 +25,7 @@
<table class="table table-sm">
<thead>
<tr>
<th>Domain</th>
<th class="w-75">Domain</th>
<th>Result</th>
</tr>
</thead>
@@ -41,6 +41,52 @@
</table>
</td>
</tr>
<tr>
<td>System</td>
<td>
<table class="table table-sm">
<thead>
<tr>
<th class="w-75">System</th>
<th>Result</th>
</tr>
</thead>
<tbody>
@foreach (\App\Models\System::orderBy('name')->get() as $o)
<tr>
<td>{{ $o->name }}</td>
<td>@can('admin',$o)YES @else NO @endcan</td>
</tr>
@endforeach
</tbody>
</table>
</td>
</tr>
<tr>
<td>Zone</td>
<td>
<table class="table table-sm">
<thead>
<tr>
<th class="w-75">Zone</th>
<th>Result</th>
</tr>
</thead>
<tbody>
@foreach (\App\Models\Zone::orderBy('zone_id')->get() as $o)
<tr>
<td>{{ $o->zone_id }}</td>
<td>@can('admin',$o)YES @else NO @endcan</td>
</tr>
@endforeach
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
@endsection