@php $product = $product ?? null; $kitItems = ($product ?? null)?->kit?->items ?? collect(); $kitRows = $kitItems->map(function ($item) use ($product) { $details = $item->variant ? app(\App\Services\ProductKitService::class)->describe($item->variant, (int) $product->seller_id, $product->id) : ['product_variant_id' => $item->product_variant_id, 'product_title' => 'Unavailable component', 'variant_title' => '', 'store_ids' => [], 'is_eligible' => false, 'unavailable_reason' => 'This component is no longer available.']; return $details + ['quantity' => (int) $item->quantity]; })->values(); @endphp

Kit Contents

Choose 1–30 variants from this seller. Each selling store must carry every component. Prices are entered separately; component inventory is unchanged.

@if (($product ?? null)?->type === 'kit') @endif