{{-- Header --}}

{{ __('Payment Confirmed!') }}

{{-- Body --}}
@php $meta = $order->metadata ?? []; $planName = $order->plan?->name ?? ($meta['plan_name'] ?? 'Plan'); $currency = \App\Models\Currency::where('code', $order->currency)->first(); $sym = $currency?->symbol ?: '$'; $couponCode = $meta['coupon_code'] ?? null; $discount = (float) ($meta['discount'] ?? 0); $originalPrice = (float) ($meta['original_price'] ?? $order->amount); $appName = config('app.name'); @endphp

{{ __('Hi') }} {{ $order->user->name }},

{{ __('Thank you for your purchase. Your payment has been confirmed and your plan is now active.') }}

@if($couponCode && $discount > 0) @endif
{{ __('Order Number') }} {{ $order->order_number }}
{{ __('Plan') }} {{ $planName }}
{{ __('Payment Method') }} {{ $order->payment_method }}
{{ __('Original Price') }} {{ $sym }}{{ number_format($originalPrice, 2) }}
{{ __('Coupon') }} ({{ $couponCode }}) −{{ $sym }}{{ number_format($discount, 2) }}
{{ __('Date') }} {{ $order->created_at->format('d M Y, h:i A') }}
{{ __('Status') }} {{ __('Paid') }}
{{ __('Total Paid') }} {{ $sym }}{{ number_format($order->amount, 2) }} {{ $order->currency }}
{{ __('View Invoice') }}