@extends('layouts.portal') @section('title', 'Theme appearance') @section('content') @php $palette = []; $defaults = []; foreach (['light' => 1, 'dark' => 2] as $mode => $index) { foreach (config('appearance.colors') as $token => $definition) { $key = 'theme_'.$mode.'_'.$token; $defaults[$mode][$token] = $definition[$index]; $value = old($key, $appearance->get($key, $definition[$index])); $palette[$mode][$token] = preg_match('/^#[0-9a-fA-F]{6}$/', $value ?? '') ? $value : $definition[$index]; } } $state = ['mode' => 'light', 'palette' => $palette, 'defaults' => $defaults]; @endphp

{{ __('Website appearance') }}

{{ __('Theme studio') }}

{{ __('Set consistent colors for the website and every portal. Preview changes before saving.') }}

@csrf @method('PUT')

{{ __('Color palettes') }}

@foreach(['light' => 'Light', 'dark' => 'Dark'] as $value => $label)@endforeach
@foreach(['light' => 'Light theme', 'dark' => 'Dark theme'] as $value => $label)

{{ __($label) }}

@foreach(config('appearance.colors') as $token => $definition) @endforeach
@endforeach
{{ __('Live preview') }}
{{ __('Overview') }}

{{ __('Vehicles') }}

{{ __('Settings') }}

{{ __('Workshop overview') }}

{{ __('Card text and helpful descriptions.') }}

{{ __('Secondary surface') }}

{{ __('Preview only — save to apply.') }}

{{ __('Footer') }}

{{ __('Brand and typography') }}

@foreach(['theme_accent_color' => ['Brand accent', '#f59e0b'], 'theme_accent_secondary' => ['Accent text', '#92400e']] as $key => $definition)
@endforeach @foreach(['theme_font_heading' => 'Heading font', 'theme_font_body' => 'Body font', 'theme_font_arabic' => 'Arabic font'] as $key => $label)
@endforeach

{{ __('Homepage hero') }}

@foreach(['hero_eyebrow' => ['Introduction', 'YOUR LOCAL WORKSHOP', 80], 'hero_title' => ['Headline', 'Care for your car', 120], 'hero_button' => ['Button text', 'Book a visit', 40]] as $key => $definition)
@endforeach

{{ __('Visitors can override the default using the theme switcher.') }}

@endsection