@extends($activeTemplate . 'layouts.master') @section('content')
@if ($compareProducts->count()) @foreach ($compareProducts as $compareProduct) @endforeach

{{ __($pageTitle) }}

{{ $compareProducts->count() }} {{ Str::plural('product', $compareProducts->count()) }} @lang('selected')
@csrf
@csrf
img
{{ __($compareProduct->name) }}
@php echo $compareProduct->formattedPrice() @endphp
@if (gs('product_review'))
@php echo displayRating($compareProduct->avg_rating) @endphp

@lang("Based on $compareProduct->total_review reviews.")

@endif
@foreach ($specificationTemplate->specifications ?? [] as $groupSpecification) @for ($i = 0; $i < $compareProducts->count(); $i++) @endfor @foreach ($groupSpecification['attributes'] ?? [] as $singleAttribute) @foreach ($compareProducts as $compareProduct) @endforeach @endforeach
{{ __($groupSpecification['group_name']) }}
{{ $singleAttribute }} {{ collect($compareProduct->specification)->where('key', $singleAttribute)?->first()->value ?? '---' }}
@endforeach @else
image
@lang('No Product Selected')

@lang('Please select at least two products to begin the comparison.')

@endif
@endsection @push('script') @endpush @push('style') @endpush