@extends('layouts.app') @section('content')

Daily Summary

Reset

{{ $summary['total_payments'] }}

Total Payments

Rs. {{ number_format($summary['total_amount'], 2) }}

Total Amount

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

Total Interest

Rs. {{ number_format($summary['total_capital'], 2) }}

Total Capital

Payment Methods
@foreach($summary['by_method'] as $method => $data) @endforeach
Method Count Amount
{{ ucfirst($method) }} {{ $data['count'] }} Rs. {{ number_format($data['amount'], 2) }}
Loan Types
@foreach($summary['by_loan_type'] as $type => $data) @endforeach
Loan Type Count Amount
{{ ucfirst(str_replace('_', ' ', $type)) }} {{ $data['count'] }} Rs. {{ number_format($data['amount'], 2) }}
Detailed Payments
@forelse($payments as $payment) @empty @endforelse
Time Member Loan Type Amount Method Reference Actions
{{ \Carbon\Carbon::parse($payment->payment_date)->format('H:i') }} {{ $payment->member->name ?? 'N/A' }}
{{ $payment->member->nic ?? 'N/A' }}
{{ ucfirst(str_replace('_', ' ', $payment->loan_type)) }} {{ number_format($payment->amount, 2) }} {{ ucfirst($payment->payment_method) }} {{ $payment->reference_number ?? '-' }}

No payments found for the selected date.

@endsection