@extends('admin.master_layout') @section('contant') @push('scripts') @endpush
Processed Transactions
Total Processed Transactions: {{$transactions->count();}}
@csrf
 All Processed Transactions   
@php $tot_bdt = 0; $tot_aud = 0; @endphp @foreach($transactions as $transaction) @php try { $cid = $transaction->sender_id; $customer = App\Http\Controllers\TransactionsController::getCustomer($cid); $customerName = $customer->name; $customerContact = $customer->contact; }catch (exception $e) { $customerName = ""; $customerContact = ""; } try { $rid = $transaction->receiver_id; $receiver = App\Http\Controllers\TransactionsController::getReceiver($rid); $receiverName = $receiver->name; $receiverContact = $receiver->contact; }catch (exception $e) { $receiverName = ""; $receiverContact = ""; } try { $aid = $transaction->assign_agent; $agent = App\Http\Controllers\AgentController::getLocalAgent($aid); $agentId = $agent->agent_id; $agentName = $agent->name; }catch (exception $e) { $agentId = ""; $agentName = ""; } @endphp @php $tot_aud += $transaction->total_pay_amount; $tot_bdt += $transaction->equivalent_amount; @endphp @endforeach
SL Date Customer ID Receiver TrxId Currency Status Agent AUD BDT Actions
{{$loop->iteration}} {{$transaction->cdate}}
{{ \Carbon\Carbon::createFromFormat('H:i:s', $transaction->ctime)->format('h:i A') }}
ID: {{$transaction->sender_id}}
{{$customerName}}
{{$customerContact}}
@if($receiverName == "") No Receiver @else {{$receiverName}} @endif
{{$receiverContact}}
{{$transaction->trx_id}} @if($transaction->currency == "BDT")
BDT
@elseif($transaction->currency == "Bkash")
Bkash
@elseif($transaction->currency == "Nagad")
Nagad
@elseif($transaction->currency == "Roket")
Rocket
@elseif($transaction->currency == "Recharge")
Recharge
@endif
Processed {{$agentId}}
{{$agentName}}
{{number_format($transaction->total_pay_amount, 2)}} {{number_format($transaction->equivalent_amount, 2)}}   Details     Cancel
Total Processed Amount:   {{number_format($tot_aud, 2)}} {{number_format($tot_bdt, 2)}}
Transaction Processing
@csrf
User Image
@push('js_scripts') @endpush @endsection