@extends('layouts.app') @section('title', 'Customer Products') @section('css') @endsection @section('content')
@if(isset($products)) @if($products->isEmpty())
❌ No products found
@else

Search results for: "{{ request('q') }}"
({{ $products->total() }} products found)

@foreach($products as $p)
Product
{{ $p->title }}
$ {{ number_format($p->price, 2) }} @if(isset($p->shelf_number)) Shelf: {{ str_replace(['["', '"]'], '', $p->shelf_number) }} @else Shelf: - @endif
{{ str_replace('_',' ',ucfirst($p->itemcondition)) }}
View Product
@endforeach
{{ $products->appends(request()->query())->links() }}
@endif @endif @endsection @section('javascript') @endsection