@if ($model instanceof \Spatie\Mailcoach\Domain\Campaign\Models\Campaign && $model->isSplitTested()) @endif @if($contentItem->html && $contentItem->hasValidHtml()) @if (! $contentItem->htmlContainsUnsubscribeUrlPlaceHolder())

{{ __mc("Without a way to unsubscribe, there's a high chance that your subscribers will complain.") }}

{!! __mc('Consider adding the {{ unsubscribeUrl }} placeholder.') !!}

@endif @if ($contentItem->sizeInKb() >= 102)

{{ __mc("Your email's content size is larger than 102kb (:size). This could cause Gmail to clip your campaign.", ['size' => "{$contentItem->sizeInKb()}kb"]) }}

@endif @if ($contentItem->hasValidHtml() && $contentItem->htmlContainsUnsubscribeUrlPlaceHolder() && $contentItem->sizeInKb() < 102)

{{ __mc('No problems detected!') }}

@endif
@if ($model->getMailerKey()) @endif
@else @if($contentItem->html) @if (! $contentItem->hasValidHtml())

{{ __mc('HTML is invalid') }}

{!! $contentItem->htmlError() !!}

@endif @else {{ __mc('Content is missing') }} @endif
@endif @php($tags = []) @php($links = $contentItem->htmlLinks()) @if (count($links))

{{ __mc_choice(":count link was found in your content, make sure it is valid.|:count links were found in your content, make sure they are valid.", count($links), ['count' => count($links)]) }} @if (count($links) > 5) @endif

    @foreach ($links as $index => $link) @php($key = $contentItem->id . $link)
  • @php($tags[] = \Spatie\Mailcoach\Domain\Content\Support\LinkHasher::hash($model, $link))
  • @endforeach
@else

{{ __mc("No links were found in your content.") }}

@endif
@if(method_exists($model, 'tracking')) @php([$openTracking, $clickTracking] = $model->tracking()) @endif @if ($contentItem->add_subscriber_tags || $contentItem->add_subscriber_link_tags)

{{ __mc("The following tags will be added to subscribers when they open or click the email:") }}

@if ($model instanceof \Spatie\Mailcoach\Domain\Campaign\Models\Campaign && is_null($openTracking) && is_null($clickTracking))

{!! __mc('Open & Click tracking are managed by your email provider, this campaign uses the :mailer mailer.', ['mailer' => $model->getMailerKey()]) !!}

@endif
    @if ($contentItem->add_subscriber_tags)
  • {{ ($model instanceof \Spatie\Mailcoach\Domain\Campaign\Models\Campaign ? 'campaign' : 'automation-mail') . "-{$model->uuid}-opened" }}
  • {{ ($model instanceof \Spatie\Mailcoach\Domain\Campaign\Models\Campaign ? 'campaign' : 'automation-mail') . "-{$model->uuid}-clicked" }}
  • @endif @if ($contentItem->add_subscriber_link_tags) @foreach ($tags as $tag)
  • {{ $tag }}
  • @endforeach @endif
@endif
{{ $index + 1 }}