@extends('layouts.app') @section('title', 'CBO-wise Micro Loan Collection Report (Member Details)') @section('content')
Generated on: {{ now()->format('d/m/Y H:i:s') }}
Period: {{ $startDate }} to {{ $endDate }}
@if($branchId != 'all')Branch: {{ $branches->where('id', $branchId)->first()->branch_name ?? 'N/A' }}
@endif @if($cboId != 'all')CBO: {{ $cbos->where('cbo_id', $cboId)->first()->cbo_name ?? 'N/A' }}
@endif| CBO Code | CBO Name | Branch | Member Name | NIC | Loan ID | Payments | Capital | Interest | Penalty | Total Collected |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $data->cbo_code }} | {{ $data->cbo_name }} | {{ $data->branch_name }} | {{ $data->member_name }} | {{ $data->member_nic }} | {{ $data->loan_id }} | {{ number_format($data->payment_count) }} | Rs. {{ number_format($data->total_capital, 2) }} | Rs. {{ number_format($data->total_interest, 2) }} | Rs. {{ number_format($data->total_penalty, 2) }} | Rs. {{ number_format($data->total_collected, 2) }} |
| Totals: | {{ number_format($collectionData->sum('payment_count')) }} | Rs. {{ number_format($collectionData->sum('total_capital'), 2) }} | Rs. {{ number_format($collectionData->sum('total_interest'), 2) }} | Rs. {{ number_format($collectionData->sum('total_penalty'), 2) }} | Rs. {{ number_format($collectionData->sum('total_collected'), 2) }} | |||||