@extends('layouts.admin') @section('title', 'Transactions') @section('page-title', 'Transactions') @section('content') {{-- Tabs --}}
@foreach(['pending_deposits' => 'Pending Deposits', 'pending_withdrawals' => 'Pending Withdrawals', 'all' => 'All Transactions'] as $key => $label) {{ $label }} @if($key === 'pending_deposits' && $pendingDepositCount > 0) {{ $pendingDepositCount }} @elseif($key === 'pending_withdrawals' && $pendingWithdrawCount > 0) {{ $pendingWithdrawCount }} @endif @endforeach
{{-- Filters --}}
Export CSV
{{-- Transactions Table --}}
@if($tab === 'pending_withdrawals' || $tab === 'all')@endif @if($tab !== 'all')@endif @forelse($transactions as $txn) @if($tab === 'pending_withdrawals' || $tab === 'all') @endif @if($tab !== 'all') @endif @empty @endforelse
User Type Amount Method TRX IDAccountStatus DateActions

{{ $txn->user->name ?? 'Deleted' }}

{{ $txn->user->phone ?? '-' }}

{{ str_replace('_',' ',$txn->type) }} ৳{{ number_format($txn->amount, 2) }} {{ $txn->method ?? '-' }} {{ $txn->trx_id ?? '-' }}{{ $txn->account_number ?? '-' }} {{ ucfirst($txn->status) }} {{ $txn->created_at->format('d M Y\ng:ia') }} @if($txn->status === 'pending')
@if($txn->type === 'deposit')
@csrf
@elseif($txn->type === 'withdraw')
@csrf
@endif
@endif
No transactions found.
{{ $transactions->withQueryString()->links() }}
{{-- Reject Modal --}} @endsection @push('scripts') @endpush