@extends('site.layouts.app') @section('title', 'Money Checkout Checkout') @section('content')
@csrf

Review Your Transfer

@php $country = App\Models\Country::where( 'id', auth()->user()->country_id, )->first(); $receiver_country = App\Models\Country::where( 'id', session()->get('moneycart')['receiver_country'], )->first(); $receiver_bank = App\Models\BankList::where( 'id', session()->get('moneycart')['receiver_bank'], )->first(); $send_amount = session()->get('moneycart')['send_amount']; $sender_currency = session()->get('moneycart')['sender_currency']; $receiver_currency = session()->get('moneycart')['receiver_currency']; $receive_amount = session()->get('moneycart')['receive_amount']; // dd(session()->get('moneycart')); @endphp
  • Receiver Name
    {{ session()->get('moneycart')['receiver_name'] }}
  • Bank Name
    {{ $receiver_bank->name }}
  • Account Number
    {{ session()->get('moneycart')['receiver_account_number'] }}
  • You're Sending Exactly
    {{ number_format($send_amount) }} {{ str_replace("_","",$sender_currency) }}
  • @php $tax = calculateFee($send_amount, $sender_currency); @endphp
  • Total Fee:
    {{ $tax }} {{ str_replace("_","",$sender_currency) }}
  • Total Amount will Convert:
    @php $converted_amount = $send_amount - $tax; @endphp
    {{ $converted_amount }} {{ str_replace("_","",$sender_currency) }}
  • Payout
    {{ $receive_amount }} {{ $receiver_currency }}
Total
@php $total = $send_amount; $total_amount = $total - $tax; @endphp {{-- --}} {{-- --}}
Subtotal {{ auth()->user()->country->currency }} {{ number_format($total) }}
TAX {{ auth()->user()->country->currency }} {{ number_format($tax) }}
Total {{ str_replace("_","", auth()->user()->country->currency) }} {{ number_format($total) }}
{{--
--}}
@php $banks = App\Models\BankAccount::where( 'country_id', '=', auth()->user()->country_id, )->get(); @endphp @foreach ($banks as $key => $bank) @if ($bank->type === 'Bank')
@endif @endforeach
@foreach ($banks as $key => $bank) @if ($bank->type === 'E-Wallet')
@endif @endforeach
@if (!empty($user_wallet->amount))
Your E-Wallet
You have {{ auth()->user()->country->currency }} {{ $user_wallet->amount }}. Do you want to pay?
@endif
Payment Receipt Upload your Payment Receipt
Trx ID
@auth @endauth @guest Login @endguest
@endsection