@extends('frontend.layout.template') @section('content')
@php $compare = session()->get('comparelist'); @endphp @if(!empty($compare))

COMPARING {{count($compare)}} PRODUCTS

@foreach($compare as $item) @php $product = App\Models\Product::find($item['product_id']); @endphp
@if($product->number_of_stock>0)
In Stock
@else
Stock Out
@endif

{{$item['name']}}

₹{{$item['discount']}} ₹{{$item['price']}}
DESCRIPTIONS
{{strip_tags($product->description)}}
Features
{{strip_tags($product->key_features)}}
Specification
{{strip_tags($product->specification)}}
@endforeach
@else

Compare Products

No products were added to the compare list

CONTINUE SHOPPING
@endif
@endsection