{{-- Context-aware mini-tab strip. The full super-admin navigation now lives in the left sidebar. This partial only renders a thin, scoped tab bar when the user is inside a section that has multiple sibling sub-pages (currently: landing-page editor). Everywhere else it stays empty so each page gets to "speak" without competing chrome. --}} @php $isLandingScope = request()->routeIs([ 'super-admin.landing.*', 'super-admin.kpi-features.*', 'super-admin.faqs.*', 'super-admin.testimonials.*', 'super-admin.cookie.*', 'super-admin.demos.*', ]); @endphp @if($isLandingScope) @php $landingTabs = [ ['route' => 'super-admin.landing.edit', 'params' => ['slug' => 'section-one'], 'matchSlug' => 'section-one', 'label' => __('Section 1 — Hero'), 'icon' => 'sparkles'], ['route' => 'super-admin.landing.edit', 'params' => ['slug' => 'section-two'], 'matchSlug' => 'section-two', 'label' => __('Section 2 — Features'),'icon' => 'sparkles'], ['route' => 'super-admin.landing.edit', 'params' => ['slug' => 'section-three'], 'matchSlug' => 'section-three', 'label' => __('Section 3 — Analysis'),'icon' => 'sparkles'], ['route' => 'super-admin.kpi-features.index', 'match' => 'super-admin.kpi-features.*', 'label' => __('KPI blocks'), 'icon' => 'chart'], ['route' => 'super-admin.faqs.index', 'match' => 'super-admin.faqs.*', 'label' => __('FAQs'), 'icon' => 'mail'], ['route' => 'super-admin.testimonials.index', 'match' => 'super-admin.testimonials.*', 'label' => __('Testimonials'), 'icon' => 'users'], ['route' => 'super-admin.landing.edit', 'params' => ['slug' => 'cta'], 'matchSlug' => 'cta', 'label' => __('CTA band'), 'icon' => 'sparkles'], ['route' => 'super-admin.landing.edit', 'params' => ['slug' => 'footer'], 'matchSlug' => 'footer', 'label' => __('Footer'), 'icon' => 'cog'], ['route' => 'super-admin.cookie.edit', 'match' => 'super-admin.cookie.*', 'label' => __('Cookie banner'), 'icon' => 'shield'], ['route' => 'super-admin.demos.index', 'match' => 'super-admin.demos.*', 'label' => __('Demo bookings'), 'icon' => 'clock'], ]; $isActive = function (array $t) { if (isset($t['matchSlug'])) { return request()->routeIs('super-admin.landing.*') && request()->route('slug') === $t['matchSlug']; } return isset($t['match']) && request()->routeIs($t['match']); }; @endphp
{{ __('Landing page') }}
@endif