{{ __('Find a care provider') }}

{{ __('Search for professional care providers who understand neurodivergence. Filter by type of support, format, or specialty to find the right fit for you.') }}
@php $activeSupForms = request('support_forms', []); $activeSupportFor = request('support_for', []); $activeFormats = request('service_formats', []); $activeGroups = request('target_groups', []); $activeTopics = request('focus_topics', []); $activeNeurodivergent = $activeNeurodivergent ?? false; $activeQ = request('q', ''); $activeGenders = $activeGenders ?? []; $hasFilters = $activeQ || $activeSupForms || $activeSupportFor || $activeFormats || $activeGroups || $activeTopics || $activeNeurodivergent || $activeGenders; $filterCount = count(array_merge($activeSupForms, $activeSupportFor, $activeFormats, $activeGroups, $activeTopics, $activeGenders)) + ($activeQ ? 1 : 0) + ($activeNeurodivergent ? 1 : 0); @endphp
{{-- ── Mobile: result count (filter button is in the bottombar) ──── --}}

{{ trans_choice(':count result|:count results', $proProfiles->total(), ['count' => $proProfiles->total()]) }}

{{-- ── Filter sidebar ──────────────────────────────────────────── --}} {{-- ── Mobile filter drawer ─────────────────────────────────── --}}

{{ __('Filters') }}

@auth @endauth
@auth
{{-- Saved searches list in mobile drawer --}}

{{ __('Saved searches') }}

@endauth {{-- Clone the form inside the drawer for mobile --}}
{{-- Neurodivergent filter --}} {{-- Gender filter --}}

{{ __('Gender') }}

@foreach (['male' => 'Male', 'female' => 'Female', 'other' => 'Other'] as $value => $label) @endforeach
@foreach ($taxonomy as $cat) @php $catSlugs = collect($cat['subcats']) ->flatMap(fn($s) => array_keys($s['tags'])) ->values()->all(); $catCount = count(array_intersect($catSlugs, $activeSupForms)); @endphp
{{ $cat['emoji'] }} {{ __($cat['label']) }} @if ($catCount) {{ $catCount }} @endif
@foreach ($cat['subcats'] as $subcat)

{{ __($subcat['label']) }}

@foreach ($subcat['tags'] as $slug => $label) @endforeach
@endforeach
@endforeach @foreach ([ ['name' => 'support_for[]', 'label' => 'Expertise', 'opts' => $supportForOpts, 'active' => $activeSupportFor], ['name' => 'service_formats[]','label' => 'Service format', 'opts' => $serviceFormats, 'active' => $activeFormats], ['name' => 'target_groups[]', 'label' => 'Target group', 'opts' => $targetGroups, 'active' => $activeGroups], ['name' => 'focus_topics[]', 'label' => 'Focus topics', 'opts' => $focusTopics, 'active' => $activeTopics], ] as $section)

{{ __($section['label']) }}

@foreach ($section['opts'] as $key => $lbl) @endforeach
@endforeach {{-- Extra ruimte onderaan zodat de laatste items niet achter de bottombar vallen --}}
{{-- ── Results area ──────────────────────────────────────────── --}}
{{-- Active filter chips + result count --}}
@if ($activeQ) "{{ $activeQ }}" × @endif @php $genderLabels = ['male' => 'Male', 'female' => 'Female', 'other' => 'Other']; @endphp @foreach ($activeGenders as $g) @php $params = array_merge(request()->except('page'), ['genders' => array_values(array_diff($activeGenders, [$g]))]); $removeUrl = route('pro.index', array_filter($params, fn($v) => $v !== null && $v !== [] && $v !== '')); @endphp {{ __($genderLabels[$g] ?? $g) }} × @endforeach @foreach ($activeSupForms as $slug) @if ($label = $tagLabels[$slug] ?? null) @php $params = array_merge(request()->except('page'), ['support_forms' => array_values(array_diff($activeSupForms, [$slug]))]); $removeUrl = route('pro.index', array_filter($params, fn($v) => $v !== null && $v !== [] && $v !== '')); @endphp {{ __($label) }} × @endif @endforeach @foreach ($activeSupportFor as $key) @if ($lbl = $supportForOpts[$key] ?? null) @php $params = array_merge(request()->except('page'), ['support_for' => array_values(array_diff($activeSupportFor, [$key]))]); $removeUrl = route('pro.index', array_filter($params, fn($v) => $v !== null && $v !== [] && $v !== '')); @endphp {{ __($lbl) }} × @endif @endforeach @php $chipDims = [ [$activeFormats, $serviceFormats, 'service_formats', 'bg-green-100 dark:bg-green-900/40 border-green-200 dark:border-green-700 text-green-700 dark:text-green-300 hover:bg-green-200'], [$activeGroups, $targetGroups, 'target_groups', 'bg-purple-100 dark:bg-purple-900/40 border-purple-200 dark:border-purple-700 text-purple-700 dark:text-purple-300 hover:bg-purple-200'], [$activeTopics, $focusTopics, 'focus_topics', 'bg-rose-100 dark:bg-rose-900/40 border-rose-200 dark:border-rose-700 text-rose-700 dark:text-rose-300 hover:bg-rose-200'], ]; @endphp @foreach ($chipDims as [$activeSet, $opts, $paramName, $chipClass]) @foreach ($activeSet as $key) @if ($lbl = $opts[$key] ?? null) @php $params = array_merge(request()->except('page'), [$paramName => array_values(array_diff($activeSet, [$key]))]); $removeUrl = route('pro.index', array_filter($params, fn($v) => $v !== null && $v !== [] && $v !== '')); @endphp {{ __($lbl) }} × @endif @endforeach @endforeach
{{-- Results grid --}} @if ($proProfiles->isEmpty())

{{ __('No care providers found') }}

@if ($hasFilters) {{ __('Clear all filters') }} @endif
@else
@foreach ($proProfiles as $proProfile) @php $mainPhoto = $proProfile->user->photos->firstWhere('is_primary', true) ?? $proProfile->user->photos->first(); @endphp @include('pro.partials.card', ['proProfile' => $proProfile, 'mainPhoto' => $mainPhoto]) @endforeach
{{ $proProfiles->links() }}
@endif
@push('bottom-bar-buttons') {{-- Mobile bottombar: filter knop (default) of Annuleren + Toepassen (filterpanel open) --}}
{{-- Default: filter-knop --}} {{-- Filterpanel open: Annuleren + Toepassen --}}
@endpush