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

Payment Checkout

@csrf

Details

@php $country = App\Models\Country::where( 'id', session()->get('billcart')['country_id'], )->first(); $bill_category = App\Models\BillCategory::where( 'id', session()->get('billcart')['bill_category'], )->first(); $company = App\Models\UtilityBill::where( 'id', session()->get('billcart')['bill_company'], ) ->where('country_id', $country->id) ->first(); // dd(session()->get('billcart'),$bill_category->name); @endphp
  • Country
    {{ $country->name }}
  • Category
    {{ $bill_category->name }}
  • Company
    {{ $company->name }}
  • @php $bill_amount = session()->get('billcart')['bill_amount']; @endphp
  • Bill Amount
    {{ $country->currency }} {{ number_format($bill_amount) }}
  • @php $tax = calculateTax($bill_amount, $country->currency); @endphp {{--
  • TAX
    {{ auth()->user()->country->currency }} {{ $tax }}
  • --}}

Required Details

Total
@php $total = session()->get('billcart')['bill_amount']; $total_amount = $total + $tax; @endphp
Total+Tax Inc {{ str_replace('_', '',auth()->user()->country->currency)}} {{ number_format($total_amount) }}
@auth @endauth @guest Login @endguest
@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
@endsection