@extends('layouts.admin') @section('title', $fundraiser->title) @section('page-title', $fundraiser->title) @section('page-subtitle', 'Campaign details and donations') @section('content')
@if(session('success'))
{{ session('success') }}
@endif
{{ ucfirst($fundraiser->status) }} {{ $fundraiser->type }}
@if($fundraiser->status === 'draft')
@csrf
@elseif($fundraiser->status === 'active')
@csrf
@csrf
@endif

{{ $fundraiser->title }}

@if($fundraiser->description)

{{ $fundraiser->description }}

@endif
Progress {{ $fundraiser->progress_percentage }}%

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($fundraiser->raised_amount, 2) }}

Raised

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($fundraiser->target_amount, 2) }}

Target

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($fundraiser->remaining_amount, 2) }}

Remaining

{{ $fundraiser->donor_count }} donors @if($fundraiser->start_date) {{ $fundraiser->start_date->format('M j, Y') }} @endif @if($fundraiser->end_date) Ends {{ $fundraiser->end_date->format('M j, Y') }} @endif

Recent Donations

Add Donation
@forelse($fundraiser->donations->take(10) as $donation)
{{ $donation->is_anonymous ? '?' : substr($donation->member?->full_name ?? $donation->donor_name ?? 'N', 0, 1) }}

{{ $donation->is_anonymous ? 'Anonymous' : ($donation->member?->full_name ?? $donation->donor_name ?? 'N/A') }}

{{ $donation->created_at->format('M j, Y g:i A') }} • {{ ucfirst($donation->payment_method) }}

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($donation->amount, 2) }}

@csrf @method('DELETE')
@empty

No donations yet. Be the first to contribute!

@endforelse

Actions

Record Donation Edit Campaign
@csrf @method('DELETE')
@if($topDonors->count() > 0)

Top Donors

@foreach($topDonors as $index => $donor)
{{ $index + 1 }}

{{ $donor->member?->full_name ?? 'N/A' }}

{{ $donor->donation_count }} donations

{{ church_setting('currency_symbol', 'GH₵') }}{{ number_format($donor->total_amount, 2) }}

@endforeach
@endif
@endsection