@extends('frontend.layouts.app') @section('content')
{{ translate('Compare Products')}}
{{ translate('Reset Compare List')}}
@if(Session::has('compare')) @if(count(Session::get('compare')) > 0)
@foreach (Session::get('compare') as $key => $item) @php $product = \App\Models\Product::find($item); @endphp
{{ translate('Image')}}
{{ translate('Product Image') }}
{{ translate('Price')}}
@if(home_base_price($product) != home_discounted_base_price($product)) {{ home_base_price($product) }} @endif {{ home_discounted_base_price($product) }}
{{ translate('Category')}}
@if (\App\Models\Product::find($item)->category != null) {{ \App\Models\Product::find($item)->category->getTranslation('name') }} @endif
{{ translate('Brand')}}
@if (\App\Models\Product::find($item)->brand != null) {{ \App\Models\Product::find($item)->brand->getTranslation('name') }} @endif
@endforeach
@endif @else

{{ translate('Your comparison list is empty')}}

@endif
@endsection