@extends('admin.layout.main') @section('admin')

Transactions

View and manage all payment transactions

Total Transactions

{{ $transections->total() }}

All time transactions

Verified

{{ $transections->where('status', 'verified')->count() }}

@php $verifiedPercentage = $transections->count() > 0 ? ($transections->where('status', 'verified')->count() / $transections->count()) * 100 : 0; @endphp
{{ number_format($verifiedPercentage, 0) }}%

Pending

{{ $transections->where('status', 'pending_verification')->count() }}

Requires verification

Failed

{{ $transections->where('status', 'failed')->count() }}

Failed transactions

All Transactions

@forelse($transections as $transaction) @empty @endforelse
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

@if($transections->hasPages())
Showing {{ $transections->firstItem() }} to {{ $transections->lastItem() }} of {{ $transections->total() }} results
{{ $transections->links() }}
@endif
@endsection