@props(['product', 'displayText' => false, 'style' => 'link']) @php $isFavorite = auth()->check() && \App\Domain\MarketPlace\Models\Favorite::where('user_id', auth()->id()) ->where('item_id', $product->id) ->exists(); $btnId = 'wishlist-btn-' . $product->id; @endphp @auth @if($style == 'btn')
@else @if($isFavorite) @else @endif @endif @else @if($style == 'btn') @else @endif @endauth @if(isset($flash)) @endif