@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 { $container_base_class .= ' container-fluid'; if (!empty($wide_container_px)) { $container_base_class .= ' ' . $wide_container_px; } } @endphp