# Blade Templates
Three directives are available for use within your Blade templates. What you give as the directive arguments will be directly passed to the corresponding Laratrust function, which checks the user authenticated with the default guard:
@role('admin')
<p>This is visible to users with the admin role. Gets translated to
\Laratrust::hasRole('admin')</p>
@endrole
@permission('manage-admins')
<p>This is visible to users with the given permissions. Gets translated to
\Laratrust::hasPermission('manage-admins'). The @can directive is already taken by core
laravel authorization package, hence the @permission directive instead.</p>
@endpermission
@ability('admin|owner', 'create-post|edit-user')
<p>This is visible to users with the given abilities. Gets translated to
\Laratrust::ability('admin|owner', 'create-post|edit-user')</p>
@endability
The directives accept the same arguments as the checks, e.g. a team or requireAll:
@role(['admin', 'owner'], 'my-awesome-team', true)
<p>This is visible to users with both roles in my-awesome-team.</p>
@endrole
Each directive also has an @else and an @unless form, like Laravel's @if:
@role('admin')
<p>You are an admin.</p>
@elserole('editor')
<p>You are an editor.</p>
@else
<p>You are a reader.</p>
@endrole
@unlesspermission('edit-post')
<p>You can't edit this post.</p>
@endpermission