@extends('layouts.admin') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Fund Details
₦ {{number_format($loan->amount, 0)}}
Loaned Amount
@if($loan->status == 5)
₦ {{number_format(App\Models\LoanFund::whereOriginalId($loan->id)->first()->amount, 0)}}
Transfer Value @else
₦ {{number_format($currentValue, 0)}}
Current Value @endif
{{$loaneeLoan->due_date->diffInMonths($loaneeLoan->created_at)}}
Loan Tenure (Months)
{{$loan->created_at}}
Loan Date
{{$loaneeLoan->due_date}}
Due Date
@if($loan->status == 4 || $loan->status == 5)
Bids for this loan
@forelse($loan->bids()->latest()->get() as $bid) @empty @endforelse
Bidder Offer Bid Date Manage
avatar
{{$bid->user->lastname}} {{$bid->user->firstname}}
₦ {{$bid->amount}}
{{$bid->created_at}}
@if($bid->status == 1) Pending @elseif($bid->status == 2) Accepted @elseif($bid->status == 3) Rejected @else Cancelled @endif
You've not received bids for this loan
@endif
Repayment Plan
@forelse($repaymentPlans as $plan) @empty @endforelse
Interest Principal Total Amount Due Date Principal Balance Status
{{$loop->iteration}}
{{$plan->interest * $fundFraction}}
{{$plan->principal * $fundFraction}}
{{($plan->interest * $fundFraction) + ($plan->principal * $fundFraction)}}
{{$plan->payday}}
@if($loop->iteration === $loan->loanRequest->duration) 0 @else {{$plan->balance * $fundFraction}} @endif
@if($loan->status == 5 && $plan->payday > $loan->transfer_date) Transferred @else @if($plan->status) Paid @else Not Due @endif @endif
Repayment Plan has not been set up
@endsection @section('page-js') @endsection