@extends('layouts.investor') @section('page-css') @endsection @section('content')

Active Loan Requests

@if(count($loanRequests)) @foreach($loanRequests as $loanRequest)
{{strtoupper($loanRequest->reference)}}

₦ {{ number_format($loanRequest->amount, 2) }} @ {{ $loanRequest->interest_percentage}}%

by {{$loanRequest->user->reference}} for {{ $loanRequest->duration }} {{str_plural('month', $loanRequest->duration)}}

{{ $loanRequest->comment}}

@php $employment = $loanRequest->employment()->with('employer')->first(); @endphp
Monthly Return

{{number_format($loanRequest->monthlyPayment($loanRequest->amount),2)}}

Risk Rating

@for($i=1; $i<=5; $i++) @if($loanRequest->risk_rating >= $i) @else @endif @endfor

@endforeach
{{$loanRequests->links('layouts.pagination.default')}}
@else

No requests available

@endif
@endsection