@extends('adminlte::page') @section('title','Loan Management') @section('plugins.Datatables', true) @section('content_header')

Loan Management

New Loan
@stop @section('css') @stop @section('content') @if(session('success'))
{{ session('success') }}
@endif
Filter Loans
Loan List
@foreach($loans as $loan) @endforeach
# Account No Customer Loan Amount Interest % Total Interest Total Payable Start Date Principal EMI Interest EMI EMI Amount Total EMI Count Paid EMI Count Remaining EMI Count Status Action
{{ $loop->iteration }} {{ $loan->account->account_no ?? '' }} {{ $loan->account->customer_name ?? '' }} ₹ {{ number_format($loan->loan_amount,2) }} {{ $loan->interest_rate }} % ₹ {{ number_format($loan->total_interest,2) }} ₹ {{ number_format($loan->total_payable,2) }} {{ date('d-m-Y', strtotime($loan->loan_start_date)) }} ₹ {{ number_format($loan->principal_emi, 2) }} ₹ {{ number_format($loan->interest_emi, 2) }} ₹ {{ number_format($loan->emi_amount,2) }} ₹ {{ number_format($loan->total_emi_count) }} ₹ {{ number_format($loan->paid_emi_count) }} ₹ {{ number_format($loan->remaining_emi_count) }} @if($loan->status == 'Active') Active @else Closed @endif
@csrf @method('DELETE')
@stop @section('js') @stop