@php $appTitle = \Illuminate\Support\Facades\Cache::get('app.title', config('app.name', 'Laravel Starter Kit')); $logoPath = \Illuminate\Support\Facades\Cache::get('app.logo'); $logoUrl = null; $isSvg = false; if ($logoPath) { $storage = \Illuminate\Support\Facades\Storage::disk('public'); if ($storage->exists($logoPath)) { $logoUrl = $storage->url($logoPath); $isSvg = str_ends_with(strtolower($logoPath), '.svg'); // Add timestamp to prevent caching issues $logoUrl .= '?v=' . $storage->lastModified($logoPath); } } @endphp
@if ($logoUrl)
@if ($isSvg) {{ $appTitle }} @else {{ $appTitle }} @endif
@else
@endif
{{ $appTitle }}