@extends('layouts.admin')
@section('title', 'Transactions')
@section('admin-content')
Financial Transactions
Monitor payments, revenue, and order history
{{ number_format($stats['total_transactions'] ?? 0) }}
Total Transactions
{{ number_format($stats['successful'] ?? 0) }}
Successful
{{ number_format($stats['pending'] ?? 0) }}
Pending
{{ number_format($stats['failed'] ?? 0) }}
Failed
₹{{ number_format($stats['total_revenue'] ?? 0, 2) }}
Total Revenue Generated
₹{{ number_format($stats['platform_earnings'] ?? 0, 2) }}
Platform Earnings (Commission)
| Transaction ID |
User / Payer |
Type |
Amount |
Status |
Payment Method |
Date & Time |
Actions |
@forelse($transactions as $transaction)
|
#{{ $transaction->id }}
|
@if($transaction->user)
{{ $transaction->user->name }}
{{ $transaction->user->email }}
@else
Unknown User
@endif
|
@if($transaction->transaction_type == 'subscription')
Subscription
@elseif($transaction->transaction_type == 'promotion')
Promotion
@else
{{ ucfirst($transaction->transaction_type) }}
@endif
|
₹{{ number_format($transaction->total_amount, 2) }}
|
@if($transaction->status == 'success')
Success
@elseif($transaction->status == 'pending')
Pending
@elseif($transaction->status == 'failed')
Failed
@else
{{ ucfirst($transaction->status) }}
@endif
|
{{ ucfirst($transaction->payment_method ?? 'N/A') }}
|
{{ $transaction->created_at->format('M d, Y') }}
{{ $transaction->created_at->format('h:i A') }}
|
|
@empty
No Transactions Found
Try adjusting your filters
|
@endforelse
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection