@php $siteName = \App\Models\Setting::where('key', 'store_name')->value('value') ?? config('app.name', 'DigiShop'); $appUrl = url('/'); $schemaJson = json_encode([ '@context' => 'https://schema.org', '@type' => 'WebSite', 'name' => $siteName, 'url' => $appUrl, 'potentialAction' => [ '@type' => 'SearchAction', 'target' => $appUrl . '/?q={search_term_string}', 'query-input' => 'required name=search_term_string', ], ], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); @endphp