@extends('layouts.app') @section('content')

Search Results

Search query: "{{ $search }}"

@if($products->count() > 0)
@foreach($products as $product)
{{ $product->name }} @if($product->inventory && $product->inventory->quantity > 0) In Stock ({{ $product->inventory->quantity }}) @else Out of Stock @endif
{{ $product->category?->name ?? 'Uncategorized' }}
{{ Str::limit($product->name, 60) }}
@if($product->brand) Brand: {{ $product->brand->name }} @endif

{{ Str::limit($product->description, 80) }}

@if($product->rating && $product->rating > 0)
@for($i = 0; $i < floor($product->rating); $i++) @endfor @if($product->rating % 1 != 0) @endif ({{ number_format($product->rating, 1) }})
@endif

{{ \App\Support\Currency::symbol() }}{{ number_format($product->price, 2) }}

@if($product->cost_price && $product->cost_price < $product->price) {{ \App\Support\Currency::symbol() }}{{ number_format($product->cost_price, 2) }} Save {{ round(((($product->price - $product->cost_price) / $product->price) * 100)) }}% @endif
View Details
@endforeach
{{ $products->appends(request()->query())->links() }}
@else
No products found
No products found

No products match your search for "{{ $search }}"

Back to All Products
@endif
@endsection