@php /** Inputs available from MarketingEmailGeneric::build() */ $bizName = $insight->name ?? 'Your Business'; $safeUrl = $ctaUrl ?? url('top3maps?pid=' . $insight->place_id.'&e='.$insight->email.'&n='.$insight->contact_name.'>rial=1'); $money = function ($v) { $n = (float) ($v ?? 0); if ($n <= 0) return '—'; return '£' . number_format($n, 0); }; $kw = ($rows ?? collect()) ->sortByDesc(function ($r) { return [(int)($r['premium'] ?? false), (float)($r['traffic_value'] ?? 0)]; }) ->take(12) ->values(); $createdAtText = optional($snapshot?->created_at)->format('j M Y') ?? null; $headerDate = $createdAtText ? " · {$createdAtText}" : ''; @endphp
{{ $preheader ?? "See how {$bizName} can appear in the Top 3 on Google Maps within 48 hours." }}

£{{ $premiumTrafficValueTotal ?? '0' }}/month in free traffic within 48 hours?

Sounds ridiculous — but it’s true.

Want to see how much is really yours?

{{ $bizName }} local SEO snapshot{{ $headerDate }}

Want to see exactly how this works for {{ $bizName }}? Our AI will walk you through your report step by step.

Try for free

48 hours: We push your keywords into the Top 3 Google Maps results fast.

12 keywords: Up to 4 premium terms + 8 variations tracked.

Shared traffic: Local leads distributed to your brand instead of competitors.

@forelse ($kw as $r) @php $name = (string)($r['keyword'] ?? '—'); $pos = $r['position'] ?? null; $posTxt = is_numeric($pos) ? ('#' . ((int)$pos > 20 ? '20+' : (int)$pos)) : '—'; $clicks = (float)($r['clicks'] ?? 0); $value = (float)($r['traffic_value'] ?? 0); $isPrem = (bool)($r['premium'] ?? false); @endphp @empty @endforelse @php $countKw = (int)($stats['count_keywords'] ?? 0); $sumValue = (float)($stats['total_traffic_value'] ?? 0); $sumClicks = (float)($stats['total_clicks'] ?? 0); $avgPos = $stats['avg_position'] ?? null; @endphp

Total keywords: {{ number_format($countKw) }}

Total clicks: {{ number_format($sumClicks) }}

Total value: {{ $money($sumValue) }}

Average position: {{ is_numeric($avgPos) ? $avgPos : '—' }}

@if(!empty($snapshot?->ai_summary))
{{ $snapshot->ai_summary }}
@endif @include('emails.partials.open-pixel')