@extends('layouts.frontend-master') @section('title', 'Repayment') @push('style') @endpush @php $loan = \App\Models\Loan::where('member_id', auth()->user()->member->id ?? '') ->orderBy('id', 'desc') ->first(); @endphp @section('content')
@if($loan)
Loan Amount {{ $settings_->where('key', 'currency')->first()->value ?? '' }} {{ number_format($loan->amount ?? 0) }}
Loan terms {{ $loan->loan_period ?? '' }} months
Interest Rate {{ $loan->interest }} %
@endif

Payment Schedule

@if ($loan) @for ($i = 0; $i < $loan->loan_period; $i++)
No. Date (D/M/Y) Principal Reduction Interest Amount Payment Amount Remaining Balance