{{-- Inline style to set the HTML background color based on our theme in app.css --}} @if (app('system_settings')) {{ $metaTitle ?? app('system_settings')->fields['name'] }} @if (!empty(app('system_settings')->fields['favicon'])) @elseif (!empty(app('system_settings')->fields['logo_light'])) @endif @if (!empty($ogImage)) @elseif (!empty(app('system_settings')->fields['banner'])) @endif @if (!empty($twitterImage)) @elseif (!empty(app('system_settings')->fields['banner'])) @endif @endif @routes @viteReactRefresh @vite(['resources/js/app.tsx']) @inertiaHead @inertia {{-- Inject Global Style AFTER app styles so it wins in the cascade --}} @php($globalStyle = app('system_settings')->fields['global_style'] ?? '') @if ($globalStyle) @endif