@extends('layouts.app') @php use Carbon\Carbon; @endphp @push('scripts') @endpush @section('content')

Applied Loans

Add New

My Loans
@foreach($loans as $loan) @if($loan->user_id == Auth()->user()->id) @if($loan->loan_status =='pending') @elseif(($loan->loan_status =='processing')) @elseif(($loan->loan_status =='active')) @elseif(($loan->loan_status =='cancelled')) @elseif(($loan->loan_status =='missed')) @endif @if($loan->loan_status =='pending') @if($loan->guarantee_balance > 0) @elseif($loan->guarantee_balance <= 0) @endif @else @endif @endif @endforeach
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' }}PendingProcessingActiveCancelledDefilled
@endsection @pushOnce('scripts') @if (session('success')) @endif @if ($errors->any()) @endif @endpushOnce