@php $favourites = Auth::check() ? Auth::user()->favorite_tools : null; @endphp @if ($favourites && $favourites->count() > 0)