@extends('layouts.app') @section('content') @php $subjectValue = old('subject', $campaign->subject); $preheaderValue = old('preheader', $campaign->preheader); $fromNameValue = old('from_name', $campaign->from_name); $fromEmailValue = old('from_email', $campaign->from_email); $replyToValue = old('reply_to_email', $campaign->reply_to_email); $editorModeValue = old('editor_mode', $campaign->editor_mode); $fontFamilyValue = old('font_family', $campaign->font_family); $backgroundColorValue = old('background_color', $campaign->background_color); $foregroundColorValue = old('foreground_color', $campaign->foreground_color); $htmlBodyValue = old('html_body', $campaign->html_body); $textBodyValue = old('text_body', $campaign->text_body); $sendRateValue = old('send_rate_per_minute', $campaign->send_rate_per_minute); $previewHtmlValue = (string) ($preview['html'] ?? $htmlBodyValue); $locked = $variant->campaign_send_id !== null || $campaign->status !== 'draft'; @endphp
$variant->variant_type === 'final'])>{{ $variant->variant_type === 'final' ? 'FINAL' : $variant->variant_key }}

{{ $variant->variant_name }}

{{ $variant->status }}

{{ $test->name }} | {{ $campaign->name }} | {{ $variant->list?->name ?: 'Sin alias' }}

Volver A/B @if ($campaign) Preview @endif
Subject{{ $subjectValue ?: 'Sin subject' }}
Preheader{{ $preheaderValue ?: 'Sin preheader' }}
From{{ $fromNameValue }} | {{ $fromEmailValue }}
Alias{{ number_format((int) $variant->sample_size) }} contactos
SPS{{ number_format((int) $sendRateValue) }}
Envio{{ $variant->campaign_send_id ? '#' . $variant->campaign_send_id : 'Sin crear' }}
@if ($locked)
Esta variante ya tiene envio creado o no esta en draft. Laravel bloquea cambios de contenido para no alterar una corrida viva.
@endif
@csrf @method('PUT')

Inbox e identidad

S
{{ $subjectValue ?: 'Subject de la variante' }} {{ $fromNameValue }} <{{ $fromEmailValue }}> {{ $preheaderValue ?: 'Preheader de apoyo' }}
Velocidad
Editor y estilo Modo, tipografia y colores base. {{ $editorModes[$editorModeValue] ?? $editorModeValue }} {{ $fontOptions[$fontFamilyValue]['label'] ?? $fontFamilyValue }} {{ $backgroundColorValue }} / {{ $foregroundColorValue }}

Contenido

Preview {{ $editorModeValue }}
@endsection @push('scripts') @endpush