@extends('layouts.app') @section('title', 'Financial Reports') @section('content')

Financial Reports

@if(session('success')) @endif
Filter Options
Clear Filters

Rs. {{ number_format($stats['total_disbursed'], 2) }}

Total Disbursed

Rs. {{ number_format($stats['total_collected'], 2) }}

Total Collected

Rs. {{ number_format($stats['total_interest_collected'], 2) }}

Interest Collected

{{ number_format($stats['collection_rate'], 1) }}%

Collection Rate

Revenue Breakdown
Capital Collections

Rs. {{ number_format($stats['total_capital_collected'], 2) }}

@php $totalRevenue = $stats['total_collected']; $capitalPercent = $totalRevenue > 0 ? ($stats['total_capital_collected'] / $totalRevenue) * 100 : 0; @endphp
{{ number_format($capitalPercent, 1) }}% of total revenue
Interest Collections

Rs. {{ number_format($stats['total_interest_collected'], 2) }}

@php $interestPercent = $totalRevenue > 0 ? ($stats['total_interest_collected'] / $totalRevenue) * 100 : 0; @endphp
{{ number_format($interestPercent, 1) }}% of total revenue
Performance Metrics
Collection Efficiency
{{ number_format($stats['collection_rate'], 1) }}%
@if($stats['collection_rate'] >= 80) Excellent performance @elseif($stats['collection_rate'] >= 60) Good performance @else Needs improvement @endif
Portfolio Growth

Rs. {{ number_format($stats['total_disbursed'], 2) }}

Total portfolio value
Outstanding Amount
@php $outstanding = $stats['total_disbursed'] - $stats['total_capital_collected']; @endphp

Rs. {{ number_format($outstanding, 2) }}

Remaining to be collected
Financial Summary
Metric Amount (Rs.) Percentage
Total Loan Disbursements {{ number_format($stats['total_disbursed'], 2) }} 100.0%
Total Collections {{ number_format($stats['total_collected'], 2) }} {{ $stats['total_disbursed'] > 0 ? number_format(($stats['total_collected'] / $stats['total_disbursed']) * 100, 1) : 0 }}%
    Interest Collections {{ number_format($stats['total_interest_collected'], 2) }} {{ $stats['total_collected'] > 0 ? number_format(($stats['total_interest_collected'] / $stats['total_collected']) * 100, 1) : 0 }}%
    Capital Collections {{ number_format($stats['total_capital_collected'], 2) }} {{ $stats['total_collected'] > 0 ? number_format(($stats['total_capital_collected'] / $stats['total_collected']) * 100, 1) : 0 }}%
Outstanding Amount {{ number_format($stats['total_disbursed'] - $stats['total_capital_collected'], 2) }} {{ $stats['total_disbursed'] > 0 ? number_format((($stats['total_disbursed'] - $stats['total_capital_collected']) / $stats['total_disbursed']) * 100, 1) : 0 }}%
Export Options
@csrf
@endsection @section('scripts') @endsection