@if ($compareProducts->count())
@foreach ($specificationTemplate->specifications ?? [] as $groupSpecification)
@foreach ($groupSpecification['attributes'] ?? [] as $singleAttribute)
| {{ $singleAttribute }} |
@foreach ($compareProducts as $compareProduct)
{{ collect($compareProduct->specification)->where('key', $singleAttribute)?->first()->value ?? '---' }}
|
@endforeach
@endforeach
@endforeach
@else
@lang('No Product Selected')
@lang('Please select at least two products to begin the comparison.')
@endif