@php $appName = \App\Models\Setting::get('app_name') ?? config('app.name') ?? 'Matematika Nusantara'; $appFavicon = \App\Models\Setting::get('app_favicon'); $appLogo = \App\Models\Setting::get('app_logo'); $appLogoUrl = $appLogo ? (str_starts_with($appLogo, 'http') ? $appLogo : (str_starts_with($appLogo, 'assets/') ? asset($appLogo) : asset('storage-serve/' . ltrim($appLogo, '/')))) : asset('assets/images/logo.png'); @endphp {{ $appName }} @php $colorCssPath = public_path('css/color-variables.css'); $colorCssVersion = file_exists($colorCssPath) ? filemtime($colorCssPath) : '1'; @endphp @php $isProduction = config('services.midtrans.is_production', false); $clientKey = config('services.midtrans.client_key'); $snapUrl = $isProduction ? 'https://app.midtrans.com/snap/snap.js' : 'https://app.sandbox.midtrans.com/snap/snap.js'; @endphp @if($clientKey) @endif @routes @viteReactRefresh @vite(['resources/css/app.css', 'resources/js/app.jsx']) @inertiaHead @php($btnTheme = \App\Models\Setting::get('button_theme', '1')) @inertia