@extends('frontend.layouts.master') @section('title', $category->name) @section('styles') @endsection @section('scripts') @endsection @section('content') @php $header_image = \App\Models\Site\Header\Image::inRandomOrder()->first(); @endphp

Compare {{ $category->name }}

Our complete database.

@foreach($attributes as $attribute) @endforeach @foreach($products->sortBy('name') as $product) @foreach($attributes as $attribute) @endforeach @endforeach
Board Name{{ $attribute->name }}
{{ $product->name }} @php $value = null; $value = $product->values->where('attribute_id', $attribute->id)->first(); @endphp @if($attribute->type_id == '1' || $attribute->type_id == '2' || $attribute->type_id == '5') @if(!empty($value)) {{ $attribute->unit_before }}{{ $value->value }}{{ $attribute->unit_after }} @endif @elseif($attribute->type_id == '3') @php $single_select_option = null; if(isset($value)) { $single_select_option = $options->where('id', $value->value)->first(); } @endphp @if(isset($single_select_option)){{ $attribute->unit_before }}{{ $single_select_option->name }}{{ $attribute->unit_after }}@endif @elseif($attribute->type_id == '4') @php $multiple_select_options = null; if(isset($value)) { $multiple_select_options = explode(',', $value->value); } @endphp @foreach($multiple_select_options as $option) @php $value = $options->where('id', $option)->first(); @endphp {{ $value->name }}@if($loop->remaining > 0),@endif @endforeach @elseif($attribute->type_id == '6') @elseif($attribute->type_id == '7') @endif Show More!
@endsection