@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
Trx ID