@extends('layouts.staff-new') @section('page-css') @endsection @section('content')
Available Loan Requests
@if(count($loanRequests)) @foreach($loanRequests as $loanRequest)
  ₦ {{number_format($loanRequest->amount, 2)}} @ {{$loanRequest->interest_percentage}} %

Loan Duration: {{$loanRequest->duration}} Months

Borrower : {{$loanRequest->user->name}}

Monthly Return: ₦ {{number_format($loanRequest->monthlyPayment($loanRequest->amount),2)}}

@if($employment)

Employer: {{$employment->employer->name}}

Position: {{$employment->position}}

Department: {{$employment->department}}

State: {{$employment->employer->state}}

@endif

{{$loanRequest->comment}}


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

Posted on {{$loanRequest->created_at->toDateString()}}

@endforeach
@else
There are no loan requests available
@endif
@endsection @section('page-js') @endsection