@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)