@extends('layouts.buyer') @section('title', 'Saved Searches') @section('buyer-content')
Your Saved Searches
@forelse($savedSearches as $search)
"{{ $search->query }}"
@if($search->filters) @foreach((array)$search->filters as $key => $value) @if($value) {{ ucfirst(str_replace('_', ' ', $key)) }}: {{ is_array($value) ? implode(', ', $value) : $value }} @endif @endforeach @endif
Saved {{ $search->created_at->diffForHumans() }}
Search
@csrf @method('DELETE')
@empty
No Saved Searches

Save your search queries for quick access in the future.

Start Searching
@endforelse @if($savedSearches->hasPages())
{{ $savedSearches->links() }}
@endif
Pro Tip

Save your frequently used searches to quickly find products. When searching for products, click the "Save Search" button to add it here.

@endsection