@php $businessName = (string) ($businessName ?? 'Your business'); $cardBizName = (string) ($cardBizName ?? $businessName); $businessReviewCount = $businessReviewCount ?? null; $businessRating = $businessRating ?? null; $starsNow = (string) ($starsNow ?? '★★★★☆'); $starsFuture = (string) ($starsFuture ?? '★★★★★'); $projectedReviews = $projectedReviews ?? null; $reviewGain = $reviewGain ?? null; $ctaUrl = (string) ($ctaUrl ?? '#'); $unsubscribeUrl = (string) ($unsubscribeUrl ?? '#'); $forwardUrl = (string) ($forwardUrl ?? url('/?source=forward')); $preheader = (string) ($preheader ?? "We've analysed {$cardBizName}'s Google reviews — here's what we found."); $reviewerName = (string) ($reviewerName ?? 'Michael Clough'); $reviewerInitials = (string) ($reviewerInitials ?? 'MC'); $reviewStars = (string) ($reviewStars ?? '★★★★★'); $reviewWhen = (string) ($reviewWhen ?? '2 months ago'); $reviewText = (string) ($reviewText ?? ''); $aiReplyText = (string) ($aiReplyText ?? ''); $signOff = (string) ($signOff ?? $cardBizName); $avatarColor = (string) ($avatarColor ?? '#16a34a'); $fmtInt = function ($n) { if ($n === null || $n === '') return '0'; if (is_numeric($n)) return number_format((int) $n); return (string) $n; }; @endphp
{{ $preheader }}