@extends('temple.layouts.app') @section('title', 'Temple Reports') @php // Single source of truth for all figures (cards + charts stay in sync) $paidAmount = (float) ($totals['paid_amount'] ?? $totals['receipts'] ?? 0); $paidCount = (int) ($totals['paid_count'] ?? $totals['receipts_count'] ?? 0); $pendingAmount = (float) ($totals['pending_amount'] ?? $totalPending ?? 0); $pendingCnt = (int) ($totals['pending_count'] ?? $pendingCount ?? 0); $vazhipadCount = (int) ($totals['vazhipad_count'] ?? 0); $trendData = collect($trend ?? []); @endphp @section('content')
Overview of collections, receipts, vazhipads and devotees
No collections in the selected period.
@else @endifNo data for the selected period.
@else @endif