@if(app()->environment('production')) @endif @php $config = collect($page['props']['config']); $google_analytics = $config->firstWhere('key', 'google_analytics_tracking_id')['value'] ?? null; $favicon = $config->firstWhere('key', 'favicon')['value'] ?? null; $favicon = $favicon ? '/media/' . $favicon : '/images/favicon.png'; @endphp @if($favicon) @endif @vite(['resources/js/app.js', 'resources/css/app.css']) @inertiaHead @if (!empty($google_analytics)) @endif @php $head_scripts = $config->firstWhere('key', 'head_scripts')['value'] ?? null; $head_styles = $config->firstWhere('key', 'head_styles')['value'] ?? null; $meta_tags = $config->firstWhere('key', 'meta_tags')['value'] ?? null; $body_scripts = $config->firstWhere('key', 'body_scripts')['value'] ?? null; @endphp @if (!empty($meta_tags)) {!! $meta_tags !!} @endif @if (!empty($head_styles)) @if(str_contains($head_styles, ' @endif @endif @if (!empty($head_scripts)) @if(str_contains($head_scripts, ' @endif @endif @inertia @if (!empty($body_scripts)) @if(str_contains($body_scripts, ' @endif @endif