@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 --}}
{{-- Table --}}| # | 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) }} | |
| No contributions found. Add the first one → | |||||||||