@extends('layouts.app') @section('title', 'Payment Detail') @section('content') @include('super-admin.partials.nav') Back

Status: {{ $payment->status }} @if ($payment->awaitingReview()) Awaiting review @endif

Company: {{ $payment->company?->name ?? '—' }}

Payer: {{ $payment->payer_email ?? $payment->user?->email ?? '—' }}

Amount due: {{ number_format((float) $payment->amount, 2) }} {{ $payment->currency }}

Paid at: {{ $payment->paid_at?->format('Y-m-d H:i') ?? '—' }}

Failure: {{ $payment->failure_reason ?? '—' }}

@if ($payment->reviewer)

Reviewed by: {{ $payment->reviewer->name }} ({{ $payment->reviewed_at?->format('Y-m-d H:i') }})

@endif @if ($payment->financeTransaction)

Finance txn: #{{ $payment->financeTransaction->id }} ({{ $payment->financeTransaction->status }})

@endif
@if ($payment->provider === 'offline')

MoMo proof

Reported amount: {{ $payment->amount_reported !== null ? number_format((float) $payment->amount_reported, 2).' '.$payment->currency : '—' }}

Transaction ID: {{ $payment->momo_transaction_id ?? '—' }}

Payer phone: {{ $payment->momo_number ?? '—' }}

Submitted: {{ $payment->proof_submitted_at?->format('Y-m-d H:i') ?? '—' }}

@if ($payment->proof_path) Download document @else

No supporting document yet.

@endif
@endif @if ($payment->provider === 'bank')

Bank proof

Reported amount: {{ $payment->amount_reported !== null ? number_format((float) $payment->amount_reported, 2).' '.$payment->currency : '—' }}

Payer bank: {{ $payment->payer_bank_name ?? '—' }}

Account name: {{ $payment->payer_account_name ?? '—' }}

Account number: {{ $payment->payer_account_number ?? '—' }}

Transfer reference: {{ $payment->bank_reference ?? '—' }}

Submitted: {{ $payment->proof_submitted_at?->format('Y-m-d H:i') ?? '—' }}

@if ($payment->proof_path) Download document @else

No supporting document yet.

@endif
@endif @if ($payment->awaitingReview())
@csrf

Approve payment

Confirms the subscription (or branding add-on), posts finance, and emails/SMS the company.

@endif @if (! $payment->isSuccess())
@csrf

Reject / mark failed

@endif
@endsection