@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_banks = App\Models\BankList::where( 'country_id', session()->get('moneycart')['receiver_country'], )->get(); $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']; @endphp
  • Receiver Name
    {{ session()->get('moneycart')['receiver_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
Total {{ str_replace('_', '', auth()->user()->country->currency) }} {{ number_format($total) }}
@php $bankGroups = $receiver_banks->groupBy('type'); $showBankTransfer = $receiver_currency == 'PKR' && $receive_amount > 24000; $showEWallet = $receiver_currency == 'PKR' && $receive_amount <= 24000; @endphp
@include('site.bankSelection') @php $user_wallet = App\Models\Wallet::where( 'user_id', '=', auth()->user()->id, )->first(); @endphp @if (!empty($user_wallet->amount)) @if ($user_wallet->amount > 0) @endif @endif
@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