@php $ownBrand = ($ownPanel?->primary_color) ?: config('redfamosa.brand.primary', '#5B4DF0'); $ownOnPrimary = ($ownPanel?->on_primary) ?: '#ffffff'; @endphp {{-- ============================ OWN PANEL ============================ --}}

{{ __('Your panel') }}

{{ __('Active: :template', ['template' => config("client_templates.templates.{$ownerTemplate}.label", $ownerTemplate)]) }}
@foreach ($templates as $key => $meta)
@include('components.client.template-preview', ['key' => $key, 'meta' => $meta, 'brand' => $ownBrand, 'onPrimary' => $ownOnPrimary]) @if ($ownerTemplate === $key) @endif
{{ $meta['label'] }} @foreach ($meta['themes'] ?? [] as $t) {{ $t === 'dark' ? __('Dark') : __('Light') }} @endforeach

{{ __($meta['description']) }}

@if ($ownerTemplate === $key) @else @endif {{ __('Preview') }}
@endforeach
{{-- ============================ LOGIN PAGE ============================ The copy on the brand pane of login / register / password recovery. Placeholders show the shipped default, which is exactly what an empty field falls back to — so the buyer can see what they are replacing and clear a box to undo. ==================================================--}}

{{ __('Login page') }}

{{ __('The headline and selling points shown beside the sign-in form. Leave a field empty to keep the default text.') }}

{{ __('Preview') }}
@error('login_title')

{{ $message }}

@enderror
@error('login_subtitle')

{{ $message }}

@enderror
@foreach ($loginDefaults['features'] as $i => $default)
@error('login_features.'.$i.'.title')

{{ $message }}

@enderror
@error('login_features.'.$i.'.text')

{{ $message }}

@enderror
@endforeach

{{ __('Reseller panels show the headline from their own landing page instead, so their customers read their brand.') }}

{{-- ============================ RESELLERS ============================ --}} @if ($resellers->isNotEmpty())

{{ __('Reseller panels') }}

{{ __('Assign a template to each reseller. Their own clients see it on their domain.') }}

@foreach ($resellers as $reseller) @endforeach
{{ __('Reseller') }} {{ __('Brand') }} {{ __('Template') }} {{ __('Preview') }}
{{ $reseller->name }} {{ $reseller->primary_color ?: '—' }}
@foreach ($templates as $key => $meta) @endforeach
{{ __('Preview') }}
@endif