@php $gtmIds = \App\Models\GoogleTag::query() ->pluck('tag_id') ->map( fn ($id) => trim((string) $id) ) ->filter( fn ($id) => str_starts_with( strtoupper($id), 'GTM-' ) ) ->values(); @endphp @foreach($gtmIds as $gtmId) @endforeach