@if ($payment)

{{ trans('plugins/payment::payment.payment_id') }}: {{ Arr::get($payment, 'id') }}

{{ trans('plugins/payment::payment.amount') }}: {{ Arr::get($payment, 'amount') / 100 }} {{ Arr::get($payment, 'currency') }}

{{ trans('plugins/payment::payment.email') }}: {{ Arr::get($payment, 'customer.email') }}

{{ trans('core/base::tables.created_at') }}: {{ BaseHelper::formatDate(Arr::get($payment, 'created_at')) }}


@if ($refunds = Arr::get($paymentModel->metadata, 'refunds', []))
{{ trans('plugins/payment::payment.amount_refunded') }}: {{ collect($refunds)->sum('_data_request.refund_amount') }}
@foreach ($refunds as $refund)
@include('plugins/paystack::refund-detail')
@endforeach @endif @include('plugins/payment::partials.view-payment-source') @endif