@if ($payment) @php $result = $payment->result; $purchaseUnits = $result->purchase_units; $purchaseUnit = Arr::get($purchaseUnits, 0); $payer = $result->payer; $shipping = $purchaseUnit->shipping; @endphp @php $refunds = null; $payments = $purchaseUnit->payments; if ($payments && !empty($payments->refunds) && $payments->refunds) { $refunds = $payments->refunds; } @endphp @if ($refunds)
{{ trans('plugins/payment::payment.refunds.title') . ' (' . count((array)$refunds) . ')' }}

@foreach ($refunds as $item)
@endforeach @endif @include('plugins/payment::partials.view-payment-source') @endif