@extends('layouts.admin') @section('title', 'Transactions') @section('page-title', 'Transactions') @section('content') {{-- Tabs --}}
| User | Type | Amount | Method | TRX ID | @if($tab === 'pending_withdrawals' || $tab === 'all')Account | @endifStatus | Date | @if($tab !== 'all')Actions | @endif
|---|---|---|---|---|---|---|---|---|
|
{{ $txn->user->name ?? 'Deleted' }} {{ $txn->user->phone ?? '-' }} |
{{ str_replace('_',' ',$txn->type) }} | ৳{{ number_format($txn->amount, 2) }} | {{ $txn->method ?? '-' }} | {{ $txn->trx_id ?? '-' }} | @if($tab === 'pending_withdrawals' || $tab === 'all'){{ $txn->account_number ?? '-' }} | @endif{{ ucfirst($txn->status) }} | {{ $txn->created_at->format('d M Y\ng:ia') }} | @if($tab !== 'all')
@if($txn->status === 'pending')
@if($txn->type === 'deposit')
@elseif($txn->type === 'withdraw')
@endif
@endif
|
@endif
| No transactions found. | ||||||||