@extends('agentportal.layouts.layout') @section('title', 'IMTO Balances') @section('page_style') @endsection @section('content')
@csrf


@include('agentportal.layouts.duration_filter')
{!! trans('message_lang.BTN_CLEAR_SEARCH') !!}
@if ($imto)
@endif
{{----}} @forelse ($imto as $key => $imt) @php $imt->imtoPartnerCountry->load('sendingCountry'); $imt->imtoPartnerCountry->load('imtoPartner'); @endphp @empty @endforelse
# {{ __('message_lang.LBL_PARTNER') }}{{ __('message_lang.LBL_COUNTRY') }}{{ __('message_lang.LBL_TYPE') }} {{ __('message_lang.LBL_AMOUNT') }} {{ __('message_lang.LBL_WIRE_RECEIVED') }} {{ __('message_lang.LBL_PAID_TXNS') }} {{ __('message_lang.LBL_AMOUNT_PAID') }} {{ __('message_lang.LBL_SETTLEMENT_RATE') }} {{ __('message_lang.LBL_AMOUNT_PAID_USD') }} {{ __('message_lang.LBL_SENT_TXNS') }} {{ __('message_lang.LBL_AMOUNT_SENT') }} {{ __('message_lang.LBL_SEND_RATE') }} {{ __('message_lang.LBL_AMOUNT_SENT_USD') }} {{ __('message_lang.LBL_BALANCE') }} {{ __('message_lang.LBL_PERIOD') }} {{ __('message_lang.LBL_DATE') }}
{!! $key + 1 !!}
{!! $imt->type !!} {!! ($imt->amount && $imt->type == 'ADJUSTMENT') ? number_format($imt->amount, 2) . ' USD' : '' !!} {!! $imt->wire_amount ? number_format($imt->wire_amount, 2) . ' USD' : '' !!} {!! $imt->total_paid !!} {!! $imt->total_paid_amount ? number_format($imt->total_paid_amount, 2) . ' ' . $imt->imtoPartnerCountry->currency : '' !!} {!! $imt->settlement_rate !!} {!! $imt->total_paid_amount_usd ? number_format($imt->total_paid_amount_usd, 2) . ' USD' : '' !!} {!! $imt->total_sent !!} {!! $imt->total_sent_amount ? number_format($imt->total_sent_amount, 2) . ' ' . $imt->imtoPartnerCountry->currency : '' !!} {!! $imt->send_rate !!} {!! $imt->total_sent_amount_usd ? number_format($imt->total_sent_amount_usd, 2) . ' USD' : '' !!} {!! ($imt->type != 'ACCOUNTING' || (in_array($imt->imtoPartnerCountry->imtoPartner->code, $consolidatedBalances) && !$imt->imtoPartnerCountry->sendingCountry) || ((!in_array($imt->imtoPartnerCountry->imtoPartner->code, $consolidatedBalances) && $imt->imtoPartnerCountry->sendingCountry))) ? number_format($imt->balance, 2) . ' USD' : '' !!} {!! $imt->period !!} {!! format_date_tz($imt->created_at) !!}
{!! trans('message_lang.DATATABLE_LBL_NO_DATA_AVAILABLE') !!}
@endsection @section('page_script') @endsection