@extends('layouts.admin-new') @section('content')

Loan Repayments

@forelse($plans as $plan) @empty @endforelse

Pages

{{$plans->links()}}
Name Loan Method Amount Payday Collection date Status Reciept Remark
{{ optional($plan->loan->user)->name }} {{$plan->loan->reference }} {{ $plan->collection_mode == null ? 'No collection' : $plan->collection_mode }} {{ number_format($plan->balance, 2) }} {{$plan->payday}} {{$plan->date_paid}} @if($plan->status) Paid @else Not Paid @endif @if($plan->status) Paid @else @if($plan->payday <= Carbon\Carbon::today() && !$plan->status) Issue Debit Order
{{csrf_field()}}
@elseif($plan->payday <= Carbon\Carbon::today() && $plan->status) Paid @else Not Due @endif @endif
{{$plan->status_message}}
Data Unavailable
@endsection @section('page-js') @endsection