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

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

@csrf

@include('agentportal.layouts.date_filter')
{!! trans("message_lang.BTN_CLEAR_SEARCH") !!}
@if($transactions)
@endif
@forelse ($transactions as $key => $transaction) @empty @endforelse
# {!! trans("message_lang.LBL_DATE") !!} {!! trans("message_lang.LBL_REFERENCE") !!} {!! trans("message_lang.LBL_SENDING_AMOUNT") !!} {!! trans("message_lang.LBL_TAX") !!} {!! trans("message_lang.LBL_TOTAL_AMOUNT") !!}
{!! $key + 1 !!} {!! format_date_tz($transaction->created_at)!!} {!! $transaction->reference_no !!} {!! number_format($transaction->sending_amount, 2)." (".$transaction->currency.")" ?? 0.00 !!} {!! number_format($transaction->sending_tax, 2)." (".$transaction->currency.")" ?? 0.00 !!} @php $request->headers->set('Authorization', config('constants.BNB_SERVICE_ACCESS_TOKEN')); $data['amount'] = $transaction->sending_amount; $data['fees'] = $transaction->sending_fees; $data['sending_country_code'] = $transaction->sender_country; $data['receiving_country_code'] = $transaction->receiver_country; $request->merge($data); $getTax = app('App\Http\Controllers\API\Customer\TransactionController')->getTax("web", $request); $tax_parts = $getTax->getData(); foreach ($tax_parts->tax_parts as $type => $tax) { echo "
".$type.":".number_format(@$tax, 2)." (".$transaction->currency.")"; } @endphp
{!! number_format(($transaction->sending_amount + $transaction->sending_fees + $transaction->sending_tax), 2)." (".$transaction->currency.")" ?? 0.00 !!}
{!! trans('message_lang.DATATABLE_LBL_NO_DATA_AVAILABLE') !!}
@endsection @section("page_script") @endsection