@php use Illuminate\Support\Str; $globalSettings = $homeGeneralSettings ?? []; $globalBgType = $globalSettings['backgroundType'] ?? ''; $globalBgColorWeb = $globalSettings['backgroundColorWeb'] ?? ($globalSettings['backgroundColor'] ?? '#ffffff'); $globalBgColorApp = $globalSettings['backgroundColorApp'] ?? ($globalSettings['backgroundColor'] ?? '#ffffff'); $globalBgImgWeb = $globalSettings['backgroundImageWeb'] ?? ($globalSettings['backgroundImage'] ?? ''); $globalBgImgWebMobile = $globalSettings['backgroundImageWebMobile'] ?? ''; $globalBgImgApp = $globalSettings['backgroundImageApp'] ?? ($globalSettings['backgroundImage'] ?? ''); $globalBgAnimWeb = $globalSettings['backgroundAnimationWeb'] ?? ($globalSettings['backgroundAnimation'] ?? ''); $globalBgAnimApp = $globalSettings['backgroundAnimationApp'] ?? ''; $globalFontColor = $globalSettings['fontColor'] ?? '#000000'; $globalTitle = $globalSettings['title'] ?? 'Home / Global'; $globalSearchLabels = $globalSettings['searchLabels'] ?? []; $globalIcon = $globalSettings['icon'] ?? ''; $globalActiveIcon = $globalSettings['activeIcon'] ?? ''; @endphp
{{-- Left Column: Global Header & Search to Add & Drag-and-Drop Sortable Categories (Width: col-lg-4) --}}

Storefront Navigation

{{ $parentCategories->count() }} categories ยท search to add

{{-- Global Home Header Settings Item (Permanent Top Item) --}}
{{ $globalTitle }}
Global header appearance
Global
Categories on Home
{{-- Quick Autocomplete Search & Add Custom Category Button --}}
{{-- Sortable Category Items List --}}
@php $allItems = collect($parentCategories)->map(fn($c) => ['item' => $c, 'is_custom' => false]); if (!empty($customNavbarItems)) { foreach ($customNavbarItems as $nItem) { $allItems->push(['item' => $nItem, 'is_custom' => true]); } } $allItems = $allItems->sortBy(fn($entry) => $entry['item']->sort_order ?? 0)->values(); @endphp @forelse ($allItems as $index => $entry) @php $isCustom = $entry['is_custom']; $category = $entry['item']; $itemTitle = $category instanceof \App\Models\Category ? $category->getTranslation('title', 'en', false) : ($category->title ?? ''); $bgType = is_object($category->background_type) ? $category->background_type->value : $category->background_type ?? 'none'; $catIcon = $category->icon ?: ($category->image ?? ''); $catActiveIcon = $category->active_icon ?: $catIcon; @endphp
{{ $index + 1 }} {{ $itemTitle }} @if ($isCustom) Custom @endif
@if ($bgType === 'color') Color @elseif ($bgType === 'image') Image @elseif ($bgType === 'animation') Animation @else None @endif
@empty
No categories on home navbar yet. Search above or add a custom category.
@endforelse
{{-- Right Column: Header Studio & Appearance Inspector (Width: col-lg-8) --}}

Global Header Appearance

{{ $globalTitle }}
{{-- 1. GLOBAL HOME GENERAL SETTINGS FORM --}}
@csrf {{-- General Details --}}
{{ __('labels.category_title_help') }}
{{ __('labels.search_labels_help') }}
{{-- Global Icons (Default & Active) --}}
Default icon for All Categories pill
Active icon for All Categories pill
Background & Styling
{{-- Background Type --}}
{{-- Global Background Color (Web & App) --}}
Applied to header on Web/Desktop
Applied to header on Mobile App
{{-- Global Background Image (Web & App) --}}
Recommended for desktop screens
Recommended for mobile web screens
Recommended for mobile app screens
{{-- Global Background Animation (Web & App) --}}
Lottie JSON file for Web
Lottie JSON file for Mobile
{{-- Global Font Color --}}
Default header text color
{{-- 2. CATEGORY APPEARANCE FORM --}}
@csrf {{-- Category Icons (Default & Active) --}}
Category icon
Active / selected category icon
Background & Styling
{{ __('labels.background_home_page_note') }}
{{-- Category Background Color (Web & App) --}}
Applied to header on Web/Desktop
Applied to header on Mobile App
{{-- Category Background Image (Web & App) --}}
Recommended for desktop screens
Recommended for mobile web screens
Recommended for mobile app screens
{{-- Category Background Animation (Web & App) --}}
Lottie JSON file for Web
Lottie JSON file for Mobile
{{-- Category Font Color --}}
Header text color when this category is active
{{-- Add Custom Navbar Category Modal --}}