@extends("agentportal.layouts.layout") @section("title", trans("message_lang.LBL_TRANSACTIONS")) @section("page_style") @endsection @section("content")

{!! trans("message_lang.LBL_TRANSACTIONS") !!}

@if(isset($txnDetails['third_party_transaction_id'])) @endif @if($txnDetails['settlement_rate'] && $txnDetails['settlement_amount'] && $txnDetails['settlement_currency']) @endif @if (isset($txnDetails['transaction_type']) && $txnDetails['transaction_type'] == config('constants.WALLET')) @endif @if(isset($txnDetails['reject_reason']) && $txnDetails['reject_reason'] != '') @endif @if(isset($txnDetails['txn_status']) && ($txnDetails['txn_status'] == config('constants.FAILED') || $txnDetails['txn_status'] == config('constants.REJECTED')) && isset($txnDetails['is_refunded']) && $txnDetails['is_refunded'] == 1) @endif @if(isset($txnDetails['txn_status']) && $txnDetails['txn_status'] == config('constants.FAILED') && $txnDetails['transaction_type'] == config('constants.CASH')) @endif

Sender Details

{{ __('message_lang.LBL_SENDER_NAME') }}: {{ isset($txnDetails['sender_name']) ? $txnDetails['sender_name'] : '-' }}
{{ __('message_lang.LBL_SENDER_MOBILE') }}: {{ isset($txnDetails['sender_mobile']) ? $txnDetails['sender_mobile'] : '-' }}
{{ __('message_lang.LBL_SENDER_COUNTRY') }}: {{ isset($txnDetails['sender_countrycode']) ? $txnDetails['sender_countrycode'] : '-' }}

Receiver Details

{{ __('message_lang.LBL_RECEIVER_NAME') }}: {{ isset($txnDetails['receiver_name']) ? $txnDetails['receiver_name'] : '-' }}
{{ __('message_lang.LBL_RECEIVER_MOBILE') }}: {{ isset($txnDetails['receiver_mobile']) ? $txnDetails['receiver_mobile'] : '-' }}
{{ __('message_lang.LBL_RECEIVER_COUNTRY') }}: {{ isset($txnDetails['receiver_countrycode']) ? $txnDetails['receiver_countrycode'] : '-' }}

Transaction Details

{{ __('message_lang.LBL_REF_NO') }}: {{ isset($txnDetails['reference_no']) ? $txnDetails['reference_no'] : '-' }}
{{ __('message_lang.LBL_BNB_PARTNER_NAME') }}: {{ (isset($apiPartner) && isset($apiPartner['name']) && $apiPartner['name'] != '') ? $apiPartner['name'] : config('constants.GREMIT') }}
{{ __('message_lang.LBL_TXN_REF_NO') }}: {{ isset($txnDetails['txn_reference_no']) ? $txnDetails['txn_reference_no'] : '-' }}
{{ __('message_lang.LBL_THIRD_PARTY_TXN_NO') }}: {{ $txnDetails['third_party_transaction_id'] }}
{{ __('message_lang.LBL_DEPOSIT_COMPANY') }}: {{ isset($txnDetails['deposit_company_code']) ? $txnDetails['deposit_company_code'] : '-' }}
{{ __('message_lang.LBL_SENDING_AMOUNT') }}: {{ isset($txnDetails['sending_amount']) && !empty($txnDetails['sending_amount']) ? number_format($txnDetails['sending_amount'],2).' '.$txnDetails['sender_currency'] : '-' }}
{{ __('message_lang.LBL_EXCHANGE_RATE') }}: {{ isset($txnDetails['exchange_rate']) && !empty($txnDetails['exchange_rate']) ? $txnDetails['exchange_rate'] : '-' }}
{{ __('message_lang.LBL_RECEIVING_AMOUNT') }}: {{ isset($txnDetails['receiving_amount']) && !empty($txnDetails['receiving_amount']) ? number_format($txnDetails['receiving_amount'],2).' '.$txnDetails['receiver_currency'] : '-' }}
{{ __('message_lang.LBL_SETTLEMENT_RATE') }}: {{ number_format($txnDetails['settlement_rate'], 2) }}
{{ __('message_lang.LBL_SETTLEMENT_AMOUNT') }}: {{ number_format($txnDetails['settlement_amount'], 2)." (".$txnDetails['settlement_currency'].")" }}
{{ __('message_lang.LBL_PAYOUT_AMOUNT') }}: {{ isset($txnDetails['payout_amount']) && !empty($txnDetails['payout_amount']) ? number_format($txnDetails['payout_amount'],2).' '.$txnDetails['payout_currency'] : '-' }}
{{ __('message_lang.LBL_TXN_TYPE') }}: {{ isset($txnDetails['transaction_type']) ? $txnDetails['transaction_type'] : '-' }}
{{ __('message_lang.LBL_OPERATOR_NAME') }}: {{ isset($txnDetails['end_wallet_operator']) ? $txnDetails['end_wallet_operator'] : '-' }}
{{ __('message_lang.LBL_MSG_TO_PAYEE') }}: {{ isset($txnDetails['msg_to_payee']) ? $txnDetails['msg_to_payee'] : '-' }}
{{ __('message_lang.LBL_SECURITY_CODE') }}: {{ isset($txnDetails['security_code']) ? $txnDetails['security_code'] : '-' }}
{{ __('message_lang.LBL_REMARKS') }}: {{ isset($txnDetails['reject_reason']) ? $txnDetails['reject_reason'] : '-' }}
{{ __('message_lang.LBL_TXN_STATUS') }}:
@if(isset($txnDetails['txn_status']) && $txnDetails['txn_status'] == config('constants.PAID')) {!! isset($txnDetails['txn_status']) ? $txnDetails['txn_status'] : '-' !!}     @if(isset($employee->enabled_for_reversal) && $employee->enabled_for_reversal == 1) @if(isset($txnDetails['transaction_type']) && $txnDetails['transaction_type'] == config('constants.WALLET')) @elseif(isset($txnDetails['transaction_type']) && $txnDetails['transaction_type'] == config('constants.DEPOSIT')) @elseif(isset($txnDetails['transaction_type']) && $txnDetails['transaction_type'] == config('constants.CASH')) @endif @endif @elseif(isset($txnDetails['txn_status']) && $txnDetails['txn_status'] == config('constants.IN_PROGRESS')) {!! isset($txnDetails['txn_status']) ? $txnDetails['txn_status'] : '-' !!} @elseif(isset($txnDetails['txn_status']) && ($txnDetails['txn_status'] == config('constants.FAILED') || $txnDetails['txn_status'] == config('constants.REJECTED'))) {!! isset($txnDetails['txn_status']) ? $txnDetails['txn_status'] : '-' !!}     {{-- @if(isset($txnDetails['transaction_type']) && $txnDetails['transaction_type'] == config('constants.WALLET')) @elseif(isset($txnDetails['transaction_type']) && $txnDetails['transaction_type'] == config('constants.DEPOSIT')) @elseif(isset($txnDetails['transaction_type']) && $txnDetails['transaction_type'] == config('constants.CASH')) @endif --}} @else - @endif @php /** Statuses that can be synced **/ $arrayStatus = [config('constants.PAID'), config('constants.REJECTED')]; $arrayStatus = array_map('strtolower', $arrayStatus); @endphp @if($txnDetails['is_synced'] == 0 && $txnDetails['provider'] == config('constants.BNB_PARTNER_MODULE') && isset($txnDetails['txn_status']) && in_array(strtolower($txnDetails['txn_status']), $arrayStatus)) @endif
{{ __('message_lang.LBL_REFUND_STATUS') }}:
{{ __('message_lang.LBL_ALLOW_RETRY') }}
@if(isset($txn->allow_retry_transaction) && $txn->allow_retry_transaction == 1) Allowed     @else @endif
@endsection @section("page_vendors") @endsection @section("page_script") @endsection