@extends('layouts.app') @section('title', 'Edit Contribution') @section('heading', 'Edit Contribution') @section('subheading', 'Update record for ' . $contribution->contributor_name) @section('topbar_actions') Back to Details @endsection @section('content')
@csrf @method('PUT')
{{ ucfirst($contribution->type) }} Contribution Details
Modify the entry information below
@if($contribution->type === 'cash')
@error('amount'){{ $message }}@enderror
@endif
@error('contributor_name'){{ $message }}@enderror
@error('contributor_phone'){{ $message }}@enderror
@if($contribution->type === 'cash')
@endif
@php $statuses = $contribution->type === 'cash' ? ['pending'=>'⏳ Pending','confirmed'=>'✓ Confirmed','rejected'=>'✕ Rejected'] : ['pending'=>'⏳ Pledged','confirmed'=>'✓ Received','rejected'=>'✕ Cancelled']; @endphp @foreach($statuses as $val => $label) @endforeach
Cancel
{{-- Context Sidebar --}}
Audit Trail
Created
{{ $contribution->created_at->format('M d, Y H:i') }}
by {{ $contribution->recordedBy?->full_name }}
@if($contribution->confirmed_at)
Confirmed
{{ $contribution->confirmed_at->format('M d, Y H:i') }}
by {{ $contribution->confirmedBy?->full_name }}
@endif
Last Updated
{{ $contribution->updated_at->format('M d, Y H:i') }}
@endsection