{{-- @section('title', 'Wallet') --}} @include('frontend.inc.head') @include('frontend.inc.js') Wallet @if (Session::has('message')) @else

Withdraw Amount(₱)

{{ $settings_->where('key', 'currency')->first()->value ?? '' }} {{ number_format(\App\Models\Transaction::where('member_id', Auth::user()->member->id)->whereIn('transaction_type', ['withdraw', 'withraw'])->where('status', 'pending')->orderBy('id', 'desc')->first()->amount ?? 0,0) }} {{-- {{number_format(auth()->user()->member->amountToWithdrawn()??'0' ,0)}} --}}

Current Balance(₱)

{{ $settings_->where('key', 'currency')->first()->value ?? '' }} {{ number_format(auth()->user()->member->credit ?? 0, 0) }}

{{-- --}}

Recovery status:

{{--

Warning:

--}}

Please contact loan officer for more information.

Loan Application

@if ($loan)
ID: {{ (int) ($loan->loan_id) }} @if ($loan->status == 'APPROVED' || $loan->status == 'approved' || $loan->status == 'ที่ได้รับการอนุมัติ') Loan application submitted, loan approved successfully. @elseif($loan->status == 'REJECT' || $loan->status == 'reject' || $loan->status == 'ถูกปฏิเสธ') Loan application submitted, rejected @else Loan request submitted. Waiting for verification. @endif

Amount:₱ {{ number_format($loan->amount, 2) }}

Loan Period:{{$loan->loan_period}} months

Interest Rate:{{$loan->interest}}%

Monthly Repayment :₱ {{number_format((($loan->amount/$loan->loan_period)+($loan->amount*($loan->interest/100))),2)}}

Order number processing time:{{ $loan->created_at->format('d/m/Y h:i') }}
Describe: {{ $loan->status??'--' }}

@else
You have not submitted a loan application yet.
{{--
--}}
@endif
@auth @include('components.bottom-bar') @endauth {{-- --}} @include('app.sweetAlert') @endif