@extends('layouts.app') @section('title', 'Payment Response') @push('styles') @endpush @section('content')
@if($status === 'success')

Payment Successful!

{{ $message }}

Your shipment payment has been processed successfully. Your shipment will be processed and shipped soon.

@if(isset($shipmentPayment) && $shipmentPayment)

Payment Details:

Tracking Number: {{ $shipmentPayment->getRawOriginal('tracking_number') ?? 'N/A' }}

Amount Paid: ₹ {{ number_format($shipmentPayment->amount ?? 0, 2) }}

@if($shipmentPayment->suite_number)

Suite Number: {{ $shipmentPayment->suite_number }}

@endif
@endif
@if($isAuthenticated ?? false) View Shipments Go to Dashboard @else

Please log in to view your updated shipment status.

Login to View Shipments @endif
@else

Payment {{ $status === 'cancelled' ? 'Cancelled' : 'Failed' }}

{{ $message }}

@if($status === 'cancelled') Your payment was cancelled. Please try again if you wish to complete the payment. @else There was an issue processing your payment. Please try again or contact support if the problem persists. @endif

@if(isset($shipmentPayment) && $shipmentPayment)

Payment Details:

Tracking Number: {{ $shipmentPayment->getRawOriginal('tracking_number') ?? 'N/A' }}

Amount: ₹ {{ number_format($shipmentPayment->amount ?? 0, 2) }}

@if($shipmentPayment->suite_number)

Suite Number: {{ $shipmentPayment->suite_number }}

@endif
@endif
@if($isAuthenticated ?? false) View Shipments Go to Dashboard @else

Please log in to view your shipment details and retry payment.

Login to View Shipments @endif
@endif
@endsection