@extends('backend.layouts.app') @section('title', __('Theme Manager')) @push('styles') @endpush @push('scripts') @endpush @section('content')
{{-- ====== Hero ====== --}}
{{ __('Appearance') }}

{{ __('Theme Manager') }}

{{ __('Pick the visual identity for your public landing. The active theme drives both the page-builder library and the frontend look.') }}

{{ __('Active') }} {{ $activeTheme->label() }}
{{ count($themes) }} {{ __('Themes') }} {{ $themes->where('is_active', true)->first()['component_count'] ?? 0 }} {{ __('Blocks') }} {{ $activeTheme->isDark() ? __('Dark') : __('Light') }} {{ __('Mode') }}
{{-- ====== Theme cards ====== --}}
@foreach($themes as $theme)
{{-- Preview --}}
@if(file_exists(public_path($theme['preview_image']))) {{ $theme['label'] }} preview @else @include('backend.theme-manager.partials._preview_mock', ['theme' => $theme]) @endif @if($theme['is_active']) {{ __('Active') }} @endif {{ $theme['is_dark'] ? __('Dark') : __('Light') }}
{{-- Body --}}
{{ __('Theme') }} · #{{ str_pad((string)($loop->index + 1), 2, '0', STR_PAD_LEFT) }}

{{ $theme['label'] }}

{{ $theme['component_count'] }} {{ $theme['accent_color'] }}

{{ $theme['tagline'] }}

@if($theme['is_active']) @else
@csrf
@endif @if(auth()->user()?->can('component-list')) {{ __('Blocks') }} @endif
@endforeach
{{-- ====== Landing Colours ====== --}} @include('backend.theme-manager.partials._color_studio') {{-- ====== How it works ====== --}}
{{ __('Quickstart') }}

{{ __('How it works') }}

  1. 01 {{ __('Activate the theme you want — your choice is saved instantly and applies site-wide.') }}
  2. 02 {{ __('Open Site Builder → All Pages → Edit your home page. The component library on the left now shows only the active theme\'s blocks.') }}
  3. 03 {{ __('Drag-and-drop blocks into the page, save, and the public landing renders with the new layout, CSS and JS — no rebuild required.') }}
  4. 04 {{ __('Switching back is non-destructive: each theme\'s components are stored independently so your data is preserved on both sides.') }}
@endsection