@extends('master.front') @section('title') {{__('Compare')}} @endsection @section('meta') @endsection @section('content')

{{__('เปรียบเทียบข้อมูลสินค้า')}}

@if(count($items) > 0) @foreach ($items as $keys => $item) @endforeach @else {{__('Product not found')}} @endif
{{--
@if(count($items) > 0) @foreach ($items as $keys => $item) @endforeach @if(count($items) != 1) @foreach ($items as $item) @endforeach @php // dd($sname,$sdesc) @endphp @foreach ($sname as $key => $name) @endforeach @else @endforeach @foreach ($sname as $key => $name) @if($items[0]->specification_name) @endif @endforeach @endif @foreach ($items as $item) @if ($item->item_type != 'affiliate') @endif @endforeach @else @endif
{{__('Summary')}}{{$item->name}}
{{$items[0]->name}}

{{__('Brand')}} : {{$items[0]->brand->name}} , {{__('Price')}} : {{PriceHelper::grandCurrencyPrice($items[0])}}


{{$items[1]->name}}

{{__('Brand')}} : {{$items[1]->brand->name}} , {{__('Price')}} : {{PriceHelper::grandCurrencyPrice($items[1])}}

Image{{$item->name}} @if ($item->item_type != 'affiliate') {{__('Add to Cart')}} @endif
{{$name}} @if($items[0]->specification_name) @if(in_array($name,json_decode($items[0]->specification_name,true))) @if (isset($sdesc[0][$key])) {{$sdesc[0][$key]}} @endif @endif @endif @if($items[1]->specification_name) @if(in_array($name,json_decode($items[1]->specification_name,true))) @if (isset($sdesc[1][$key])) {{$sdesc[1][$key]}} @endif @endif @endif

{{$items[0]->name}}

{{__('Brand')}} : {{$items[0]->brand->name}} , {{__('Price')}} : {{PriceHelper::grandCurrencyPrice($items[0])}}

@foreach ($items as $item)
Image{{$item->name}} @if ($item->item_type != 'affiliate') {{__('Add to Cart')}} @endif
{{$name}} @if(in_array($name,json_decode($items[0]->specification_name,true))) @if (isset($sdesc[0][$key])) {{$sdesc[0][$key]}} @endif @endif
{{__('Add to Cart')}}
{{__('Product not found')}}
--}} @endsection