2021-06-17 14:08:30 +00:00
|
|
|
@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>
|
2021-11-26 11:09:55 +00:00
|
|
|
<table class="table table-sm" id="domains">
|
2021-06-17 14:08:30 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-06-18 13:01:41 +00:00
|
|
|
<th class="w-75">Domain</th>
|
2021-06-17 14:08:30 +00:00
|
|
|
<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>
|
2021-06-18 13:01:41 +00:00
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>System</td>
|
|
|
|
<td>
|
2021-11-26 11:09:55 +00:00
|
|
|
<table class="table table-sm" id="systems">
|
2021-06-18 13:01:41 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="w-75">System</th>
|
|
|
|
<th>Result</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2021-11-26 11:09:55 +00:00
|
|
|
@foreach (\App\Models\System::orderBy('name')->with(['users'])->get() as $o)
|
2021-06-18 13:01:41 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{ $o->name }}</td>
|
2021-11-26 11:09:55 +00:00
|
|
|
<td>@can('update',$o)YES @else NO @endcan</td>
|
2021-06-18 13:01:41 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Zone</td>
|
|
|
|
<td>
|
2021-11-26 11:09:55 +00:00
|
|
|
<table class="table table-sm" id="zones">
|
2021-06-18 13:01:41 +00:00
|
|
|
<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>
|
2021-06-17 14:08:30 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@endsection
|
2021-11-26 11:09:55 +00:00
|
|
|
|
|
|
|
@section('page-css')
|
|
|
|
@css('datatables')
|
|
|
|
@append
|
|
|
|
@section('page-scripts')
|
|
|
|
@js('datatables')
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#systems').DataTable({
|
|
|
|
paging: true,
|
|
|
|
pageLength: 25,
|
|
|
|
searching: true,
|
|
|
|
order: [],
|
|
|
|
conditionalPaging: {
|
|
|
|
style: 'fade',
|
|
|
|
speed: 500
|
|
|
|
},
|
|
|
|
language: {
|
|
|
|
paginate: {
|
|
|
|
previous: '<<',
|
|
|
|
next: '>>'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|