$user->hasPanelAccess()

Checks if the user is allowed to acces the panel based on its role.

Example

<?php if($user = $site->user() and $user->hasPanelAccess()): ?>
This super secret content is only visible for users with panel access
<?php endif ?>