@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') }}
{{ __('Set consistent colors for the website and every portal. Preview changes before saving.') }}