@props(['active' => '', 'text' => '', 'hide' => false, 'icon' => false, 'permission' => false]) @if ($permission) @if ($logged_in_user->can($permission)) @if (!$hide) merge(['href' => '#', 'class' => $active]) }}>@if ($icon) @endif{{ strlen($text) ? $text : $slot }} @endif @endif @else @if (!$hide) merge(['href' => '#', 'class' => $active]) }}>@if ($icon) @endif{{ strlen($text) ? $text : $slot }} @endif @endif