{{-- Image --}}
{{-- relative: anchors the wishlist heart to the top right, which is
the main image's corner (thumbnails sit on the left at `lg`,
in a horizontally scrolling row under the image below it). --}}
@foreach($productOptions as $productOption)
@if($productOption['isColor'])
@else
@endif
@endforeach
@php
// Same initial pick as product-form-controller.js's connect()
// (?variant= or the first), so the button doesn't flip on load.
$initialVariant = collect($variantsData)->firstWhere('id', (int) request('variant')) ?? ($variantsData[0] ?? null);
@endphp
@if(!empty($product['custom_fields']))
@endif
{{ __('storefront.product.add_to_cart') }}
{{-- Storefront-owned, not part of the checkout module — the
local stock pre-check in product-form-controller.js stops
an over-limit submit before it ever reaches the module
and reports it here. --}}
{!! $product['description'] !!}
{{-- Stream targets for ProductController::storeReview(): the new
review is prepended to #product-reviews-list, the empty
message and #product-review-section removed, and the thank-you
put in the #product-review-status live region. The list hides
itself while it has no reviews. --}}
@foreach($product['reviews']['items'] ?? [] as $review)
@include('product.partials.review', ['review' => $review])
@endforeach