@extends('adminlte::page') @section('title','Collection Report') @section('plugins.Datatables', true) @section('content_header')
| # | Receipt No | Date | Account No | Customer | Loan Amount | Total Interest | Collection Amount | Principal Amount | Interest Amount | Remaining Amount |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $collection->receipt_no }} | {{ date('d-m-Y',strtotime($collection->collection_date)) }} | {{ $collection->account->account_no ?? '-' }} | {{ $collection->account->customer_name ?? '-' }} | ₹ {{ number_format($collection->loan->loan_amount ?? 0,2) }} | ₹ {{ number_format($collection->loan->total_interest ?? 0,2) }} | ₹ {{ number_format($collection->collection_amount,2) }} | ₹ {{ number_format($collection->principal_amount,2) }} | ₹ {{ number_format($collection->interest_amount,2) }} | ₹ {{ number_format($collection->balance_amount,2) }} |
| Grand Total | ₹ {{ number_format($totalLoanAmount,2) }} | ₹ {{ number_format($totalInterest,2) }} | ₹ {{ number_format($totalCollectionAmount,2) }} | ₹ {{ number_format($totalPrincipalAmount,2) }} | ₹ {{ number_format($totalInterestAmount,2) }} | ₹ {{ number_format($totalPendingAmount,2) }} | ||||