@extends('layouts.support_member') @section('breadcrumb') @endsection @section('content') @php $add = $beneficiary_account->beneficiaryAdditionalDetail; $external = $beneficiary_account->external_data; $external = is_string($external) ? json_decode($external, true) : $external; @endphp

{{ tr('beneficiary_account_details') }}

@php $fields = [ [ 'type', 'ri-list-check', beneficiary_account_type_formatted($beneficiary_account->type), ], ['first_name', 'ri-user-line', $beneficiary_account->first_name], ['middle_name', 'ri-user-line', $beneficiary_account->middle_name], ['last_name', 'ri-user-line', $beneficiary_account->last_name], ['email', 'ri-mail-line', $beneficiary_account->email], // ['mobile_country_code', 'ri-phone-line', $beneficiary_account->mobile_country_code], [ 'mobile', 'ri-smartphone-line', '+' . $beneficiary_account->mobile_country_code . ' ' . $beneficiary_account->mobile, ], ['payment_rail', 'ri-exchange-dollar-line', $beneficiary_account->payment_rail], ['service_bank', 'ri-bank-line', $beneficiary_account->service_bank], ['bank_name', 'ri-building-line', $beneficiary_account->bank_name], ['routing_number', 'ri-route-line', $beneficiary_account->routing_number], ['account_name', 'ri-profile-line', $beneficiary_account->account_name], ['account_number', 'ri-hashtag', $beneficiary_account->account_number], ['account_type', 'ri-id-card-line', $beneficiary_account->account_type], ['swift_code', 'ri-barcode-box-line', $beneficiary_account->swift_code], ['iban', 'ri-fingerprint-line', $beneficiary_account->iban], [ 'intermediary_bank_swift_code', 'ri-bank-card-2-line', $beneficiary_account->intermediary_bank_swift_code, ], [ 'intermediary_bank_name', 'ri-bank-card-line', $beneficiary_account->intermediary_bank_name, ], ['currency', 'ri-map-pin-line', $beneficiary_account->currency], ['business_name', 'ri-store-2-line', $beneficiary_account->business_name], ['business_country', 'ri-earth-line', get_country($beneficiary_account->country)], ['external_type', 'ri-global-line', $beneficiary_account->external_type], [ 'external_reference_id', 'ri-hashtag', $beneficiary_account->external_reference_id, ], [ 'external_data', 'ri-database-2-line', json_encode($beneficiary_account->external_data), ], // ['status', 'ri-shield-check-line',$beneficiary_account->status ? tr('active') : tr('deactivated')], [ 'created_at', 'ri-time-line', common_date( $beneficiary_account->created_at, auth('support_member')->user()->timezone, 'd M Y h:i A', ), ], [ 'updated_at', 'ri-refresh-line', common_date( $beneficiary_account->updated_at, auth('support_member')->user()->timezone, 'd M Y h:i A', ), ], ]; @endphp
@foreach ($fields as $f) @if (filled($f[2])) @if ($f[0] !== 'external_data')
{{ tr($f[0]) }}
{{ $f[2] ?: tr('na') }}
@endif @endif @endforeach
@if ($add)
{{ tr('additional_details') }}
@php $additionalFields = [ ['address_line1', 'ri-map-pin-line', $add->address_line1], ['address_line2', 'ri-map-pin-line', $add->address_line2], ['postal_code', 'ri-mail-open-line', $add->postal_code], ['city', 'ri-building-line', $add->city], // State ['state', 'ri-community-line', get_state_name($add->state, $add->country)], // Country via state ['country', 'ri-earth-line', get_country($add->country)], // Bank address ['bank_address_line1', 'ri-bank-line', $add->bank_address_line1], ['bank_address_line2', 'ri-bank-line', $add->bank_address_line2], ['bank_postal_code', 'ri-mail-open-line', $add->bank_postal_code], ['bank_city', 'ri-building-line', $add->bank_city], // Bank state ['bank_state', 'ri-community-line', get_state_name($add->bank_state, $add->bank_country)], // Bank country ['bank_country', 'ri-earth-line', get_country($add->bank_country)], ['user_source_of_income', 'ri-briefcase-line', $add->user_source_of_income], ['purpose_of_transaction', 'ri-article-line', $add->purpose_of_transaction], ]; @endphp
@foreach ($additionalFields as $f) @if (filled($f[2]))
{{ tr($f[0]) }}
{{ $f[2] ?: tr('na') }}
@endif @endforeach
@endif
@if (!empty($external))
{{ tr('external_data') }}
                            {{ json_encode($external, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
                        
@endif
@endsection