@php $premiumAuth = new \App\Support\PremiumTheme($activeTheme['slug']); $premiumAuthCss = 'themes/premium/shared/auth.css'; $premiumAuthCssPath = public_path($premiumAuthCss); $premiumAuthCssVersion = null; // Cache-busting is optional: a missing/unreadable CSS file must not stop login rendering. // Keep the asset URL below so an incomplete upload remains visible as a browser 404. try { if (is_file($premiumAuthCssPath) && is_readable($premiumAuthCssPath)) { // The file can disappear between the existence check and the metadata lookup. $premiumAuthCssVersion = @filemtime($premiumAuthCssPath); } } catch (\Throwable $exception) { $premiumAuthCssVersion = null; } $premiumAuthCssUrl = asset($premiumAuthCss); if (is_int($premiumAuthCssVersion)) { $premiumAuthCssUrl .= '?v='.$premiumAuthCssVersion; } @endphp