{{-- --}} @php function getFaviconPath($size, $restaurant) { $fileName = match($size) { '180' => 'apple-touch-icon.png', '192' => 'android-chrome-192x192.png', '512' => 'android-chrome-512x512.png', '16' => 'favicon-16x16.png', '32' => 'favicon-32x32.png', 'ico' => 'favicon.ico' }; $restaurantPath = "user-uploads/favicons/restaurant/{$restaurant->hash}/{$fileName}"; $defaultPath = "user-uploads/favicons/super-admin/{$fileName}"; return File::exists(public_path($restaurantPath)) ? asset($restaurantPath) : asset($defaultPath); } @endphp @if ($restaurant->meta_keyword) @endif