@php $companyProfile = \App\Models\CompanyProfile::first(); $faviconUrl = asset('assets/images/favicon.png'); if ($companyProfile && $companyProfile->company_favicon_path) { $path = $companyProfile->company_favicon_path; if (\Illuminate\Support\Facades\Storage::disk('public')->exists($path)) { // Use a relative /storage URL so it works regardless of APP_URL $faviconUrl = asset('storage/' . ltrim($path, '/\\')); } } @endphp @vite(['resources/css/app.css', 'resources/js/index.jsx'])