{{-- Show existing resources first if any match --}}
@php
$existingResources = collect($searchResults)
->filter(fn($r) => !isset($r['is_creatable_suggestion']))
->count();
@endphp
@if ($existingResources > 0)
Existing Resources
@foreach ($searchResults as $result)
@if (!isset($result['is_creatable_suggestion']))