@extends('layouts.treasury') @section('breadcrumb') @endsection @section('content') @include('treasury.beneficiary_transactions.totals')
{{ tr('beneficiary_transactions') }}({{ $total ?: 0 }})
@include('treasury.beneficiary_transactions.search')
@if(request()->filled('approval')) @endif @if(!request()->filled('approval')) @endif @forelse ($beneficiary_transactions as $key => $bt) @if(request()->filled('approval')) @endif @php $viewUrl = route('treasury.beneficiary_transactions.show', $bt->unique_id); @endphp @if(!request()->filled('approval')) @endif @empty @endforelse
{{ tr('s_no') }} {{ tr('order_id') }} {{ tr('user') }} {{ tr('sender') }} {{ tr('beneficiary') }} {{ tr('amount') }} {{ tr('recipient_amount') }} {{ tr('date') }} {{ tr('status') }}{{ tr('reference') }} {{ tr('processed_via') }}{{ tr('action') }}
@if(!$bt->is_service_called) @endif {{ $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 {{ 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($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 @include('treasury.beneficiary_transactions.actions', [ 'beneficiary_transaction' => $bt ])
{{ tr('no_data_found') }}
@include('treasury.beneficiary_transactions.modals') @include('treasury.beneficiary_transactions.scripts') @endsection