{{ __mc('Checklist') }}

@if ($campaign->isEditable()) @if (! $campaign->isReady()) {{ __mc('You need to check some settings before you can deliver this campaign.') }} @elseif ($campaign->contentItems->reject->htmlContainsUnsubscribeUrlPlaceHolder()->count() || $campaign->contentItems->filter(fn ($contentItem) => $contentItem->sizeInKb() > 102)->count()) {!! __mc('Campaign :campaign can be sent, but you might want to check your content.', ['campaign' => $campaign->name]) !!} @else {!! __mc('Campaign :campaign is ready to be sent.', ['campaign' => $campaign->name]) !!} @endif @if($campaign->scheduled_at) {!! __mc('Scheduled for delivery :diff - :scheduledAt.', [ 'diff' => $campaign->scheduled_at->diffForHumans(), 'scheduledAt' => $campaign->scheduled_at->toMailcoachFormat(), ]) !!} @endif

{{ __mc('Settings') }}

@if ($campaign->emailList) {{ $fromEmail . ($fromName ? " ({$fromName})" : '') }} @if ($replyToEmail) {{ $replyToEmail . ($replyToName ? " ({$replyToName})" : '') }} @endif @php($subscribersCount = $campaign->segmentSubscriberCount()) @if($subscribersCount) {{ $campaign->emailList->name }} @if($campaign->usesSegment()) ({{ $campaign->getSegment()->description() }}) @endif {{ number_format($subscribersCount) ?? '...' }} @if (!is_null($subscribersCount)) {{ __mc_choice('subscriber|subscribers', $subscribersCount) }} @endif @else {{ __mc('Selected list has no subscribers') }} @endif @else @endif @if ($campaign->emailList) @endif

{{ __mc('Content') }} @if($campaign->isSplitTested()) ({{ $campaign->contentItems->count() }} {{ __mc_choice('variant|variants', $campaign->contentItems->count()) }}) @endif

@foreach ($campaign->contentItems as $index => $contentItem)
@include('mailcoach::app.content.checklist', ['model' => $campaign])
@endforeach
@else @endif
@if ($campaign->isSplitTested() && $subscribersCount)

{{ __mc('Split test settings') }}

{{ __mc('Choose how many subscribers will be involved in your tests, and when we decide a winner.') }}


{{ __mc('Percentage of subscribers involved') }}

{{ __mc('Hours to wait until deciding a winner') }}

@if ($split_length > 1) {{ __mc('hours') }} @else {{ __mc('hour') }} @endif
  • {{ __mc('of your audience') }} {{ __mc('will be involved in testing.') }}
  • {{ __mc('Each split receives one variant of your emails.') }}
  • {!! __mc('After :count hours, we will determine the winning variant.', ['count' => $split_length]) !!}
  • {{ __mc('The winning variant will then be sent to the') }} {{ __mc('remaining') }}
{{ __mc('Save settings') }}
@endif

{{ __mc('Send campaign') }}

@if (count($validateErrors = $campaign->validateRequirements())) @foreach ($validateErrors as $error) {!! $error !!} @endforeach @endif
@if ($campaign->isReady())
@if($campaign->scheduled_at)

{{ __mc('This campaign is scheduled to be sent at') }} {{ $campaign->scheduled_at->toMailcoachFormat() }}.

@else
@csrf

{{ __mc('All times in :timezone', ['timezone' => config('mailcoach.timezone') ?? config('app.timezone')]) }}

@endif

{{ __mc('Are you sure you want to send this campaign to') }} @if ($subscribersCount = $campaign->segmentSubscriberCount()) {{ number_format($subscribersCount) }} {{ $subscribersCount === 1 ? __mc('subscriber') : __mc('subscribers') }}? @endif

@else {{ __mc('You need to check some settings before you can deliver this campaign.') }} @endif