{{-- Heart toggle for one product. A real form, so it works without JS; the `wishlist` Stimulus controller turns the submit into a fetch and flips aria-pressed, which the CSS (group-aria-pressed) uses to swap the icons. [data-wishlist-product] is the island target: the heart state will come from the islands request. aria-pressed is still rendered server-side for now. Usage: --}} @props(['productId']) @php $active = app(\Modules\Core\Wishlist\Services\WishlistService::class)->has((int) $productId); $addLabel = __('storefront.wishlist.add'); $removeLabel = __('storefront.wishlist.remove'); @endphp
@csrf