@props([ 'href' => null, 'showTagline' => false, 'showWordmark' => true, 'showName' => true, 'showMark' => true, 'linked' => true, 'variant' => 'default', ]) @php $isFooter = $variant === 'footer'; $isAdmin = $variant === 'admin'; $href = $href ?? ($isAdmin ? route('admin.dashboard') : route('site.home', ['locale' => app()->getLocale()])); $titleClass = $isFooter ? 'text-white' : ($isAdmin ? 'text-brand-accent' : ''); $tagClass = $isFooter ? 'text-slate-400' : 'text-brand-muted'; $markSrc = brand_logo_mark_url(); $lettersEnabled = brand_logo_letters_enabled(); $letterSrcs = brand_logo_letter_urls(); $wordmarkText = brand_logo_letters_text(); $wordmarkFontClass = brand_logo_font_class(); // enabled=false: still show wordmark text + font; skip Lottie JSON letter sources only. $useLottie = $lettersEnabled && $letterSrcs !== []; $classes = $attributes->merge(['class' => 'group inline-flex min-w-0 items-center no-underline'])->get('class'); @endphp @if ($linked) @else @endif @if ($showMark) $isAdmin, 'h-14 w-[4.375rem]' => ! $isAdmin, ]) aria-hidden="true" > $isAdmin, 'h-14' => ! $isAdmin]) draggable="false" /> @endif @if ($showName || $showWordmark || $showTagline) @if ($showName && ! $isAdmin) ! $isFooter, 'text-xl' => $isFooter, $titleClass])> {{ brand_name() }} @endif @if ($showWordmark && ! $isFooter) $isAdmin, $wordmarkFontClass, ]) aria-hidden="true" @if ($useLottie) x-data="siteLogoLottie(@js($letterSrcs), @js(['staggerMs' => brand_logo_letter_stagger_ms()]))" @endif > {{ $wordmarkText }} @if ($useLottie) @foreach ($letterSrcs as $letterSrc) @endforeach @endif @endif @if ($showTagline) {{ brand_tagline() }} @endif @endif @if ($linked) @else @endif