@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 --}}
{{-- 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',
])