@extends('layouts.app') @section('title','Add Contribution') @section('heading','Add Contribution') @section('subheading','Record a new cash or gift contribution') @section('topbar_actions') Back @endsection @section('content')
{{-- Type Toggle --}}
{{-- CASH FORM --}}
@csrf
Cash Contribution
Record money received from a contributor
@error('amount'){{ $message }}@enderror
@error('contributor_name'){{ $message }}@enderror
Leave blank if paid by hand
@foreach(['pending'=>'⏳ Pending','confirmed'=>'✓ Confirmed','rejected'=>'✕ Rejected'] as $val => $label) @endforeach
Cancel
{{-- GIFT FORM --}}
{{-- Summary Sidebar --}}
Event Summary
@if($event) @foreach([ ['Event', $event->couple_name], ['Wedding Date', $event->wedding_date->format('M d, Y')], ['Target Budget', 'TZS ' . number_format($event->target_budget)], ['Collected So Far', 'TZS ' . number_format($event->total_confirmed)], ['Remaining', 'TZS ' . number_format($event->target_budget - $event->total_confirmed)], ['Progress', $event->progress_percent . '%'], ] as [$label, $value])
{{ $label }} {{ $value }}
@endforeach @endif
@endsection @section('scripts') @endsection