@extends('admin.layout.main') @section('admin')
View and manage all payment transactions
Total Transactions
{{ $transections->total() }}
All time transactions
Verified
{{ $transections->where('status', 'verified')->count() }}
Pending
{{ $transections->where('status', 'pending_verification')->count() }}
Failed
{{ $transections->where('status', 'failed')->count() }}
| Transaction | Client & Project | Status | Actions |
|---|---|---|---|
|
#{{ $transaction->transaction_id }}
{{ $transaction->created_at->format('M d, Y') }}
•
{{ $transaction->created_at->format('h:i A') }}
|
{{ strtoupper(substr($transaction->user->name ?? 'U', 0, 1)) }}
{{ $transaction->user->name ?? 'N/A' }} {{ $transaction->user->email ?? 'N/A' }} {{ $transaction->project->name ?? 'N/A' }} |
@php $statusConfig = [ 'verified' => [ 'color' => 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300', 'icon' => 'fa-check-circle' ], 'pending_verification' => [ 'color' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300', 'icon' => 'fa-clock' ], 'failed' => [ 'color' => 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300', 'icon' => 'fa-times-circle' ] ]; $config = $statusConfig[$transaction->status] ?? [ 'color' => 'bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300', 'icon' => 'fa-question-circle' ]; @endphp {{ str_replace('_', ' ', $transaction->status) }} | Details |
|
No transactions found Transactions will appear here once payments are made |
|||