@extends('layouts.frontend') @section('title', __('Payment Successful')) @section('content')
@if($order->status === 'pending_verification')

{{ __('Payment Pending') }}

{{ __('Your order has been placed. Payment is awaiting verification.') }}

@if(session('payment_pending'))

{{ session('payment_pending') }}

@else

{{ __('Once your payment is confirmed, your plan will be activated automatically. You will be notified by email.') }}

@endif @else

{{ __('Payment Successful') }}

{{ __('Thank you for your purchase. Your plan has been activated.') }}

@endif
{{ __('Order Number') }} {{ $order->order_number }}
{{ __('Plan') }} {{ $order->plan?->name ?? 'N/A' }}
{{ $order->status === 'pending_verification' ? __('Amount') : __('Amount Paid') }} {{ $currencySymbol }}{{ number_format($order->amount, 2) }} {{ $order->currency }}
{{ __('Status') }} @if($order->status === 'completed') {{ __('Completed') }} @elseif($order->status === 'pending_verification') {{ __('Awaiting Verification') }} @else {{ ucfirst($order->status) }} @endif
@if($order->payment_method)
{{ __('Payment Method') }} {{ $order->payment_method }}
@endif
{{ __('Date') }} {{ $order->created_at->format('M d, Y h:i A') }}
@endsection