@php $brandName = filament()->getBrandName(); $brandLogo = filament()->getBrandLogo(); $brandLogoHeight = filament()->getBrandLogoHeight() ?? '1.5rem'; $darkModeBrandLogo = filament()->getDarkModeBrandLogo(); $hasDarkModeBrandLogo = filled($darkModeBrandLogo); $getLogoClasses = fn (bool $isDarkMode): string => \Illuminate\Support\Arr::toCssClasses([ 'fi-logo', 'flex' => ! $hasDarkModeBrandLogo, 'flex dark:hidden' => $hasDarkModeBrandLogo && (! $isDarkMode), 'hidden dark:flex' => $hasDarkModeBrandLogo && $isDarkMode, ]); $logoStyles = "height: {$brandLogoHeight}"; @endphp @capture($content, $logo, $isDarkMode = false) @if ($logo instanceof \Illuminate\Contracts\Support\Htmlable)
class([$getLogoClasses($isDarkMode)]) ->style([$logoStyles]) }} > {{ $logo }}
@elseif (filled($logo)) {{ __('filament-panels::layout.logo.alt', ['name' => $brandName]) }}class([$getLogoClasses($isDarkMode)]) ->style([$logoStyles]) }} /> @else
class([ $getLogoClasses($isDarkMode), 'text-xl font-bold leading-5 tracking-tight text-gray-950 dark:text-white', ]) }} > {{ $brandName }}
@endif @endcapture {{ $content($brandLogo) }} @if ($hasDarkModeBrandLogo) {{ $content($darkModeBrandLogo, isDarkMode: true) }} @endif