@php /** * Bespoke "ROI Proof" hero. Frames the brand thesis: "measured, not claimed." * * @var string $siteName * @var int $daysTrackedMin Lower bound of the tracking window (7-day floor applied). * @var int $daysTrackedMax Upper bound of the tracking window. * @var int $totalDeltaClicks * @var float $avgPositionDelta Negative = position improved (lower number is better in SERP). * @var float $combinedCtrDelta Decimal proportion (0.0124 = +1.24pp). * @var array $roiItems * @var string $greetingName * @var string $dashboardUrl * @var string $unsubscribeUrl */ $fmt = fn ($n) => number_format((float) $n); $totalDeltaClicks = (int) ($totalDeltaClicks ?? 0); $totalSign = $totalDeltaClicks >= 0 ? '+' : '−'; $totalAbs = abs($totalDeltaClicks); $totalColor = $totalDeltaClicks >= 0 ? '#16a34a' : '#dc2626'; $positionMagnitude = number_format(abs((float) ($avgPositionDelta ?? 0)), 1); $positionImproved = ((float) ($avgPositionDelta ?? 0)) < 0; $positionColor = $positionImproved ? '#16a34a' : '#dc2626'; $ctrPct = ((float) ($combinedCtrDelta ?? 0)) * 100; $ctrSign = $ctrPct >= 0 ? '+' : ''; $ctrLabel = $ctrSign.number_format($ctrPct, 2).'pp'; $ctrColor = $ctrPct >= 0 ? '#16a34a' : '#dc2626'; $roiItems = $roiItems ?? []; // Build the days label — collapse to a single value when min === max. $daysTrackedMin = (int) ($daysTrackedMin ?? 30); $daysTrackedMax = (int) ($daysTrackedMax ?? $daysTrackedMin); $daysLabel = $daysTrackedMin === $daysTrackedMax ? (string) $daysTrackedMin : $daysTrackedMin.'–'.$daysTrackedMax; // Pre-resolve the heading + lede outside the component-attribute interpolation // path so we don't have to play HTML-entity tricks inside attribute values. $heading = 'Your work on '.e($siteName).' generated ' .'' .$totalSign.$fmt($totalAbs) .' extra clicks.'; $lede = 'Hi '.e($greetingName).' — every number below is pulled directly from Google Search Console. ' .'No estimates, no rounding, no smoothing. This is what your applied recommendations actually moved over the last ' .$daysLabel.' days.'; @endphp {{-- KPI ROW: 3 cards (clicks, position, CTR) --}} {{-- PER-PAGE LIFT TABLE --}} @if (! empty($roiItems))

Per-page lift

@foreach (array_slice($roiItems, 0, 5) as $item) @php $rawUrl = (string) ($item['page_url'] ?? ''); $cleanUrl = $rawUrl ? (parse_url($rawUrl, PHP_URL_HOST) ?? '').(parse_url($rawUrl, PHP_URL_PATH) ?? '') : 'Unknown'; $clicks = (int) ($item['delta_clicks'] ?? 0); $clicksColor = $clicks >= 0 ? '#16a34a' : '#dc2626'; $clicksDisplay = ($clicks >= 0 ? '+' : '−').number_format(abs($clicks)); @endphp @endforeach
Page Δ clicks
{{ $cleanUrl }} {{ $clicksDisplay }}
@endif {{-- BRAND THESIS PANEL --}}

Why this matters

Most SEO tools show you keywords. We show you what your work actually moved. Keep applying recommendations to compound these gains — every applied rec gets tracked, every page gets a before/after, every dollar of ROI is your dollar.

View full ROI dashboard

All numbers above are pulled directly from Google Search Console — no estimates, no rounding. Manage email preferences.