{{ __('Products') }} | @php $index = 1 @endphp @foreach ($compareProducts['productName'] as $key => $productName)
|
@endforeach
{{ __('Price') }} | @foreach ($compareProducts['price'] as $key => $price){{ $price }} | @endforeach
{{ __('Availability') }} | @foreach ($compareProducts['availability'] as $key => $av){{ $av == true ? __('Available') : __('Not Available') }} | @endforeach
{{ __('Summary') }} | @foreach ($compareProducts['summary'] as $key => $summary){{ $summary }} | @endforeach
{{ __('Rating & Reviews') }} | @foreach ($compareProducts['rating'] as $key => $rating)
@if($rating > 0)
@for($i = 1; $i <= 5; $i++)
@if ($rating >= $i)
@else
@endif
@endfor
@else
{{ __('Not reviewed yet') }}
@endif
|
@endforeach
{{ __('Category') }} | @foreach ($compareProducts['category'] as $key => $category){{ $category }} | @endforeach
{{ __('SKU') }} | @foreach ($compareProducts['sku'] as $key => $sku){{ $sku }} | @endforeach
{{ $key2 }} | @php $cnt++ ; $valuesOrderWise = []; foreach($productIds as $id) { $valuesOrderWise[$id] = $values[$id]; } @endphp @foreach ($valuesOrderWise as $key3 => $val){{ $val }} | @endforeach
{{ __('Brand') }} | @foreach ($compareProducts['brand'] as $key => $brand){{ $brand }} | @endforeach
{{ __('Actions') }} | @php $userId = isset(Auth::user()->id) ? Auth::user()->id : null @endphp @foreach ($compareProducts['productName'] as $key => $productName)
@php
$wishlisted = false;
if (auth()->user()) {
$wishlisted = $product->isWishlist($key, optional(auth()->user())->id);
}
@endphp
@if (preference('wishlist'))
|
@endforeach