Added System, fixed something with Domain, added 403, start of some other items

This commit is contained in:
Deon George
2021-06-18 00:08:30 +10:00
parent 1e7c05cb90
commit 491d3d55c3
17 changed files with 451 additions and 16 deletions

View File

@@ -0,0 +1,46 @@
@extends('layouts.app')
@section('htmlheader_title')
Permissions for {{ auth()->check() ? auth()->user()->name : 'Guest' }}
@endsection
@section('content')
<h2>{{ auth()->check() ? auth()->user()->name : 'Guest' }}</h2>
<table class="table monotable">
<thead>
<tr>
<th>Test</th>
<th>Result</th>
</tr>
</thead>
<tbody>
<tr>
<td>isAdmin</td>
<td>@can('admin')YES @else NO @endcan</td>
</tr>
<tr>
<td>Domains</td>
<td>
<table class="table table-sm">
<thead>
<tr>
<th>Domain</th>
<th>Result</th>
</tr>
</thead>
<tbody>
@foreach (\App\Models\Domain::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>
</tbody>
</table>
@endsection