@role('admin') // @if(Auth::check() && Auth::user()->hasRole('admin')) // user has admin role@endrole@permission('edit.articles') // @if(Auth::check() && Auth::user()->hasPermission('edit.articles')) // user has edit articles permissison@endpermission@level(2) // @if(Auth::check() && Auth::user()->level() >= 2) // user has level 2 or higher@endlevel@allowed('edit', $article) // @if(Auth::check() && Auth::user()->allowed('edit', $article)) // show edit button@endallowed@role('admin|moderator', true)// @if(Auth::check() && Auth::user()->hasRole('admin|moderator', true)) // user has admin and moderator role@else // something else@endrole