@extends('layouts.customer') @section('title', 'A/B Test - ' . $campaign->name) @section('page-title', 'A/B Test: ' . $campaign->name) @section('content')
← Back to Campaign
@if($campaign->variants->isEmpty())

Create multiple variants of your campaign to test which performs better. You can test different subject lines, content, or both.

@csrf

Variant A

Required

Leave empty to use campaign subject

Leave empty to use campaign content

Percentage of audience for this variant

Variant B

Required

Leave empty to use campaign subject

Leave empty to use campaign content

Percentage of audience for this variant

Total Split: 100%

Split percentages must add up to exactly 100%

Cancel Save A/B Test
@else

Campaign Status: {{ ucfirst($campaign->status) }}

@foreach($campaign->variants as $variant)

{{ $variant->name }} @if($variant->is_winner) Winner @endif

{{ $variant->split_percentage }}% of audience

@if($campaign->status === 'completed' && !$variant->is_winner)
@csrf Select as Winner
@endif
Sent
{{ number_format($variant->sent_count) }}
Open Rate
{{ number_format($variant->open_rate, 1) }}%
Click Rate
{{ number_format($variant->click_rate, 1) }}%
Bounce Rate
{{ number_format($variant->bounce_rate, 1) }}%
@if($variant->subject)
Subject Line
{{ $variant->subject }}
@endif
@endforeach
@if($campaign->status === 'completed')

Next Step: Review the results above and select the winning variant. You can then send the winning variant to the remaining audience.

@endif
@endif
@push('scripts') @endpush @endsection