@extends('admin.layout') @section('page-title', 'Hold Account Transactions') @section('content')

Transaction Report

Payment Method: {{ $holdAccount->paymentMethod->name ?? 'N/A' }}

Current Balance

${{ number_format($holdAccount->balance, 2) }}

Total Credits

${{ number_format($totalCredits, 2) }}

Total Debits

${{ number_format($totalDebits, 2) }}

Net Balance

${{ number_format($netBalance, 2) }}

@if(request()->hasAny(['type', 'start_date', 'end_date'])) Clear @endif
@forelse($transactions as $transaction) @empty @endforelse
Date Type Amount Description Balance Before Balance After Processed By
{{ $transaction->created_at->format('M d, Y H:i') }} {{ ucfirst($transaction->type) }} {{ $transaction->type === 'credit' ? '+' : '-' }}${{ number_format($transaction->amount, 2) }} {{ $transaction->description }} ${{ number_format($transaction->balance_before, 2) }} ${{ number_format($transaction->balance_after, 2) }} {{ $transaction->user->name ?? 'N/A' }}
No transactions found
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection