@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
@endsection