@extends('temple.layouts.app') @section('title', 'Collections Report') @section('content') {{-- Filters --}}
{{-- Main Table --}}

{{ $collections->total() }} entries

₹{{ number_format($totalAmount, 2) }}
@forelse($collections as $collection) @empty @endforelse
Date Source Collected By Remarks Amount
{{ optional($collection->collection_date)->format('d-m-Y') ?? '—' }} {{ $collection->source }} {{ $collection->collected_by ?? '—' }} {{ $collection->remarks ?? '—' }} ₹{{ number_format($collection->amount, 2) }}
No collections found for the selected filters.
{{ $collections->links() }}
{{-- Source Breakdown --}}

By Source

@forelse($bySource as $row)
{{ $row->source }} ₹{{ number_format($row->total, 2) }}
@empty

No data

@endforelse
@endsection