@extends('emails.layout') @section('title', $isGift ? 'Gift Voucher Received' : 'Voucher Purchase Confirmation') @section('header-title', $isGift ? 'Gift Voucher Received' : 'Voucher Purchase Confirmation') @section('header-subtitle', $isGift ? 'A special gift awaits you' : 'Your voucher is ready to use') @section('content') {{-- Gift Message from Sender (for recipient) --}} @if($isGift && $giftMessage)

Personal Message from {{ $buyerName }}:

"{{ $giftMessage }}"

@endif {{-- Greeting --}} @if($isGift)

Dear {{ $recipientName }},

We are pleased to inform you that {{ $buyerName }} has purchased a gift voucher for you. This voucher can be applied to your next purchase with JurisLocator.

@else

Dear {{ $buyerName }},

Thank you for your purchase. Your voucher has been successfully processed and is now active for use on our platform.

{{-- Gift Purchase Confirmation (for buyer) --}} @if($recipientName && $recipientEmail)

Gift Purchase Confirmation

This voucher has been sent as a gift to:

{{ $recipientName }} ({{ $recipientEmail }})

@if($giftMessage)

Your message: "{{ $giftMessage }}"

@endif
@endif @endif {{-- Redemption Code Highlight Box --}}

Your Unique Redemption Code

{{ $redemptionCode }}
@if($voucherType === 'percentage') {{ $voucherValue }}% OFF @else ${{ number_format($voucherValue, 2) }} OFF @endif

Note: This is a unique one-time use code specific to your purchase

{{-- Voucher Details --}}

Voucher Details

@if($voucherDescription) @endif @if($minPurchase) @endif @if($validUntil) @endif
Description: {{ $voucherDescription }}
Redemption Code: {{ $redemptionCode }}
Voucher Type: {{ $voucherName }}
Discount Value: @if($voucherType === 'percentage') {{ $voucherValue }}% off your purchase @else ${{ number_format($voucherValue, 2) }} off your purchase @endif
Minimum Purchase: ${{ number_format($minPurchase, 2) }}
Valid Until: {{ \Carbon\Carbon::parse($validUntil)->format('F j, Y') }}
{{-- How to Redeem Your Voucher --}}

Redeeming Your Voucher

To use your voucher discount, please follow these steps:

Account Access

To redeem your voucher, you will need to access your JurisLocator user portal:

Existing Users: Login to Your Account
New Users: Create a New Account
User Portal: {{ env('FRONTEND_URL', 'http://localhost:5174') }}

Important Reminders:

{{-- Call to Action Buttons --}}
@if($isGift) Login to Redeem Create Account @else Browse Services @endif
{{-- Support Information --}}

Need Assistance?

If you have any questions about your voucher, encounter any issues during redemption, or require further assistance, our support team is here to help. Please contact us at {{ config('mail.from.address') }}

We appreciate your business and look forward to serving you.

@endsection @section('footer-greeting', 'Best regards from the JurisLocator Team')