{{-- One cart line. $line is a Lunar\Models\CartLine (iteration var set by @each in cart-body). The two forms post through bbk-cart-controller (fetch + method spoofing) and the response re-renders cart-body. --}} @php $variant = $line->purchasable; $product = $variant?->product; $name = $product?->translateAttribute('name') ?? $variant?->sku ?? '—'; // The variant's own image (falls back to the product's thumbnail // internally — see ProductVariant::getThumbnail()) — the specific option // the shopper picked, not just the product in general. $thumb = $variant?->getThumbnailImage() ?: null; $variantLabel = $variant?->getOption(); @endphp
{{ $name }}
@if ($variantLabel){{ $variantLabel }}
@endif{{ $line->unitPrice?->formatted() }}
{{ $line->subTotal?->formatted() }}