@if($loan->repaymentPlans->isNotEmpty() && $loan->repaymentPlans->first()->is_new )
EMI: {{number_format($loan->repaymentPlans->first()->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