@extends('admin.layouts.app') @section('title','Payment Details') @section('page-title','Payment Details') @section('page-subtitle','Transaction, fee breakdown and invoice information') @section('payments-active','active') @section('content') @php $currency = $payment->currencySymbol(); $lineItems = []; if ($payment->base_registration_fee > 0) { $lineItems[] = [ 'description' => 'Registration Fee', 'amount' => $payment->base_registration_fee, ]; } if ($payment->spouse_fee > 0) { $lineItems[] = [ 'description' => 'Spouse Registration', 'amount' => $payment->spouse_fee, ]; } if (empty($lineItems) && $payment->feeItem) { $lineItems[] = [ 'description' => $payment->feeItem->fee_name, 'amount' => $payment->amount, ]; } @endphp
Back to Payments @if($payment->registration) View Participant @endif
{{ $payment->payment_reference }}

{{ str_replace('_', ' ', ucfirst($payment->payment_type)) }}

{{ ucfirst(str_replace('_', ' ', $payment->status)) }}
Amount
{{ $currency }}{{ number_format($payment->amount, 2) }}
Gateway
{{ ucfirst($payment->payment_gateway ?? '—') }}
Currency
{{ $payment->currency ?? 'NGN' }}
Created
{{ $payment->created_at?->format('M d, Y H:i') }}
Paid At
{{ $payment->paid_at?->format('M d, Y H:i') ?? '—' }}
Gateway Reference
{{ $payment->gateway_reference ?? '—' }}
@if($payment->fee_period || $payment->participant_category || $payment->attendance_type)

@if($payment->fee_period)
Fee Period
{{ str_replace('_', ' ', ucfirst($payment->fee_period)) }}
@endif @if($payment->participant_category)
Category
{{ str_replace('_', ' ', ucfirst($payment->participant_category)) }}
@endif @if($payment->attendance_type)
Attendance
{{ ucfirst($payment->attendance_type) }}
@endif @endif @if($payment->confirmedBy || $payment->notes)

@if($payment->confirmedBy)
Confirmed By
{{ $payment->confirmedBy->name }}
@endif @if($payment->notes)
Notes
{{ $payment->notes }}
@endif @endif
@if(! empty($lineItems))
Fee Breakdown
@foreach($lineItems as $item) @endforeach
Description Amount
{{ $item['description'] }} {{ $currency }}{{ number_format($item['amount'], 2) }}
Total {{ $currency }}{{ number_format($payment->amount, 2) }}
@endif @if($payment->registration)
Linked Registration
Registration #
{{ $payment->registration->registration_number }}
Category
{{ str_replace('_', ' ', ucfirst($payment->registration->registration_category)) }}
Payment Status
{{ ucfirst($payment->registration->payment_status) }}
@if($payment->registration->attending_with_spouse)
Spouse
{{ $payment->registration->spouse_name }}
@endif
@endif
Payer

{{ $payment->user?->name }}

{{ $payment->user?->email }}

{{ $payment->user?->phone_number ?? '—' }}

{{ $payment->user?->membershipCategory?->name ?? '—' }}

Conference

{{ $payment->conference?->name }}

{{ $payment->conference?->city }} {{ $payment->conference?->conference_year }}

{{ $payment->conference?->venue ?? '—' }}

@if($payment->invoice)
Invoice

{{ $payment->invoice->invoice_number }}

Total: {{ $currency }}{{ number_format($payment->invoice->total_amount, 2) }}

Paid: {{ $currency }}{{ number_format($payment->invoice->amount_paid, 2) }}

Balance: {{ $currency }}{{ number_format($payment->invoice->balance, 2) }}

{{ ucfirst($payment->invoice->status) }} @if($payment->invoice->receipt_number)

Receipt: {{ $payment->invoice->receipt_number }}

@endif
@endif @if($payment->status === 'pending')
Manual Confirmation

Verify on Paystack before confirming. If the transaction never completed, cancel it so the user can retry.

@csrf
@csrf
@elseif($payment->isCancellable())
Cancel Failed Attempt
@csrf
@endif
@endsection