{{-- ─── Hero / Search Bar ──────────────────────────────────────────────────── --}}

@if($query) Search Results @else Search TD Partitions @endif

Search products, blog articles, service areas, accessories, and more.

@if($query)

@if($total > 0) Found {{ $total }} result{{ $total === 1 ? '' : 's' }} for “{{ $query }}” @else No results found for “{{ $query }}” @endif

@endif
{{-- ─── Results ─────────────────────────────────────────────────────────────── --}}
@if(!$query) {{-- Idle state --}}

What are you looking for?

Try searching for a material, layout type, city, or topic.

@foreach(['Powder Coated','Overhead Braced','Ceiling Hung','PayPal','Accessories','FAQ','Contact'] as $hint) {{ $hint }} @endforeach
@elseif($total === 0) {{-- No results --}}

No results for “{{ $query }}”

Try a different keyword, or browse using the links below.

@else {{-- Results list --}} @php $grouped = $results->groupBy('type'); $typeOrder = ['Product','Blog','Service Area','Accessory','Page']; @endphp @foreach($typeOrder as $type) @if($grouped->has($type))
@if($type === 'Product') @elseif($type === 'Blog') @elseif($type === 'Service Area') @elseif($type === 'Accessory') @else @endif

{{ $type }}s

{{ $grouped[$type]->count() }}
@endif @endforeach @endif
{{-- ─── Styles ─────────────────────────────────────────────────────────────── --}}