@if( !empty( $comparision_group_types ) && count( $comparision_products ) > 1)
@php
$comparision_types = !empty($comparision_group_types->comparision_groups) ? unserialize($comparision_group_types->comparision_groups) : array();
@endphp
@if( count($comparision_types) > 0 )
@lang('Compare with similar items :')
Models
@foreach($comparision_types as $item)
@php
$comp_type_icon = \App\ComparisionGroup::getPhotoNameById($item['photo_id']);
$comp_type_name = \App\ComparisionGroup::getSpecificationTypeById($item['comp_type']);
@endphp
Warning: Undefined variable $comp_type_name in /home/nortrominc/chat.nortrominc.com/resources/themes/theme1/partials/front/comparision-groups.blade.php on line 29
@endforeach
{{-- - Resolution
--}}
{{-- - Screen Type
--}}
{{-- - Display Size
--}}
{{-- - Refresh Rate
--}}
{{-- - Model Year
--}}
{{-- - Tuner Technology
--}}
{{-- - Ethernet Input
--}}
{{-- - USB Input
--}}
{{-- - Scart Input
--}}
@foreach($comparision_products as $product)
-
@if($product->photo)
@php
$image_url = \App\Helpers\Helper::check_image_avatar($product->photo->name, 500);
@endphp

@else

@endif
{{ $product->name }}
@foreach($comparision_types as $item)
@if(count($product->specificationTypes) > 0 )
@foreach( $product->specificationTypes as $specification )
@php $specification_type = 'N/a'; @endphp
@if($specification->id == $item['comp_type'])
@php
$spec_value = !empty($specification->pivot->value) ? $specification->pivot->value : '' ;
$spec_unit = !empty($specification->pivot->unit) ? $specification->pivot->unit : '' ;
$specification_type = $spec_value.' '. $spec_unit;
$specification_type = !empty($specification_type) ? $specification_type : 'N/a';
break;
@endphp
@endif
@endforeach
- {{ $specification_type }}
@else
- @lang('N/a')
@endif
@endforeach
{{-- - $600
--}}
{{-- - 1080p
--}}
{{-- - LED
--}}
{{-- - 47.6 inches
--}}
{{-- - 800Hz
--}}
{{-- - 2015
--}}
{{-- - mpeg4
--}}
{{-- - 1 Side
--}}
{{-- - 3 Port
--}}
{{-- - 1 Rear
--}}
@endforeach
@endif
@endif