@if($order->shipping_address && is_array($order->shipping_address)) {{ $order->shipping_address['address_line1'] ?? '' }}, {{ $order->shipping_address['city'] ?? '' }} @endif
Payment Method: {{ $order->payment?->first()?->payment_method ?? $order->payment_method ?? 'N/A' }}
Transaction ID: {{ $order->payment?->first()?->transaction_id ?? $order->payment_transaction_id ?? 'N/A' }}
@php $payment = $order->payment?->first(); $change = 0; if ($payment && $payment->gateway_response) { $resp = is_array($payment->gateway_response) ? $payment->gateway_response : json_decode($payment->gateway_response, true); $change = $resp['change'] ?? 0; } @endphp @if($change > 0)Change: {{ price($change) }}
@endif