@for($i = 0; $i < 60; $i++)
@php
$left = ($i * 13) % 100;
$delay = ($i % 10) * 0.2;
$duration = 3 + ($i % 4);
$colors = ['#FDE68A','#FCA5A5','#A7F3D0','#BFDBFE','#FBCFE8','#FDBA74','#A5B4FC'];
$size = 6 + ($i % 5) * 2;
$height = ($i % 2) === 0 ? 4 : 9;
$radius = $i % 3 === 2 ? '50%' : '1.5px';
@endphp
@endfor
@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
{{-- 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 --}}
{{-- 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
@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