@php use App\Models\OpenAIGenerator; use Illuminate\Support\Str; @endphp @php $openAIGenerators = OpenAIGenerator::query() ->where('active', true) ->get() ->filter(function ($item) { return !Str::startsWith($item->slug, 'ai_'); }) ->groupBy('filters') ->filter(function ($item, $key) { return $key; }); @endphp