@php $c = $qrCode->content(); $evColor = $c['brand_color'] ?? '#4f46e5'; $evName = $c['name'] ?? $qrCode->label; $isContribution = ($c['mode'] ?? 'ticketing') === 'contributions'; $badgeUrl = 'https://api.qrserver.com/v1/create-qr-code/?size=220x220&data=' . urlencode($registration->badge_code); $joinUrl = ''; if (in_array($c['format'] ?? 'in_person', ['virtual', 'hybrid'], true)) { foreach ($c['virtual_sessions'] ?? [] as $session) { if (is_array($session) && filled($session['join_url'] ?? '')) { $joinUrl = trim((string) $session['join_url']); break; } } } $meetContinueUrl = ''; if (! empty($meetReturn ?? '')) { $meetContinueUrl = $meetReturn . (str_contains($meetReturn, '?') ? '&' : '?') . 'badge=' . urlencode($registration->badge_code); } elseif ($joinUrl !== '') { $meetContinueUrl = $joinUrl . (str_contains($joinUrl, '?') ? '&' : '?') . 'badge=' . urlencode($registration->badge_code); } @endphp
{{ $evName }}
Hi {{ $registration->attendee_name }}, your contribution has been received.
{{ $registration->tier_name }}
{{ $registration->currency }} {{ number_format($registration->amountCedis(), 2) }}
Reference
{{ $registration->badge_code }}
A receipt was sent to {{ $registration->attendee_email }}.
@endif @elseHi {{ $registration->attendee_name }}, your spot is confirmed.
Badge code
{{ $registration->badge_code }}
Show this badge code at check-in. A confirmation was sent to {{ $registration->attendee_email }}.
@elseShow this badge code at check-in.
@endif @if($meetContinueUrl !== '') Continue to session @endif @endif