@extends('layouts.app') @section('page-title', $pageTitle) @section('content')

{{ __tr('Payment Successful!') }}

@if($order)

{{ __tr('Thank you for your payment!') }}

{{ __tr('Your order has been confirmed and will be processed shortly.') }}

{{ __tr('Order Details') }}

{{ __tr('Order ID') }}: {{ $order->order_id }}

{{ __tr('Status') }}: {{ ucfirst($order->status) }}

{{ __tr('Total Amount') }}: {{ $order->currency }} {{ number_format($order->total_amount, 2) }}

{{ __tr('Customer') }}: {{ $order->customer_name ?: $order->customer_phone }}

@if($order->delivery_address)

{{ __tr('Delivery Address') }}:
{{ $order->delivery_address }}

@endif
@if($payment)
{{ __tr('Payment Details') }}

{{ __tr('Payment ID') }}: {{ $payment->payment_id }}

{{ __tr('Amount') }}: {{ $payment->currency }} {{ number_format($payment->amount, 2) }}

{{ __tr('Status') }}: {{ ucfirst($payment->status) }}

{{ __tr('Gateway') }}: {{ $payment->gateway_label }}

@if($payment->payment_completed_at)

{{ __tr('Completed At') }}: {{ $payment->payment_completed_at->format('M d, Y H:i') }}

@endif
@endif
@if($order->items)
{{ __tr('Order Items') }}
@foreach($order->getItemsWithProductNames() as $item) @endforeach
{{ __tr('Item') }} {{ __tr('Quantity') }} {{ __tr('Price') }} {{ __tr('Total') }}
{{ $item['display_name'] ?? __tr('Product Item') }} {{ $item['quantity'] ?? 1 }} {{ $order->currency }} {{ number_format($item['item_price'] ?? 0, 2) }} {{ $order->currency }} {{ number_format(($item['item_price'] ?? 0) * ($item['quantity'] ?? 1), 2) }}
@endif
{{ __tr('What happens next?') }}
  • {{ __tr('You will receive a confirmation message on WhatsApp') }}
  • {{ __tr('Your order will be processed within 24 hours') }}
  • {{ __tr('You will receive tracking details once shipped') }}
  • {{ __tr('Expected delivery: 2-3 business days') }}
@else

{{ __tr('Payment Successful!') }}

{{ __tr('Your payment was successful, but we could not find the order details.') }}

{{ __tr('Please contact support if you have any questions.') }}

@if($orderId)

{{ __tr('Reference ID') }}:
{{ $orderId }}

@endif @if($paymentId)

{{ __tr('Payment ID') }}: {{ $paymentId }}

@endif
@endif
@endsection @push('head') @endpush