@php $current_url = url()->current(); $base_class = 'lqd-titlebar pt-6 pb-7 border-b transition-colors'; $container_base_class = 'lqd-titlebar-container flex flex-wrap items-center justify-between gap-y-4'; $before_base_class = 'lqd-titlebar-before w-full'; $after_base_class = 'lqd-titlebar-after w-full'; $pretitle_base_class = 'lqd-titlebar-pretitle text-xs text-foreground/70 m-0'; $title_base_class = 'lqd-titlebar-title m-0'; $subtitle_base_class = 'lqd-titlebar-subtitle mt-1 text-2xs opacity-80 only:my-0 last:mb-0'; $actions_base_class = 'lqd-titlebar-actions flex flex-wrap items-center gap-2'; $generator_link = route('dashboard.user.openai.list') === $current_url ? '#lqd-generators-filter-list' : LaravelLocalization::localizeUrl(route('dashboard.user.openai.list')); $wide_container_px = Theme::getSetting('wideLayoutPaddingX', ''); $has_title = true; $has_pretitle = true; $has_subtitle = view()->hasSection('titlebar_subtitle'); $titlebar_after_in_nav_col = $attributes->has('titlbar-after-place') && $attributes->get('titlbar-after-place') === 'col-nav'; $title_section_name = ''; if (view()->hasSection('titlebar_title')) { $title_section_name = 'titlebar_title'; } elseif (view()->hasSection('title')) { $title_section_name = 'title'; } if ($attributes->has('title') && blank($attributes->get('title'))) { $has_title = false; } if ($attributes->has('pretitle') && blank($attributes->get('pretitle'))) { $has_pretitle = false; } if (!$attributes->get('layout-wide')) { $container_base_class .= ' container'; } else { if (!empty($wide_container_px)) { $container_base_class .= ' ' . $wide_container_px; } } @endphp
withoutTwMergeClasses()->twMerge($base_class, $attributes->get('class')) }} >
twMergeFor('container', $container_base_class) }}> @if (view()->hasSection('titlebar_before') || !empty($before))
twMergeFor('before', $before_base_class) }}> @if (view()->hasSection('titlebar_before')) @yield('titlebar_before') @elseif (!empty($before)) {{ $before }} @endif
@endif
@if ($has_pretitle)

twMergeFor('pretitle', $pretitle_base_class) }}> @if (view()->hasSection('titlebar_pretitle')) @yield('titlebar_pretitle') @elseif (view()->hasSection('pretitle')) @yield('pretitle') @else @if (route('dashboard.user.index') === $current_url || route('dashboard.admin.index') === $current_url) {{ __('Dashboard') }} @else {{ __('Back to dashboard') }} @endif @endif

@endif @if ($has_title)

twMergeFor('title', $title_base_class) }}> @yield($title_section_name)

@endif @if ($has_subtitle)

twMergeFor('subtitle', $subtitle_base_class) }}> @yield('titlebar_subtitle')

@endif @php $status_titlebar_after = $titlebar_after_in_nav_col && (!$has_pretitle && !$has_subtitle) && (view()->hasSection('titlebar_after') || !empty($after)); $theme = \Theme::get(); if ($theme == 'sleek' && request()->routeIs('dashboard.user.openai.list')) { $status_titlebar_after = $titlebar_after_in_nav_col && !$has_pretitle && (view()->hasSection('titlebar_after') || !empty($after)); } @endphp @if ($status_titlebar_after)
twMergeFor('after', $after_base_class) }}> @if (view()->hasSection('titlebar_after')) @yield('titlebar_after') @elseif (!empty($after)) {{ $after }} @endif
@endif
@hasSection('titlebar_actions_before') @yield('titlebar_actions_before') @endif @if (view()->hasSection('titlebar_actions')) @yield('titlebar_actions') @elseif (!empty($actions))
twMergeFor('actions', $actions_base_class, $actions->attributes->get('class')) }}> {{ $actions }}
@else
twMergeFor('actions', $actions_base_class, 'max-lg:hidden') }}> @if (request()->routeIs('dashboard.user.openai.documents.all') && !isset($currfolder)) {{ __('New Folder') }} @includeIf('panel.user.openai.components.modals.create-new-folder') @else {{ __('My Documents') }} @endif {{ __('New') }}
@endif @hasSection('titlebar_actions_after') @yield('titlebar_actions_after') @endif
@if (!$titlebar_after_in_nav_col && (($has_pretitle || $has_subtitle) && (view()->hasSection('titlebar_after') || !empty($after))))
twMergeFor('after', $after_base_class) }}> @if (view()->hasSection('titlebar_after')) @yield('titlebar_after') @elseif (!empty($after)) {{ $after }} @endif
@endif