@if ($payment)

{{ trans('plugins/payment::payment.payment_id') }}: {{ $payment->id }}

{{ trans('plugins/payment::payment.amount') }}: {{ $payment->amount->value }} {{ $payment->amount->currency }}

{{ trans('plugins/payment::payment.amount_remaining') }}: {{ $payment->amountRemaining->value }} {{ $payment->amountRemaining->currency }}

{{ trans('plugins/payment::payment.method_name') }}: {{ $payment->method }}

{{ trans('plugins/payment::payment.status') }}: {{ $payment->status }}

{{ trans('core/base::tables.created_at') }}: {{ Carbon\Carbon::now()->parse($payment->createdAt) }}

{{ trans('plugins/payment::payment.paid_at') }}: {{ Carbon\Carbon::now()->parse($payment->paidAt) }}

@if ($payment->amount->value - $payment->amountRemaining->value) @php $amountRefunded = ''; if ((float) $payment->amountRefunded->value) { $amountRefunded = ' (' . $payment->amountRefunded->value . ' ' . $payment->amountRefunded->currency . ')'; } $refunds = $payment->refunds(); @endphp
{{ trans('plugins/payment::payment.refunds.title') . $amountRefunded }}

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