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

Payment Checkout

@csrf

Details

@php $country = App\Models\Country::where('id', session()->get('educationcart')['country_id'])->first(); $education = App\Models\EducationInstitution::where('id', session()->get('educationcart')['institution_id'])->first(); @endphp
  • Country
    {{ str_replace('_', '', $country->name)}}
  • Company
    {{ $education->name }}
  • @php $education_amount = session()->get('educationcart')['fee_amount']; @endphp
  • Fee Amount
    {{ $country->currency }} {{ number_format($education_amount) }}
  • @php $tax = calculateTax($education_amount, $country->currency); @endphp

Required Details

Total
@php $total = session()->get('educationcart')['fee_amount']; $total_amount = $total + $tax; @endphp {{-- --}} {{-- --}}
Subtotal {{ auth()->user()->country->currency }} {{ number_format($total) }}
TAX {{ auth()->user()->country->currency }} {{ number_format($tax) }}
Total+Tax Inc {{ str_replace('_', '',auth()->user()->country->currency)}} {{ number_format($total_amount) }}
@include('site.bankSelection')
@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 {{ str_replace('_', '',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