@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') }}: {{ BaseHelper::formatDate($payment->createdAt) }}
{{ trans('plugins/payment::payment.paid_at') }}: {{ BaseHelper::formatDate($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.id') }}: {{ htmlspecialchars($refund->id) }}
{{ trans('plugins/payment::payment.amount') }}: {{ $refund->amount->value }} {{ $refund->amount->currency }}
{{ trans('plugins/payment::payment.refunds.description') }}: {{ $refund->description }}
{{ trans('plugins/payment::payment.refunds.status') }}: {{ $refund->status }}
{{ trans('plugins/payment::payment.refunds.create_time') }}: {{ BaseHelper::formatDate($refund->createdAt) }}