@extends('components.app-layout') @section('title', 'Donation Details') @section('subtitle', 'View donation information and receipt') @section('content')

Donation Details

{{ $donation->donation_number ?? 'DON-' . str_pad($donation->id, 6, '0', STR_PAD_LEFT) }}

@php $statusColors = [ 'confirmed' => 'bg-green-100 text-green-800 border-green-200', 'pending' => 'bg-yellow-100 text-yellow-800 border-yellow-200', 'failed' => 'bg-red-100 text-red-800 border-red-200', 'cancelled' => 'bg-gray-100 text-gray-800 border-gray-200' ]; $statusIcons = [ 'confirmed' => 'fas fa-check-circle', 'pending' => 'fas fa-clock', 'failed' => 'fas fa-times-circle', 'cancelled' => 'fas fa-ban' ]; @endphp {{ ucfirst($donation->status) }}

Donation Information

Basic donation details

Amount ₵{{ number_format($donation->amount, 2) }}
@if($donation->net_amount && $donation->net_amount != $donation->amount)
Net Amount ₵{{ number_format($donation->net_amount, 2) }}
@endif @if($donation->transaction_fee)
Transaction Fee ₵{{ number_format($donation->transaction_fee, 2) }}
@endif
Type {{ ucwords(str_replace('_', ' ', $donation->donation_type)) }}
@if($donation->purpose)
Purpose {{ $donation->purpose }}
@endif
Date {{ $donation->donation_date->format('M d, Y') }}
@if($donation->payment_method)
Payment Method {{ ucwords(str_replace('_', ' ', $donation->payment_method)) }}
@endif @if($donation->payment_channel)
Payment Channel {{ ucwords($donation->payment_channel) }}
@endif @if($donation->reference_number)
Reference {{ $donation->reference_number }}
@endif

Donor Information

Details about the donor

@if($donation->member)

Church Member

{{ $donation->member->first_name }} {{ $donation->member->last_name }}

Member ID: {{ $donation->member->member_id }}

@if($donation->member->email)
Email {{ $donation->member->email }}
@endif @if($donation->member->phone)
Phone {{ $donation->member->phone }}
@endif @if($donation->member->chapter)
Chapter {{ $donation->member->chapter }}
@endif @else

Guest Donor

{{ $donation->donor_name }}

@if($donation->donor_email)
Email {{ $donation->donor_email }}
@endif @if($donation->donor_phone)
Phone {{ $donation->donor_phone }}
@endif @endif @if($donation->is_anonymous)
Anonymous Donation
@endif
@if($donation->paystack_reference)

Payment Details

Paystack transaction information

Paystack Reference {{ $donation->paystack_reference }}
@if($donation->paystack_transaction_id)
Transaction ID {{ $donation->paystack_transaction_id }}
@endif
@endif @if($donation->notes)

Notes

Additional information

{{ $donation->notes }}

@endif
Back to Donations @if($donation->status === 'confirmed') @if($donation->donor_email || ($donation->member && $donation->member->email)) @endif @endif @can('update', $donation) Edit Donation @endcan
@endsection