{{-- The brand image. Callers check site_logo_url() first and fall back to the
icon + site-name text themselves, since that markup differs per layout.
$variant: 'auto' swaps light/dark with the theme toggle, 'light' / 'dark'
pin one (the sidebar, footer and login side panel are always dark).
With no dark logo uploaded the light one is knocked out to white on dark
surfaces rather than vanishing; a tenant's white-label logo is used as-is. --}}
@php
$variant = $variant ?? 'auto';
$class = $class ?? '';
$alt = setting('site_name', 'Learnify');
$light = site_logo_url('light');
$dark = site_logo_url('dark');
$knock = (optional(current_tenant())->logoUrl() || setting('site_logo_dark')) ? '' : 'lf-logo-knockout';
// class="" only when there is something to say
$attr = fn (string ...$parts) => ($c = trim(implode(' ', array_filter($parts)))) !== '' ? ' class="'.e($c).'"' : '';
@endphp
@if($variant === 'dark')
@elseif($variant === 'light')
@else
@endif