@extends('dashboard.layout') @section('title', 'Transaction History - Invo Security') @section('page-title', 'Transaction History') @section('page-subtitle', 'View and manage all payment transactions') @section('content')
Total Transactions
{{ $transections->total() }}
All payment records
Verified
{{ $transections->where('status', 'verified')->count() }}
Pending
{{ $transections->where('status', 'pending_verification')->count() }}
Awaiting verification
Failed
{{ $transections->where('status', 'failed')->count() }}
| Transaction Details | Project & User | Amount & Method | Status | Actions |
|---|---|---|---|---|
|
#{{ $transaction->transaction_id }} ID: {{ $transaction->id }}
{{ $transaction->created_at->format('M d, Y') }}
•
{{ $transaction->created_at->format('h:i A') }}
|
Project
{{ $transaction->project->name ?? 'N/A' }}
User
{{ $transaction->user->name ?? 'N/A' }} {{ $transaction->user->email ?? 'N/A' }} |
@if($transaction->amount)
Amount
{{ number_format($transaction->amount, 2) }} SR
Method
@php
$methodConfig = [
'cash' => [
'color' => 'from-green-500 to-emerald-600',
'icon' => 'fa-money-bill'
],
'bank_transfer' => [
'color' => 'from-blue-500 to-blue-600',
'icon' => 'fa-university'
],
'check' => [
'color' => 'from-purple-500 to-purple-600',
'icon' => 'fa-file-invoice'
],
'online' => [
'color' => 'from-indigo-500 to-indigo-600',
'icon' => 'fa-globe'
],
'mobile_banking' => [
'color' => 'from-orange-500 to-orange-600',
'icon' => 'fa-mobile-alt'
],
'card' => [
'color' => 'from-red-500 to-red-600',
'icon' => 'fa-credit-card'
]
];
$config = $methodConfig[$transaction->payment_method] ?? [
'color' => 'from-gray-500 to-gray-600',
'icon' => 'fa-money-bill'
];
@endphp
{{ ucfirst(str_replace('_', ' ', $transaction->payment_method)) }}
|
@php $statusConfig = [ 'verified' => [ 'color' => 'from-green-500 to-emerald-600', 'icon' => 'fa-check-circle', 'text' => 'text-white' ], 'pending_verification' => [ 'color' => 'from-yellow-500 to-orange-500', 'icon' => 'fa-clock', 'text' => 'text-white' ], 'failed' => [ 'color' => 'from-red-500 to-rose-600', 'icon' => 'fa-times-circle', 'text' => 'text-white' ] ]; $config = $statusConfig[$transaction->status] ?? [ 'color' => 'from-gray-500 to-gray-600', 'icon' => 'fa-question-circle', 'text' => 'text-white' ]; @endphp {{ str_replace('_', ' ', ucfirst($transaction->status)) }} |
View
@if($transaction->receipt)
@endif
|
|
No transactions found Transactions will appear here once payments are made |
||||
#{{ $transaction->transaction_id }}
{{ $transaction->project->name ?? 'N/A' }}
{{ $transaction->user->name ?? 'N/A' }}
{{ $transaction->user->email ?? 'N/A' }}
No transactions found
Transactions will appear here once payments are made