@php $preset = $giftCard->template?->preset_key ?? 'premium'; $symbol = $giftCard->currency?->symbol ?? '$'; $isRedeemed = in_array($giftCard->status, ['redeemed', 'expired', 'cancelled'], true); $firstName = explode(' ', trim((string) $giftCard->sender_name))[0] ?: __('Someone'); $initials = strtoupper(mb_substr($giftCard->sender_name, 0, 2, 'UTF-8')); $amountLabel = $symbol.number_format((float) $giftCard->amount,siteDecimalPlaces()); @endphp {{-- Page-level confetti — drifts down behind the card. The card itself has its own internal motif (confetti / snow / sparkles) baked into the component. --}} @php /* * Use the site title as plain text instead of the configured logo * image. Logo files are user-uploaded and can be any colour / * variant (dark, light, multi-tone) — there's no reliable way to * guarantee contrast on the dark recipient page across every * possible upload. A typographic wordmark in white sidesteps the * problem entirely and stays sharp at any DPI. */ $previewBrand = setting('site_title') ?: config('app.name'); @endphp
{{ $previewBrand }}
{{-- fa-sparkles is Pro-only; fa-star ships in FA Free. --}} {{ __('Just for you') }}

{{ __(':sender sent you a gift', ['sender' => $firstName]) }}

{{ __('Open your gift card and add it to your :site wallet in seconds.', ['site' => setting('site_title', config('app.name'))]) }}

{{-- Sender chip --}}
{{ $initials }}
{{ __('From') }}
{{ $giftCard->sender_name }}
{{-- Gift card — rendered already-opened with the code stripe visible on the card itself (showCode prop). The card-rise animation eases it up on page load to match the target. --}}
@if($giftCard->message)
✦ {{ __('A message for you') }}

“{{ $giftCard->message }}”

@endif
{{ __('Gift code') }}
{{ $giftCard->code }}
@if($isRedeemed)
{{ __('This gift card has already been :status.', ['status' => $giftCard->status]) }}
@elseif(! empty($isOwnCard)) {{-- Sender opening their own preview. Self-redeem is server- blocked anyway; we surface a clear note + a back link instead of the Redeem CTA so they don't dead-end. --}}
{{ __('This is your own gift card') }}
{{ __('You sent this card to :recipient. Only they can redeem it.', ['recipient' => $giftCard->recipient_name]) }}
{{ __('Back to My Gift Cards') }} @else @auth {{ __('Redeem :amount to my wallet', ['amount' => $amountLabel]) }} @else {{ __('Redeem :amount to my wallet', ['amount' => $amountLabel]) }} {{ __('New to :site?', ['site' => setting('site_title', config('app.name'))]) }} {{ __('Sign up to redeem →') }} @endauth @endif