@php /** * Brand logo, driven by Settings → Brand. * * $mode: * 'swap' (default) – renders the dark-theme variant too and lets CSS pick it, * 'dark' – always the variant for dark backgrounds (admin sidebar), * 'light' – always the main logo. */ $mode = $mode ?? 'swap'; $fallbackAlt = $alt ?? setting_text('store.name', 'Mandano 888'); $light = $light ?? brand_logo(); $dark = $dark ?? brand_logo_dark(); $lazy = $lazy ?? false; $class = trim((string) ($class ?? '')); $sizes = trim( ($width ?? null ? 'width="'.$width.'"' : ''). ($height ?? null ? ' height="'.$height.'"' : '') ); if ($mode === 'dark' && $dark) { $light = $dark; $dark = null; } elseif ($mode === 'light') { $dark = null; } @endphp @if ($dark && $dark !== $light) {{ $fallbackAlt }} {{ $fallbackAlt }} @else {{ $fallbackAlt }} @endif