@extends('layouts.app') @section('title', 'Collection Report') @section('page-title', 'Collection Report') @section('content')
Reset
Total Collected

₹{{ number_format($summary['total_collected'], 2) }}

Principal

₹{{ number_format($summary['total_principal'], 2) }}

Interest

₹{{ number_format($summary['total_interest'], 2) }}

Avg Daily

₹{{ number_format($summary['avg_daily_collection'], 2) }}

Daily Collection Summary
@forelse($dailyCollections as $collection) @empty @endforelse
Date Transactions Total Amount Principal Interest Penalty
{{ $collection['date']->format('d M Y') }} {{ $collection['count'] }} ₹{{ number_format($collection['total'], 2) }} ₹{{ number_format($collection['principal'], 2) }} ₹{{ number_format($collection['interest'], 2) }} ₹{{ number_format($collection['penalty'], 2) }}

No collections found

Collection Details
@forelse($repayments as $repayment) @empty @endforelse
Repayment # Loan # Customer Payment Date Amount Principal Interest Penalty
{{ $repayment->repayment_number }} {{ $repayment->loan->loan_number }} {{ $repayment->customer->name }} {{ $repayment->payment_date->format('d M Y') }} ₹{{ number_format($repayment->amount, 2) }} ₹{{ number_format($repayment->principal_amount, 2) }} ₹{{ number_format($repayment->interest_amount, 2) }} ₹{{ number_format($repayment->penalty_amount, 2) }}

No repayments found

@endsection