{{ __('Products Compare') }}

@if ($products->isNotEmpty())

{!! BaseHelper::clean(__('There are :total products to compare', ['total' => '' . $products->count() . ''])) !!}

@foreach($products as $product)
{{ $product->name }}
{!! BaseHelper::clean($product->name) !!}
@if (is_plugin_active('marketplace') && $product->original_product->store->id)

{{ __('Sold by') }}: {{ $product->original_product->store->name }}

@endif
@endforeach
@if (! EcommerceHelper::hideProductPrice() || EcommerceHelper::isCartEnabled())
@foreach($products as $product)
{{ format_price($product->front_sale_price_with_taxes) }} @if ($product->front_sale_price !== $product->price) {{ format_price($product->price_with_taxes) }} {{ get_sale_percentage($product->price, $product->front_sale_price) }} @endif
@endforeach
@endif @if (EcommerceHelper::isReviewEnabled())
@foreach($products as $product)
@if ($product->reviews_count)
({{ $product->reviews_count }})
@else — @endif
@endforeach
@endif
@foreach($products as $product)
{!! BaseHelper::clean($product->description) !!}
@endforeach
@foreach($attributeSets as $attributeSet) @if ($attributeSet->is_comparable)
@foreach($products as $product) @php $attributes = app(\Botble\Ecommerce\Repositories\Interfaces\ProductInterface::class) ->getRelatedProductAttributes($product) ->where('attribute_set_id', $attributeSet->id) ->sortBy('order'); @endphp
@if ($attributes->count()) @if ($attributeSet->display_layout == 'dropdown') {{ $attributes->pluck('title')->implode(', ') }} @elseif ($attributeSet->display_layout == 'text')
@foreach($attributes as $attribute) {{ $attribute->title }} @endforeach
@else
@foreach($attributes as $attribute) @endforeach
@endif @else — @endif
@endforeach
@endif @endforeach @if (EcommerceHelper::isCartEnabled())
@foreach($products as $product) @endforeach
@endif
@else
{{ __('No products in compare list!') }}
{{ __('No products in compare list!') }}

{{ __('Add products to compare by clicking the compare icon on any product.') }}

{{ __('Browse Products') }}
@endif