@extends('layouts.support_member') @section('breadcrumb') @endsection @section('content') @if(support_can('reports')) @include('support_member.beneficiary_transactions.totals') @endif
{{ tr('beneficiary_transactions') }}({{ $total ?: 0 }})
@include('support_member.beneficiary_transactions.search') @if(support_can('view_logs')) @endif @forelse ($beneficiary_transactions as $key => $transaction) @if(support_can('view_logs')) @endif @empty @endforelse
{{ tr('s_no') }} {{ tr('date') }} {{ tr('order_id') }} {{ tr('txn_ref_no') }} {{ tr('client_reference_id') }} {{ tr('user') }} {{ tr('sender') }} {{ tr('beneficiary') }} {{ tr('amount') }} {{ tr('recipient_amount') }} {{ tr('currency') }} {{ tr('status') }} {{ tr('sub_status') }} {{ tr('reference') }} {{ tr('processed_via') }}{{ tr('action') }}
{{ $beneficiary_transactions->firstItem() + $key }} {{ common_date($transaction->created_at, auth('support_member')->user()->timezone ?? DEFAULT_TIMEZONE, 'd M Y h:i A') }} @if($transaction->order_id) {{ $transaction->order_id }} @endif @if($transaction->txn_ref_no) {{ $transaction->txn_ref_no }} @endif @if($transaction->client_reference_id) {{ $transaction->client_reference_id }} @endif {{ optional($transaction->user)->name ?? tr('na') }}
{{ optional($transaction->user)->email }}
{{ trim(($transaction->sender?->first_name ?? '') . ' ' . ($transaction->sender?->last_name ?? '')) ?: tr('na') }} @php $validation = $transaction->beneficiaryAccount->validation ?? null; $isValidated = $validation ? true : false; $isAccountExist = $validation->is_account_exists ?? false; $isNre = $validation->is_nre_account ?? false; $pillClass = 'badge bg-warning-subtle text-warning border border-warning-subtle'; $pillText = tr('bank_account_not_validated'); if ($isValidated && $isNre) { $pillClass = 'badge bg-danger-subtle text-danger border border-danger-subtle'; $pillText = "NRE"; } elseif ($isValidated && $isAccountExist && ! $isNre) { $pillClass = 'badge bg-success-subtle text-success border border-success-subtle'; $pillText = "Non-NRE"; } elseif ($isValidated && ! $isAccountExist) { $pillClass = 'badge bg-danger-subtle text-danger border border-danger-subtle'; $pillText = tr('bank_account_not_exist'); } @endphp
{{ $transaction->beneficiaryAccount->type == 1 ? ($transaction->beneficiaryAccount->first_name.' '.$transaction->beneficiaryAccount->last_name) : $transaction->beneficiaryAccount->business_name }} @if($transaction->beneficiaryAccount->currency == "INR") {{ $pillText }} @endif
{{ formatted_amount($transaction->amount, $transaction->quote?->source?->currency) }} {{ formatted_amount($transaction->recipient_amount, $transaction->receiving_currency) }} {{ $transaction->receiving_currency ?? tr('na') }} {{ beneficiary_transaction_status_formatted($transaction->status) }} @if($transaction->sub_status)
{{ beneficiary_transaction_sub_status($transaction->sub_status) }}
@endif
@if($transaction->external_reference_id) {{ $transaction->external_reference_id }} @endif @if($transaction->external_type && in_array($transaction->status, [BENEFICIARY_TRANSACTION_COMPLETED, BENEFICIARY_TRANSACTION_PROCESSING_UNIT_PROCESSING])) {{ map_service_name($transaction->external_type) }} @if(!empty($transaction->service_mid) && $transaction->external_type == EXTERNAL_TYPE_VIYONA_PAY) - {{ $transaction->service_mid }} @endif @endif {{ tr('view') }}
{{ tr('no_data_found') }}
@endsection