@extends('layout.app') @section('content')
{{-- ===== LEFT: Image Slider ===== --}}
{{-- Thumbnails --}}
{{-- Main product image as first thumb --}}
{{ $product->title }}
{{-- Color variant images as thumbs --}} @foreach($groupedVariants as $code => $v)
{{ $v['color_name'] }}
@endforeach
{{-- Big Slider --}}
{{-- Main image --}}
{{ $product->title }}
{{-- Color variant images --}} @foreach($groupedVariants as $code => $v)
{{ $v['color_name'] }}
@endforeach
{{-- ===== RIGHT: Product Info ===== --}}
{{-- Brand Badge --}} {{ $product->brand ?? 'Official' }} {{-- Title --}}

{{ $product->title }}

{{-- --}} {{-- --}} {{-- --}}
{{-- Description --}}
{!! nl2br(e($product->description)) !!}
{{-- Price --}}
@if($minPrice == $maxPrice) ${{ number_format($minPrice, 2) }} @else ${{ number_format($minPrice, 2) }} – ${{ number_format($maxPrice, 2) }} @endif {{ $product->currency }}
{{-- Variations + Cart --}}
{{-- Color --}}

Color: Select a color

@foreach($groupedVariants as $code => $v) @php $isColorOutOfStock = collect($v['sizes'])->where('in_stock', true)->isEmpty(); @endphp
@endforeach
{{-- Size --}}

Size: Select a size Size Guide

Please select a color first

{{-- Quantity + Buttons --}}

Quantity:

{{-- Qty --}}
{{-- Buy Now --}} {{-- Add to Cart --}}
{{-- Share / Compare --}} {{-- Extra Info --}}
@if(!empty($product->techniques))
Techniques: {{ implode(', ', array_column($product->techniques, 'display_name')) }}
@endif
Category: {{ $product->category->title ?? 'N/A' }}
Free Shipping: Estimated Delivery 5–7 Days
@endsection @push('scripts') @endpush