@props(['product']) @php($productUrl = route('storefront.product.show', $product->slug))
@if ($product->card_tag || $product->discount_percent) @if ($product->card_tag) {{ $product->card_tag }} @endif @if ($product->discount_percent) -{{ $product->discount_percent }}% @endif @endif {{ $product->name }} {{-- Outside the card link, because a button cannot sit inside a link. --}}
@guest @elseif (isset($wishlistProductIds[$product->id])) @else
@csrf
@endguest
@if (! $product->is_available) Out of stock @elseif ($product->variants->isNotEmpty()) {{-- A size or colour has to be chosen first, and only the product page offers that. --}}
Buy Now
@else
@csrf
@endif