@extends('layouts.app')
@section('htmlheader_title')
Permissions for {{ auth()->check() ? auth()->user()->name : 'Guest' }}
@endsection
@section('content')
{{ auth()->check() ? auth()->user()->name : 'Guest' }}
Test |
Result |
isAdmin |
@can('admin')YES @else NO @endcan |
Domains |
Domain |
Result |
@foreach (\App\Models\Domain::orderBy('name')->get() as $o)
{{ $o->name }} |
@can('admin',$o)YES @else NO @endcan |
@endforeach
|
System |
System |
Result |
@foreach (\App\Models\System::orderBy('name')->with(['users'])->get() as $o)
{{ $o->name }} |
@can('update',$o)YES @else NO @endcan |
@endforeach
|
Zone |
Zone |
Result |
@foreach (\App\Models\Zone::orderBy('zone_id')->get() as $o)
{{ $o->zone_id }} |
@can('admin',$o)YES @else NO @endcan |
@endforeach
|
@endsection
@section('page-css')
@css('datatables')
@append
@section('page-scripts')
@js('datatables')
@append