@extends('layouts.app') @section('title','Contributions') @section('heading','Contributions') @section('subheading','All cash and gift entries for ' . ($event?->couple_name ?? 'current event')) @section('topbar_actions') Add Contribution @endsection @section('content') {{-- Filters --}}
@if(request()->hasAny(['search','status','type'])) Clear @endif
{{-- Table --}}
All Contributions
{{ $contributions->total() }} total entries
Export CSV
@forelse($contributions as $c) @empty @endforelse
# Contributor Type Amount (TZS) Method Reference Recorded By Date Status Actions
{{ $contributions->firstItem() + $loop->index }}
{{ strtoupper(substr($c->contributor_name ?? 'U', 0, 2)) }}
{{ $c->contributor_name ?? 'Unknown' }}
{{ $c->contributor_phone }}
{{ ucfirst($c->type) }} {{ $c->amount > 0 ? number_format($c->amount) : '—' }} {{ ucwords(str_replace('_',' ',$c->payment_method ?? '—')) }} {{ $c->payment_reference ?? '—' }} {{ $c->recordedBy?->full_name ?? '—' }} {{ $c->created_at->format('M d, Y') }} {{ ucfirst($c->status) }}
@if($c->status === 'pending')
@csrf @method('PATCH')
@csrf @method('PATCH')
@endif View Edit
No contributions found. Add the first one →
@if($contributions->hasPages())
{{ $contributions->withQueryString()->links() }}
@endif
@endsection