@extends('layouts.app') @php use Carbon\Carbon; @endphp @push('scripts') @endpush @section('content')
Loan ID | Loan Type | Loan Limit | Applied Amount | Monthly Installments | Application Date | Due Date | Loan Status | Action | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{$loan->loan_no}} | {{ $loan->loanType->name}} | {{ number_format($loan->loanType->maximum_amount) }} | {{ number_format($loan->applied_amount) }} | {{ number_format($loan->monthly_installment, 2) }} | {{ $loan->application_date }} | {{ $loan->due_date ? \Carbon\Carbon::parse($loan->due_date)->format('Y-m-d') : 'Null' }} | @if($loan->loan_status =='pending')Pending | @elseif(($loan->loan_status =='processing'))Processing | @elseif(($loan->loan_status =='active'))Active | @elseif(($loan->loan_status =='cancelled'))Cancelled | @elseif(($loan->loan_status =='missed'))Defilled | @endif @if($loan->loan_status =='pending') @if($loan->guarantee_balance > 0)
|
@elseif($loan->guarantee_balance <= 0)
|
@endif
|
@endif
@endif
@endforeach