@extends('layouts.app') @section('title','Reports & Analytics') @section('heading','Reports & Analytics') @section('subheading','Financial overview for ' . ($event?->couple_name ?? 'current event')) @section('topbar_actions') Export CSV Export PDF @endsection @section('content') @if($event) {{-- Summary Cards --}}
@foreach([ ['Total Confirmed', 'TZS ' . number_format($event->total_confirmed), 'var(--green)', 'var(--green-pale)'], ['Total Pending', 'TZS ' . number_format($event->total_pending), 'var(--amber)', 'var(--amber-pale)'], ['Progress', $event->progress_percent . '% of TZS ' . number_format($event->target_budget), 'var(--rose)', 'var(--rose-pale)'], ] as [$label,$val,$color,$bg])
{{ $label }}
{{ $val }}
@endforeach
{{-- By Payment Method --}}
By Payment Method
@foreach($data['contributions_by_method'] ?? [] as $row) @endforeach
MethodCountTotal (TZS)
{{ ucwords(str_replace('_',' ',$row->payment_method)) }} {{ $row->count }} {{ number_format($row->total) }}
{{-- Top Contributors --}}
Top Contributors
@foreach($data['top_contributors'] ?? [] as $i => $row) @endforeach
NamePhoneTotal (TZS)
{{ strtoupper(substr($row->contributor_name, 0, 2)) }}
{{ $row->contributor_name }}
{{ $row->contributor_phone }} {{ number_format($row->total) }}
@else
No active event

Create an event first to see reports.

Create Event
@endif @endsection