@extends('layouts.treasury') @section('breadcrumb')
@endsection @section('content') @include('treasury.beneficiary_transactions.totals')| @endif | {{ tr('s_no') }} | {{ tr('order_id') }} | {{ tr('user') }} | {{ tr('sender') }} | {{ tr('beneficiary') }} | {{ tr('amount') }} | {{ tr('recipient_amount') }} | {{ tr('date') }} | {{ tr('status') }} | @if(!request()->filled('approval')){{ tr('reference') }} | {{ tr('processed_via') }} | @endif{{ tr('action') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @if(!$bt->is_service_called) @endif | @endif @php $viewUrl = route('treasury.beneficiary_transactions.show', $bt->unique_id); @endphp{{ $beneficiary_transactions->firstItem() + $key }} | @if($bt->order_id) {{ $bt->order_id }} @endif | {{ $bt->user->name ?? tr('na') }} | {{ trim(($bt->sender?->first_name ?? '') . ' ' . ($bt->sender?->last_name ?? '')) ?: tr('na') }} |
@php
$validation = $bt->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
{{ $bt->beneficiaryAccount->type == 1
? ($bt->beneficiaryAccount->first_name.' '.$bt->beneficiaryAccount->last_name)
: $bt->beneficiaryAccount->business_name }}
@if($bt->beneficiaryAccount->currency == "INR")
{{ $pillText }}
@endif
|
{{ formatted_amount($bt->amount, $bt->quote?->source?->currency) }} | {{ formatted_amount($bt->recipient_amount, $bt->receiving_currency) }} | {{ common_date( $bt->created_at, auth()->user()->timezone ?: DEFAULT_TIMEZONE, 'd M Y h:i:s A' ) }} | {{ beneficiary_transaction_status_formatted($bt->status) }} | @if(!request()->filled('approval'))@if($bt->external_reference_id) {{ $bt->external_reference_id }} @endif | @if($bt->external_type) {{ map_service_name($bt->external_type) }} @if(!empty($bt->service_mid) && $bt->external_type == EXTERNAL_TYPE_VIYONA_PAY) - {{ $bt->service_mid }} @endif @endif | @endif@include('treasury.beneficiary_transactions.actions', [ 'beneficiary_transaction' => $bt ]) |
| {{ tr('no_data_found') }} | ||||||||||||