@extends('layouts.app') @section('title', 'Price Comparison') @section('content')
Compare prices from different suppliers
{{ $searchResults->count() }} products found from {{ $searchResults->pluck('supplier_id')->unique()->count() }} suppliers
| Product | Supplier | Price | Stock | Rating | Action |
|---|---|---|---|---|---|
|
@if($product->image_url)
📦
@endif
{{ Str::limit($product->name, 40) }}
SKU: {{ $product->sku }} |
{{ $product->supplier?->company_name }} | R {{ number_format($product->price, 2) }} @if($product->price == $lowestPrice) Lowest Price @endif | @if($product->stock_quantity > 10) In Stock @elseif($product->stock_quantity > 0) Low Stock @else Out of Stock @endif |
★
{{ number_format($product->rating, 1) }}
|
View |
Try searching with different keywords