@php try { $themeTopbarCms = function_exists('cms') ? (cms() ?? []) : app(\App\Services\CmsSettingsService::class)->get(); } catch (\Throwable $e) { $themeTopbarCms = []; } $onRegister = request()->routeIs('auth.register'); $topbarBranding = (array) data_get($themeTopbarCms, 'branding', []); $hasConfiguredTopbarLogo = filled(data_get($topbarBranding, 'logo_url')) || filled(data_get($topbarBranding, 'logo_light_url')) || data_get($topbarBranding, 'use_text_logo') === 'yes'; $suppliedAuthLogo = data_get($authTheme ?? [], 'logo'); @endphp
@if($hasConfiguredTopbarLogo || !$suppliedAuthLogo) @include('pages.includes.brand-logo', ['cms' => $themeTopbarCms, 'variant' => 'auth']) @else {{ data_get($topbarBranding, 'site_name', config('app.name')) }} @endif