@extends('layouts.affiliates') @section('content')

Loan {{$loan->reference}}

@if($loan->is_penalized) Penalised @endif @component('components.loan-status', ['loan' => $loan]) @endcomponent @component('components.loan-statement-button',['loan'=>$loan]) @endcomponent
@include('layouts.shared.error-display') @component('components.loan-statistics', ['loan' => $loan]) @endcomponent

CUSTOMER DATA

Information about the borrower

@php($user = $loan->user)

Name: {{ $user->name }}

ID: {{ $user->reference }}

More Details...


LOAN DOCUMENTS

User uploaded documents will show up here

@if ($loan->collection_documents) @php($documents = json_decode($loan->collection_documents)) @foreach($documents as $name => $document) {{ ucwords(str_replace("_", " ", $name)) }} @endforeach @else

No documents available

@endif @if($loan->status == 2) Loan Fulfillment Doc @endif

AFFILIATE ACTIONS

Actions you can perform on the loan at each stage shows up here


@component('components.loan-actions-affiliate', ['loan' => $loan]) @endcomponent


@if($loan->is_penalized) @component('components.penalty_schedule_others', ['loan'=> $loan]) @endcomponent @endif

Loan Repayments

@if($loan->repaymentPlans->isNotEmpty() && $loan->repaymentPlans->first()->is_new )
EMI: {{number_format($loan->repaymentPlans->last()->emi,2)}} @php($i = 1) @foreach ($loan->repaymentPlans as $plan) @if($plan->payment_proof) @else @endif @php(++$i) @endforeach
S/N Total Amount Collected Date Amount Paid Due Date Payment Proof Payment Method Status
{{$i}} {{number_format($plan->totalAmount,2)}} {{$plan->date_paid}} @if($plan->status == 1) {{number_format($plan->paid_amount,2)}} @endif {{$plan->payday}}ViewNo proof{{$plan->collection_mode}} @if($plan->status) Paid @else Not Paid @endif
@else
@forelse($loan->repaymentPlans as $plan) @if($plan->payment_proof) @else @endif @empty @endforelse
# Total Amount Due Date Balance Collected Date Payment Proof Payment Method Status
{{$loop->iteration}} ₦{{ number_format($plan->totalAmount, 2)}} {{$plan->payday}} @if($loop->iteration === $loan->loanRequest->duration) ₦0.00 @else ₦{{ number_format($plan->balance, 2) }} @endif {{$plan->date_paid}}ViewNo proof{{$plan->collection_mode}} @if($plan->status) Paid @else Not Paid @endif
Repayments not found
@endif
@endsection @section('page-js') @endsection