@extends('layouts.admin') @section('title', __('admin.themes')) @section('breadcrumb', __('admin.group.settings')) @section('content') @include('admin.partials.grid-toolbar', [ 'action' => route('admin.themes.index'), 'search' => $search, 'placeholder' => __('admin.theme.search'), 'count' => $themes->total(), 'addUrl' => route('admin.themes.create'), 'addLabel' => __('admin.theme.new'), 'filters' => [ [ 'name' => 'type', 'label' => __('admin.theme.type'), 'value' => $type, 'options' => [ 'all' => __('admin.all'), 'preset' => __('admin.theme.preset'), 'custom' => __('admin.theme.custom'), 'active' => __('admin.theme.live'), ], ], ], 'sortOptions' => [ 'order' => __('admin.theme.sort_order'), 'name' => __('admin.theme.sort_name'), 'recent' => __('admin.theme.sort_recent'), ], 'sortValue' => $sort, ])

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

@if ($active)
@foreach ($active->swatches('light') as $color) @endforeach @foreach ($active->swatches('dark') as $color) @endforeach
{{ __('admin.theme.live_now', ['name' => $active->name]) }} {{ $active->applies_to_admin ? __('admin.theme.applies_both') : __('admin.theme.applies_storefront') }}
{{ __('admin.theme.preview') }} ↗
@csrf
@else
{{ __('admin.theme.using_design') }} {{ __('admin.theme.using_design_help') }}
@endif
@forelse ($themes as $theme)
@foreach ($theme->swatches('light', 3) as $color) @endforeach
{{ $theme->name }} {{ $theme->slug }}
@if ($theme->is_active) {{ __('admin.theme.live') }} @endif {{ $theme->type_label }} @if ($theme->applies_to_admin) {{ __('admin.theme.admin_badge') }} @endif
@if ($theme->description_text !== '')

{{ $theme->description_text }}

@endif @foreach (['light' => __('admin.theme.mode_light'), 'dark' => __('admin.theme.mode_dark')] as $mode => $label)
{{ $label }}
@foreach ($theme->swatches($mode, 5) as $color) @endforeach
@endforeach
{{ __('admin.theme.sort_order') }} {{ $theme->sort_order }}
{{ __('admin.theme.updated_at') }} {{ $theme->updated_at?->diffForHumans() ?? '—' }}
@csrf
@csrf
@unless ($theme->is_system)
@csrf @method('delete')
@endunless
@empty
{{ __('admin.no_results') }} {{ __('admin.no_results_help') }}
@endforelse
@include('admin.partials.pagination', ['paginator' => $themes]) @endsection