@php
    $siteLogoPath = setting('site_logo'); // Fetches 'site_logo' from your settings
    $siteName = setting('site_name', config('app.name', 'Laravel')); // Fetches 'site_name' or defaults
@endphp

<a href="/" {{ $attributes }}>
    @if ($siteLogoPath && Storage::disk('public')->exists($siteLogoPath))
        <img src="{{ Storage::url($siteLogoPath) }}" alt="{{ $siteName }} Logo" class="h-16 w-auto"> {{-- Adjusted default size --}}
    @else
        {{-- Fallback to default SVG if no site_logo is set or found --}}
        <svg class="h-16 w-auto text-gray-500 dark:text-gray-400" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z" fill="currentColor"/>
            <path d="M14.134 45.885A23.914 23.914 0 0024 48c13.255 0 24-10.745 24-24 0-3.516-.756-6.856-2.115-9.866-4.659 15.143-16.608 27.092-31.75 31.751z" fill="currentColor"/>
        </svg>
    @endif
</a>
