@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 @foreach (\App\Models\Domain::orderBy('name')->get() as $o) @endforeach
Domain Result
{{ $o->name }} @can('admin',$o)YES @else NO @endcan
System @foreach (\App\Models\System::orderBy('name')->get() as $o) @endforeach
System Result
{{ $o->name }} @can('admin',$o)YES @else NO @endcan
Zone @foreach (\App\Models\Zone::orderBy('zone_id')->get() as $o) @endforeach
Zone Result
{{ $o->zone_id }} @can('admin',$o)YES @else NO @endcan
@endsection