@php // $baseAmount = $donation->amount; // $transactionFeePercentage = $donation->transaction_fee_percentage ?? 0; // $conversionFeePercentage = $donation->conversion_rate_percentage ?? 0; // $transactionFeeAmount = $baseAmount * ($transactionFeePercentage / 100); // $conversionFeeAmount = $baseAmount * ($conversionFeePercentage / 100); // $totalFees = $transactionFeeAmount + $conversionFeeAmount; // $grandTotal = $donation->total_amount_contains_fees // ?? ($baseAmount + $totalFees); $baseAmount = $donation->amount; $transactionFeePercentage = $donation->transaction_fee_percentage ?? 0; $conversionFeePercentage = $donation->conversion_rate_percentage ?? 0; $totalPercentage = ($transactionFeePercentage + $conversionFeePercentage) / 100; $fixedTransactionFee = 0.30; // Fixed fee in AUD $grandTotal = ($baseAmount + $fixedTransactionFee) / (1 - $totalPercentage); $grandTotal = round($grandTotal, 2); $transactionFeeAmount = round($grandTotal * ($transactionFeePercentage / 100), 2); $conversionFeeAmount = round($grandTotal * ($conversionFeePercentage / 100), 2); $totalFees = $transactionFeeAmount + $conversionFeeAmount + $fixedTransactionFee; @endphp Donor Receipt {{ $receipt->receipt_number }}
HASANAT LTD
14/46-48 Restwell Street
Bankstown NSW 2200
+61410337456
hasanatcharity1@gmail.com
ABN 95 650 209 046
INVOICE TO
{{ $donation->donor_name ?? 'N/A' }}
DONOR RECEIPT {{ $receipt->receipt_number }}
DATE {{ $donation->completed_at?->format('d/m/Y') ?? $donation->created_at->format('d/m/Y') }}
DATE DESCRIPTION QTY RATE AMOUNT
{{ $donation->created_at->format('d/m/Y') }} {{ $donation->project?->getLocalizedField('title', app()->getLocale()) ?? 'General Donations' }} 1 {{ number_format($baseAmount, 2) }} {{ number_format($baseAmount, 2) }}
Transaction Fee ({{ $transactionFeePercentage }}%) {{ number_format($transactionFeeAmount, 2) }}
Fixed transaction Fee AUD ({{ $fixedTransactionFee }} AUD) {{ number_format($fixedTransactionFee, 2) }}
Currency Conversion Fee ({{ $conversionFeePercentage }}%) {{ number_format($conversionFeeAmount, 2) }}
Bank Name: National Australia Bank
Account Name: Hasanat LTD
Bank Account Number: 406402384
BSB: 082356
TOTAL {{ $donation->currency->code }} {{ number_format($grandTotal, 2) }}
TOTAL DUE {{ $donation->currency->code }} 0

Transaction and currency conversion fees are processing costs charged by the payment provider and are not considered part of the charitable donation.