@extends('layouts.app') @section('content') @php $images = []; if (!empty($product->image)) { $decoded = json_decode($product->image, true); if (is_array($decoded)) { $images = $decoded; } else { $images = [$product->image]; } } else { $images = ['default-placeholder.png']; } $mainImgSrc = str_starts_with($images[0], 'http') ? $images[0] : asset('assets/images/product/' . $images[0]); @endphp
Arjoni / Engagement Rings / {{ $product->name }}
SKU: {{ $product->sku ?? 'N/A' }}
★★★★★ Leave a Review

{{ $product->name }}

{{ $product->color ?? 'F' }} Color • {{ $product->clarity ?? 'VS2' }} Clarity • {{ $product->certification ?? 'IGI Certified' }}
$ {{ $product->price }} USD
0% APR or as low as $94/mo with affirm. See if you qualify
Metal: {{ current(array_filter(array_map('trim', explode(',', $product->metal ?? '14K Yellow Gold')))) }}
@php $variants = []; if (!empty($product->master_sku)) { $variants = App\Models\Product::where('master_sku', $product->master_sku)->get(); } else { $variants = collect([$product]); } $displayedMetals = []; @endphp @foreach($variants as $variant) @php $metal = current(array_filter(array_map('trim', explode(',', $variant->metal ?? '14K Yellow Gold')))); if(in_array($metal, $displayedMetals)) continue; $displayedMetals[] = $metal; $mClass = 'yellow-gold'; $mLabel = 'YG'; $metalLower = strtolower($metal); if(str_contains($metalLower, 'white')) { $mClass = 'white-gold'; $mLabel = 'WG'; } if(str_contains($metalLower, 'rose')) { $mClass = 'rose-gold'; $mLabel = 'RG'; } if(str_contains($metalLower, 'platinum') || str_contains($metalLower, 'pt')) { $mClass = 'platinum'; $mLabel = 'PL'; } if(preg_match('/(\d+k)/i', $metal, $matches)) { $mLabel = strtoupper($matches[1]); } $targetVariantForMetal = $variants->filter(function($v) use ($metal) { $vMetal = current(array_filter(array_map('trim', explode(',', $v->metal ?? '14K Yellow Gold')))); return $vMetal == $metal; })->where('total_carat', $product->total_carat)->first() ?? $variant; @endphp
{{ $mLabel }}
@endforeach
Carat Weight: {{ $product->total_carat ?? '' }} CT
@php $displayedCarats = []; @endphp @foreach($variants as $v) @php $c = $v->total_carat; if(empty($c) || in_array($c, $displayedCarats)) continue; $displayedCarats[] = $c; $targetVariantForCarat = $variants->filter(function($vr) use ($c, $product) { $vrMetal = current(array_filter(array_map('trim', explode(',', $vr->metal ?? '14K Yellow Gold')))); $pMetal = current(array_filter(array_map('trim', explode(',', $product->metal ?? '14K Yellow Gold')))); return $vrMetal == $pMetal && $vr->total_carat == $c; })->first() ?? $v; @endphp @endforeach
Quality: {{ $product->color ?? 'F' }}-{{ $product->clarity ?? 'VS2' }}
U.S. Ring Size
Size Guide
@csrf
Order now to ship by: Mon, Aug 17 Consult with a Personal Shopper
Description +
{{ $product->description ?? 'Discover the perfect symbol of your love with this stunning ring. Crafted with exquisite diamonds that shine brilliantly, this ring is available in a variety of metal options.' }}
Delivery & Returns +
Free shipping and returns on all orders within the US. 30-day money back guarantee.
Style Details +
Carat: {{ $product->total_carat ?? 'N/A' }}
Metal Purity: {{ $product->metal_purity ?? 'N/A' }}
@endsection