@extends('layouts.admin') @section('title', $creating ? __('admin.theme.new') : $theme->name) @section('breadcrumb', __('admin.themes')) @section('content') @php($ribbon = $ribbon ?? $theme->headerRibbon())
@csrf @unless ($creating) @method('put') @endunless

{{ __('admin.theme.identity') }}

{{ __('admin.theme.identity_help') }}
@if ($creating) @endif

{{ __('admin.theme.header_ribbon') }}

{{ __('admin.theme.header_ribbon_help') }}

{{ __('admin.theme.header_ribbon_colors') }}

@foreach (['light' => __('admin.theme.mode_light'), 'dark' => __('admin.theme.mode_dark')] as $mode => $modeLabel) @php($value = old("header_ribbon.$mode", $ribbon[$mode] ?? '')) @php($picker = is_string($value) && preg_match('/^#?[0-9a-fA-F]{6}$/', $value) ? (str_starts_with($value, '#') ? $value : '#'.$value) : $cores[$mode]['brand'])
{{ $modeLabel }} · {{ __('admin.theme.header_ribbon_color') }} {{ __('admin.theme.header_ribbon_hint') }}
@endforeach

{{ __('admin.theme.header_ribbon_independent') }}

@foreach (['light', 'dark'] as $mode)

{{ __('admin.theme.palette_'.$mode) }}

{{ __('admin.theme.palette_'.$mode.'_help') }}
@if ($mode === 'dark') @endif
@foreach ($groups as $group)

{{ $group['label'] }}

@foreach ($group['tokens'] as $token) @php($value = old("$mode.".$token['key'], $cores[$mode][$token['key']])) @endforeach
@endforeach
@endforeach
{{ __('admin.cancel') }} @unless ($creating) {{ __('admin.theme.preview') }} ↗ @endunless
@endsection @push('scripts') @endpush