@include('frontend.partials.head') @php $gtm_id = null; $information = \App\Models\Information::first(); if(isset($information) && !empty($information->tracking_code)) { // Find GTM ID dynamically from the tracking_code script if(preg_match('/GTM-[A-Z0-9]+/', $information->tracking_code, $matches)) { $gtm_id = $matches[0]; } } @endphp @if($gtm_id) @endif @include('frontend.partials.header') @yield('content') @include('frontend.partials.footer') @stack('js')