@php $hasTopbarWidget = function_exists('is_active_sidebar') && is_active_sidebar('sidebar-topbar'); @endphp @if (! empty($topbarText) || $email || $phoneRaw || $showLangTopbar || $hasTopbarWidget)
@if (! empty($topbarText)) {{ $topbarText }} @endif
@if ($email) ✉ {{ $email }} @endif @if ($phoneRaw) ☎ {{ $phone }} @endif {{-- Topbar widget slot — appears immediately before the flags so a GTranslate widget (or any other small widget the editor drops in) lives next to the language switcher. Hidden unless the editor has actually placed a widget into it. --}} @if ($hasTopbarWidget)
@php(dynamic_sidebar('sidebar-topbar'))
@endif @if ($showLangTopbar)
@include('partials.lang-switcher')
@endif
@endif