@extends('layouts.app') @section('content') {{-- UNIFIED REUSABLE PAGE HEADER --}} @include('partials.page-header', [ 'title' => $title, 'subtitle' => $applyPreferences ? 'Explore compatible profiles based on your preferences.' : 'Search across verified members, location, profession and interests.', ]) {{-- UNIFIED FILTER BAR CARD --}}
@if (!empty($filters['q'])) @endif
@error('max_age')

{{ $message }}

@enderror
@if ($applyPreferences) Edit partner preferences → @endif
{{-- UNIFIED PROFILE GRID --}}
@forelse ($results as $person) @include('partials.profile-card', [ 'person' => $person, 'connectionStates' => $connectionStates ?? [], 'favoriteIds' => $favoriteIds ?? [], ]) @empty
@include('partials.empty-state', [ 'iconSvg' => '', 'title' => __('nav.empty_profiles'), 'description' => 'Try adjusting your filters or expanding age and location to find more matching profiles.', 'actionUrl' => route('discover'), 'actionText' => 'Reset all filters', ])
@endforelse
@if ($results->hasPages())
{{ $results->links('partials.pagination') }}
@endif @endsection