@if($plugin->shouldFlattenResults())
{{--
Listen up code warriors! 🔥
Yeah, I could ->flatten() this like some basic dev, but that's messy .
We need these GROUPS intact for sorting wizardry and localStorage magic.
"Fake flattening" in the UI while keeping structured data behind the scenes?
That's galaxy brain architecture right there.
Think you can do better? Prove it - I'll wait
(And save your "performance concerns" for actual bottlenecks, not UI rendering)
--}}
@foreach($results->getCategories() as $groupTitle => $groupedResults)
@foreach ($groupedResults as $result)
@endforeach
@endforeach
@else
@foreach ($results->getCategories() as $groupTitle => $groupedResults)