@extends("admin.layouts.app") @section("title", __("admin.settings.appearance")) @section("content") {{-- TAB NAVIGATION --}}
{{-- ═══════════════════════════════════════════════════════════ --}} {{-- TAB 1: THEMES (WordPress-style grid) --}} {{-- ═══════════════════════════════════════════════════════════ --}}
{{-- LOGO & FAVICON --}}
{{ __('admin.appearance.logo') }}
@if($logoPath)
Logo
@csrf @method('DELETE')
@else

{{ __('admin.appearance.no_logo') }}

@endif
@csrf PNG, JPG, SVG, WebP. Max 2MB.
{{ __('admin.appearance.favicon') }}
@if($faviconPath)
Favicon {{ __('admin.appearance.current_favicon') }}
@csrf @method('DELETE')
@else

{{ __('admin.appearance.no_favicon') }}

@endif
@csrf PNG, ICO, SVG. Max 512KB.
{{ __('admin.appearance.installed_themes') }} {{ count($installedThemes) }} {{ __('admin.appearance.themes_installed') }}

{{ __('admin.appearance.theme_description') }}

@foreach($installedThemes as $slug => $themeInfo)
@if($themeInfo->isActive)
{{ __('admin.appearance.active_badge') }}
@elseif($themeInfo->isBuiltin)
{{ __('admin.appearance.built_in_badge') }}
@endif
@if($themeInfo->screenshot) {{ $themeInfo->name }} @else
@endif

{{ $themeInfo->name }}

v{{ $themeInfo->version }} by {{ $themeInfo->author }}

{{ Str::limit($themeInfo->description, 80) }}

@if(!empty($themeInfo->colors))
@foreach(array_slice($themeInfo->colors, 0, 6) as $colorKey => $colorVal)
@endforeach
@endif @if($themeInfo->isActive) @else
@csrf
@if(!$themeInfo->isBuiltin)
@csrf @method('DELETE')
@endif
@endif
@endforeach {{-- Upload new theme card --}}
@csrf
@if(!empty($installedThemes))
{{ __('admin.appearance.themes_how_work') }} {{ __('admin.appearance.themes_how_work_desc') }}
@endif
{{-- ═══════════════════════════════════════════════════════════ --}} {{-- TAB 2: COLOR PRESETS & CUSTOM TOKENS --}} {{-- ═══════════════════════════════════════════════════════════ --}}
{{-- PRESET CARDS --}}
{{ __('admin.appearance.color_presets') }}

{{ __('admin.appearance.preset_description') }}

@foreach($presets as $key => $preset)
@if($activePreset === $key) ACTIVE @endif

{{ $preset['name'] }}

{{ $preset['description'] }}

@foreach(['primary','accent','nav_bg','sidebar_bg','welcome_accent','table_header_bg'] as $swatch)
@endforeach
@if($activePreset !== $key)
@csrf
@else @endif
@endforeach
{{-- CUSTOM COLORS (Collapsible Groups) --}}
{{ __('admin.appearance.custom_colors_tokens') }} ({{ count($tokenLabels) }} tokens)

{{ __('admin.appearance.custom_tokens_description') }}

@csrf @foreach($tokenGroups as $groupName => $keys)
{{ $groupName }} ({{ count($keys) }} tokens)
@foreach($keys as $key)
@if(in_array($key, $colorKeys)) @else @endif
@endforeach
@endforeach
{{-- LIVE PREVIEW --}}
{{ __('admin.appearance.live_preview') }}

{{ __('admin.appearance.nav_sidebar_preview') }}

PNLCS {{ __('admin.appearance.preview_dashboard') }}
{{ __("admin.appearance.preview_menu_item_1") }}
{{ __("admin.appearance.preview_menu_item_2") }}
{{ __("admin.appearance.preview_button") }}

{{ __('admin.appearance.welcome_hero_preview') }}

{{ __("admin.appearance.preview_your_website") }}
Get Started
{{ __("admin.appearance.preview_table_header") }}
{{-- ═══════════════════════════════════════════════════════════ --}} {{-- TAB 3: HOMEPAGE BUILDER --}} {{-- ═══════════════════════════════════════════════════════════ --}}
{{ __('admin.appearance.homepage_sections') }} {{ __('common.actions.preview') }}

{{ __('admin.appearance.sections_description') }}

@foreach($sections as $section)
{{ $section->title }}
{{ $section->slug }}
@endforeach
{{-- Section Edit Modal --}}
{{-- ═══════════════════════════════════════════════════════════ --}} {{-- TAB 4: WHITE-LABEL --}} {{-- ═══════════════════════════════════════════════════════════ --}}
{{ __('admin.appearance.whitelabel_settings') }}

{{ __('admin.appearance.whitelabel_description') }}

@csrf
{{ __('admin.appearance.replaces_hint') }}
{{ __('admin.appearance.copyright_hint') }}
{{-- ═══════════════════════════════════════════════════════════ --}} {{-- TAB 5: DARK MODE --}} {{-- ═══════════════════════════════════════════════════════════ --}}
{{ __('admin.appearance.dark_mode') }}

{{ __('admin.appearance.darkmode_description') }}

@csrf

{{ __('admin.appearance.darkmode_hint') }}

{{ __('admin.appearance.how_it_works') }}

  • A moon/sun icon toggle appears in the navigation bar
  • {{ __("admin.appearance.darkmode_bullet_1") }}
  • {{ __("admin.appearance.darkmode_bullet_2") }}
  • {{ __("admin.appearance.darkmode_bullet_3") }}
  • {{ __("admin.appearance.darkmode_bullet_4") }}
@endsection @push('scripts') {{-- SortableJS for drag-drop --}} @endpush