{{-- 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 ?? '—'; $thumb = $product?->getThumbnailImage() ?: null; @endphp
  • @if ($thumb) {{ $name }} @endif

    {{ $name }}

    {{ $line->unitPrice?->formatted() }}

    @csrf @method('PATCH')

    {{ $line->subTotal?->formatted() }}

    @csrf @method('DELETE')