@extends('frontend.layouts.app') @section('content')
{{ translate('Comparison')}}
@if(Session::has('compare')) @if(count(Session::get('compare')) > 0)
@foreach (Session::get('compare') as $key => $item) @endforeach @foreach (Session::get('compare') as $key => $item) @endforeach @foreach (Session::get('compare') as $key => $item) @endforeach @foreach (Session::get('compare') as $key => $item) @endforeach @foreach (Session::get('compare') as $key => $item) @endforeach @foreach (Session::get('compare') as $key => $item) @endforeach
{{ translate('Name')}} {{ \App\Product::find($item)->name }}
{{ translate('Image')}} Product Image
{{ translate('Price')}}{{ single_price(\App\Product::find($item)->unit_price) }}
{{ translate('Brand')}} @if (\App\Product::find($item)->brand != null) {{ \App\Product::find($item)->brand->name }} @endif
{{ translate('Sub Sub Category')}} @if (\App\Product::find($item)->subsubcategory != null) {{ \App\Product::find($item)->subsubcategory->name }} @endif
@endif @else

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

@endif
@endsection