@extends('layouts.state') @section('title', 'Payments') @section('content')
Manage and track all state-level payments
| Transaction ID | User | Amount | Type | Date | Status | Actions |
|---|---|---|---|---|---|---|
#{{ $payment->transaction_id ?? 'TXN-' . $payment->id }}
|
{{ substr($payment->user->first_name ?? 'U', 0, 1) }}{{ substr($payment->user->last_name ?? 'N', 0, 1) }}
{{ $payment->user->first_name ?? 'Unknown' }} {{ $payment->user->last_name ?? 'User' }}{{ $payment->user->email ?? 'N/A' }} |
${{ number_format($payment->amount ?? 0, 2) }} | {{ ucfirst($payment->type ?? 'Payment') }} | {{ $payment->created_at ? $payment->created_at->format('M d, Y H:i') : 'N/A' }} | @if(($payment->status ?? 'pending') == 'completed') Completed @elseif(($payment->status ?? 'pending') == 'pending') Pending @elseif(($payment->status ?? 'pending') == 'failed') Failed @else Unknown @endif | |
#TXN-001 |
JD
John Doejohn.doe@example.com |
$150.00 | Event Registration | {{ now()->format('M d, Y H:i') }} | Completed |