@extends('layouts.admin') @section('title', 'Payments — Admin') @section('heading', 'Payments') @section('content')

Refunds are issued from the Paystack dashboard; the refund webhook updates status here.

@if ($tab === 'payments')
@foreach ($payments as $p) @endforeach
DateReferenceUserPlanStatusAmount
{{ $p->created_at->format('j M Y H:i') }}{{ $p->reference }}{{ $p->user?->name ?? 'Deleted user' }}{{ $p->plan?->displayName() }}{{ $p->status->label() }}{{ $p->formattedAmount() }}
{{ $payments->links() }} @elseif ($tab === 'subscriptions')
@foreach ($subscriptions as $s) @endforeach
UserPlanStatusPeriod endsProvider code
{{ $s->user->name }}{{ $s->plan->displayName() }}{{ $s->status->label() }}{{ $s->current_period_end?->format('j M Y') }}{{ $s->provider_subscription_code ?? '—' }}
{{ $subscriptions->links() }} @else
@foreach ($events as $e) @endforeach
ReceivedEventReferenceStatusError
{{ $e->created_at->format('j M Y H:i:s') }}{{ $e->event }}{{ $e->reference ?? '—' }}{{ $e->status }}{{ \Illuminate\Support\Str::limit($e->error, 80) }}
{{ $events->links() }} @endif @endsection