@php $initialVariant = $product->variants->first(); @endphp

{{ $product->title }}

Sold by: {{ @$product->wholesalerProfile->store_title }}


PKR

| Stock:


{!! $product->description !!}
{!! $product->specifications !!}
{!! $product->dispute_description !!}
{{--
--}} {{--
--}} {{--

--}} {{-- Store Best Sellers--}} {{--

--}} {{-- @foreach( \App\Models\Product::where('wholesaler_profile_id', $product->wholesaler_profile_id)->where('id', '!=', $product->id)->with(['variants' => function ($q) {--}} {{-- $q->orderBy('id'); // or any logic to get primary variant--}} {{-- }])->take(8)->get() as $similarProduct)--}} {{-- @php--}} {{-- $variant = $similarProduct->variants->first();--}} {{-- @endphp--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{-- {{ $variant->product->title }}--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{--
--}}

Store Best Sellers

@php $similarProducts = \App\Models\Product::where('wholesaler_profile_id', $product->wholesaler_profile_id) ->where('id', '!=', $product->id) ->with(['variants' => fn($q) => $q->orderBy('id')]) ->take(8) ->active() ->get() @endphp @if(count($similarProducts) > 0) @foreach( $similarProducts as $similarProduct) @php $variant = $similarProduct->variants()->active()->first(); @endphp @if(!empty($variant->id))
{{ $similarProduct->title }}
{{ Str::limit($similarProduct->title, 35) }}

{{ $variant->getAttributeSummary() }}

@endif @endforeach @endif