@extends('layouts.customer')
@section('title', 'A/B Test - ' . $campaign->name)
@section('page-title', 'A/B Test: ' . $campaign->name)
@section('content')
@if($campaign->variants->isEmpty())
Create multiple variants of your campaign to test which performs better. You can test different subject lines, content, or both.
@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)
@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